SPI Driver.
Go to the source code of this file.
Typedefs | |
typedef void(* | SPI_Callback )(SPIEventType event) |
The callback run before and after the SPI transfer begins. More... | |
Enumerations | |
enum | SPIEventType { SPI_BEGIN_TRANSFER, SPI_COMPLETE_TRANSFER } |
SPI Event types. | |
Functions | |
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. More... | |
void | SPI_Initialize () |
Initialize the SPI driver. | |
void | SPI_Tasks () |
The tasks function, this should be called from the main event loop. | |