transferSingleByteLists method

Future<void> transferSingleByteLists({
  1. List<int>? txBuf,
  2. List<int>? rxBuf,
  3. SpiTransferProperties? transferProperties,
})

Implementation

Future<void> transferSingleByteLists(
    {List<int>? txBuf, List<int>? rxBuf, SpiTransferProperties? transferProperties}) {
  return transfer([
    SpiTransfer(
        data: SpiTransferData.fromByteLists(txBuf: txBuf, rxBuf: rxBuf),
        properties: transferProperties ?? SpiTransferProperties.defaultProperties)
  ]);
}