SPI.h
Go to the documentation of this file.
Definition: SPIBase.h:51
uint8_t transfer(uint8_t val)
Send/receive one byte of data.
Definition: SPIBase.h:143
bool setup(SpiBus id, SpiPins pins={})
Alternative to defining bus and pin set in constructor. Use this method to change global SPI instance...
SPIClass()
SPIClass(const SPIClass &)=delete
void(*)(uint16_t c, uint8_t bits, bool read) IoCallback
Used for testing purposes only.
Definition: SPI.h:67
void transfer(uint8_t *buffer, size_t numberBytes) override
Send/receive a variable-length block of data.
bool begin() override
Initialize the SPI bus by setting SCK and MOSI to outputs, pulling SCK and MOSI low.
void setDebugIoCallback(IoCallback callback)
Used for testing purposes only Must be called after begin().
uint32_t transfer32(uint32_t val, uint8_t bits=32) override
Send/receive a word of variable size.
SPIClass & operator=(const SPIClass &)=delete
Definition: SPISettings.h:74
@ DEFAULT
void enable(Handler &commandHandler, HardwareSerial &serial)
Timer2Clock::Ticks< uint32_t > read()
Get elapsed watchdog time since last reset.