SPI.isolate constructor
SPI.isolate(
- String json
Duplicates an existing SPI from a JSON string. This special constructor is used to transfer an existing SPI to an other isolate.
Implementation
SPI.isolate(String json)
: path = jsonMap(json)['path'] as String,
chip = jsonMap(json)['chip'] as int,
maxSpeed = jsonMap(json)['speed'] as int,
bus = jsonMap(json)['bus'] as int,
bitsPerWord = jsonMap(json)['bits'] as int,
extraFlags = jsonMap(json)['flags'] as int,
bitOrder = BitOrder.values[jsonMap(json)['bitOrder'] as int],
mode = SPImode.values[jsonMap(json)['mode'] as int],
_spiHandle = Pointer<Void>.fromAddress(jsonMap(json)['handle'] as int),
isolate = true;