|
Hierodule 1.6.2
Utility module set for STM32 MCUs
|
: Header file for the SPI module. More...
Go to the source code of this file.
Data Structures | |
| struct | HIERODULE_SPI_Wrapper |
| Struct that keeps variables for the data buffers, a pointer to the SPI peripheral, the and a pointer to the transmission end callback routine. More... | |
Functions | |
| uint8_t | HIERODULE_SPI_GetNextByte (HIERODULE_SPI_Wrapper *Wrapper) |
| Fetches the next byte in the RX ring buffer. | |
| void | HIERODULE_SPI_TransmitByte (HIERODULE_SPI_Wrapper *Wrapper, uint8_t Byte) |
| Writes a byte into the data register of the SPI peripheral. | |
| HIERODULE_SPI_Wrapper ** | HIERODULE_SPI_InitWrapper (SPI_TypeDef *_SPI, uint8_t Mode, uint16_t RX_BufferSize, void(*TC_Handler)(void)) |
| Initializes a wrapper for the specified SPI peripheral. | |
| void | HIERODULE_SPI_ReleaseWrapper (HIERODULE_SPI_Wrapper *Wrapper) |
| Frees the memory allocated to an SPI wrapper. | |
| void | HIERODULE_SPI_TransmitPackage (HIERODULE_SPI_Wrapper *Wrapper, uint8_t *TX_Buffer, uint32_t Size) |
| Starts a transmission as the master. | |
Definition in file hierodule_spi.h.