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);