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