|
ChibiOS 21.11.4
|
SPI (v1) Driver code. More...
Go to the source code of this file.
Functions | |
| void | spiInit (void) |
| SPI Driver initialization. | |
| void | spiObjectInit (SPIDriver *spip) |
Initializes the standard part of a SPIDriver structure. | |
| msg_t | 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 | spiStartIgnore (SPIDriver *spip, size_t n) |
| Ignores data on the SPI bus. | |
| void | spiStartExchange (SPIDriver *spip, size_t n, const void *txbuf, void *rxbuf) |
| Exchanges data on the SPI bus. | |
| void | spiStartSend (SPIDriver *spip, size_t n, const void *txbuf) |
| Sends data over the SPI bus. | |
| void | spiStartReceive (SPIDriver *spip, size_t n, void *rxbuf) |
| Receives data from the SPI bus. | |
| void | spiAbortI (SPIDriver *spip) |
| Aborts the ongoing SPI operation. | |
| void | spiAbort (SPIDriver *spip) |
| Aborts the ongoing SPI operation, if any. | |
| 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 over the SPI bus. | |
| void | spiReceive (SPIDriver *spip, size_t n, void *rxbuf) |
| Receives data from the SPI bus. | |
| void | spiAcquireBus (SPIDriver *spip) |
| Gains exclusive access to the SPI bus. | |
| void | spiReleaseBus (SPIDriver *spip) |
| Releases exclusive access to the SPI bus. | |
SPI (v1) Driver code.
Definition in file hal_spi_v1.inc.