SPIBase.h
Go to the documentation of this file.
Definition: SPISettings.h:66
virtual uint32_t transfer32(uint32_t val, uint8_t bits=32)
Send/receive a word of variable size.
Definition: SPIBase.h:127
virtual uint8_t read8()
Read one byte from SPI without setting up registers.
Definition: SPIBase.h:79
void beginTransaction(SPISettings &settings)
Initialize the SPI bus using the defined SPISettings.
Definition: SPIBase.h:48
virtual bool begin()=0
Initialize the SPI bus by setting SCK, MOSI, and SS to outputs, pulling SCK and MOSI low...
virtual void endTransaction()
Stop using the SPI bus. Normally this is called after de-asserting the chip select, to allow other libraries to use the SPI bus.
Definition: SPIBase.h:62
Definition: SPIBase.h:28
SPISettings SPIDefaultSettings
Default settings used by the SPI bus until reset by beginTransaction(SPISettings) ...
Definition: SPIBase.h:148
uint16_t transfer16(uint16_t val)
Send/receive one 16-bit word of data.
Definition: SPIBase.h:111
uint8_t transfer(uint8_t val)
Send/receive one bytes of data.
Definition: SPIBase.h:101