ChibiOS/RT Architecture - Reference Manual - Guides |
SPI Driver macros and structures. More...
#include "spi_lld.h"
Go to the source code of this file.
Defines | |
#define | SPI_USE_MUTUAL_EXCLUSION TRUE |
Enables the mutual exclusion APIs on the SPI bus. | |
Enumerations | |
enum | spistate_t { SPI_UNINIT = 0, SPI_STOP = 1, SPI_READY = 2, SPI_ACTIVE = 3 } |
Driver state machine possible states. More... | |
Functions | |
void | spiInit (void) |
SPI Driver initialization. | |
void | spiObjectInit (SPIDriver *spip) |
Initializes the standard part of a SPIDriver structure. | |
void | spiStart (SPIDriver *spip, const SPIConfig *config) |
Configures and activates the SPI peripheral. | |
void | spiStop (SPIDriver *spip) |
Deactivates the SPI peripheral. | |
void | spiSelect (SPIDriver *spip) |
Asserts the slave select signal and prepares for transfers. | |
void | spiUnselect (SPIDriver *spip) |
Deasserts the slave select signal. | |
void | spiIgnore (SPIDriver *spip, size_t n) |
Ignores data on the SPI bus. | |
void | spiExchange (SPIDriver *spip, size_t n, const void *txbuf, void *rxbuf) |
Exchanges data on the SPI bus. | |
void | spiSend (SPIDriver *spip, size_t n, const void *txbuf) |
Sends data ever the SPI bus. | |
void | spiReceive (SPIDriver *spip, size_t n, void *rxbuf) |
Receives data from the SPI bus. |
SPI Driver macros and structures.
Definition in file spi.h.