SpiTransferProperties constructor

SpiTransferProperties({
  1. int? speedHz,
  2. Duration delay = const Duration(microseconds: 0),
  3. int? bitsPerWord,
  4. bool doToggleCS = false,
  5. SpiTransferMode? txTransferMode,
  6. SpiTransferMode? rxTransferMode,
  7. Duration wordDelay = const Duration(microseconds: 0),
})

Implementation

SpiTransferProperties(
    {this.speedHz,
    this.delay = const Duration(microseconds: 0),
    this.bitsPerWord,
    this.doToggleCS = false,
    this.txTransferMode,
    this.rxTransferMode,
    this.wordDelay = const Duration(microseconds: 0)})
    : assert(speedHz == null || (speedHz >= 0 && speedHz <= 0xFFFFFFFF)),
      assert(delay.inMicroseconds >= 0 && delay.inMicroseconds <= 0xFFFF),
      assert(bitsPerWord == null || (bitsPerWord >= 0 && bitsPerWord <= 32)),
      assert(wordDelay.inMicroseconds >= 0 && wordDelay.inMicroseconds <= 0xFF);