ChibiOS/HAL
6.1.0
|
PLATFORM SPI subsystem low level driver header. More...
Go to the source code of this file.
Data Structures | |
struct | SPIConfig |
Driver configuration structure. More... | |
struct | SPIDriver |
Structure representing an SPI driver. More... | |
Macros | |
#define | SPI_SUPPORTS_CIRCULAR TRUE |
Circular mode support flag. More... | |
PLATFORM configuration options | |
#define | PLATFORM_SPI_USE_SPI1 FALSE |
SPI1 driver enable switch. More... | |
Typedefs | |
typedef struct SPIDriver | SPIDriver |
Type of a structure representing an SPI driver. More... | |
typedef void(* | spicallback_t) (SPIDriver *spip) |
SPI notification callback type. More... | |
Functions | |
void | spi_lld_init (void) |
Low level SPI driver initialization. More... | |
void | spi_lld_start (SPIDriver *spip) |
Configures and activates the SPI peripheral. More... | |
void | spi_lld_stop (SPIDriver *spip) |
Deactivates the SPI peripheral. More... | |
void | spi_lld_select (SPIDriver *spip) |
Asserts the slave select signal and prepares for transfers. More... | |
void | spi_lld_unselect (SPIDriver *spip) |
Deasserts the slave select signal. More... | |
void | spi_lld_ignore (SPIDriver *spip, size_t n) |
Ignores data on the SPI bus. More... | |
void | spi_lld_exchange (SPIDriver *spip, size_t n, const void *txbuf, void *rxbuf) |
Exchanges data on the SPI bus. More... | |
void | spi_lld_send (SPIDriver *spip, size_t n, const void *txbuf) |
Sends data over the SPI bus. More... | |
void | spi_lld_receive (SPIDriver *spip, size_t n, void *rxbuf) |
Receives data from the SPI bus. More... | |
void | spi_lld_abort (SPIDriver *spip) |
Aborts the ongoing SPI operation, if any. More... | |
uint16_t | spi_lld_polled_exchange (SPIDriver *spip, uint16_t frame) |
Exchanges one frame using a polled wait. More... | |
PLATFORM SPI subsystem low level driver header.
Definition in file hal_spi_lld.h.