transferSingleTypedData method

Future<void> transferSingleTypedData({
  1. Uint8List? txBuf,
  2. Uint8List? rxBuf,
  3. SpiTransferProperties? transferProperties,
})

Implementation

Future<void> transferSingleTypedData(
    {Uint8List? txBuf, Uint8List? rxBuf, SpiTransferProperties? transferProperties}) {
  return transfer([
    SpiTransfer(
        data: SpiTransferData.fromTypedData(
          txBuf: txBuf,
          rxBuf: rxBuf,
        ),
        properties: transferProperties ?? SpiTransferProperties.defaultProperties)
  ]);
}