12 class SpiChipSelectPin;
virtual std::vector< uint8_t > sendReceive(std::vector< uint8_t > dataToWrite, SpiChipSelectPin *chipSelect=nullptr, ChipSelectMode chipSelectMode=ChipSelectMode::SpiActiveLow, double speed=6, SpiBurstMode burstMode=SpiBurstMode::NoBurst, SpiMode spiMode=SpiMode::Mode00)=0
Send/receive data out of this SPI port.
SpiMode
Defines the clock phase and polarity used for SPI communication.
Definition: SpiMode.h:10
SpiBurstMode
The SPI burst mode to use.
Definition: SpiBurstMode.h:7
An SPI port.
Definition: Spi.h:15
virtual bool enabled()=0
Gets whether the port is enabled.
Clock is initially low; data is valid on the rising edge of the clock
CS is asserted low, the SPI transaction takes place, and then the signal is returned high...
Definition: SpiChipSelectPin.h:7
No burst – always read the same number of bytes as transmitted.
ChipSelectMode
Definition: ChipSelectMode.h:3