39 #ifndef FIRMWARE_SRC_SPI_H_
40 #define FIRMWARE_SRC_SPI_H_
80 unsigned int output_length,
82 unsigned int input_length,
98 #endif // FIRMWARE_SRC_SPI_H_
void(* SPI_Callback)(SPIEventType event)
The callback run before and after the SPI transfer begins.
Definition: spi.h:61
void SPI_Initialize()
Initialize the SPI driver.
void SPI_Tasks()
The tasks function, this should be called from the main event loop.
SPIEventType
SPI Event types.
Definition: spi.h:52
bool SPI_QueueTransfer(const uint8_t *output, unsigned int output_length, uint8_t *input, unsigned int input_length, SPI_Callback callback)
Queue an SPI transfer.