|
ChibiOS 21.11.4
|
SPI (v2) 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. | |
| msg_t | spiStartIgnoreI (SPIDriver *spip, size_t n) |
| Ignores data on the SPI bus. | |
| msg_t | spiStartIgnore (SPIDriver *spip, size_t n) |
| Ignores data on the SPI bus. | |
| msg_t | spiStartExchangeI (SPIDriver *spip, size_t n, const void *txbuf, void *rxbuf) |
| Exchanges data on the SPI bus. | |
| msg_t | spiStartExchange (SPIDriver *spip, size_t n, const void *txbuf, void *rxbuf) |
| Exchanges data on the SPI bus. | |
| msg_t | spiStartSendI (SPIDriver *spip, size_t n, const void *txbuf) |
| Sends data over the SPI bus. | |
| msg_t | spiStartSend (SPIDriver *spip, size_t n, const void *txbuf) |
| Sends data over the SPI bus. | |
| msg_t | spiStartReceiveI (SPIDriver *spip, size_t n, void *rxbuf) |
| Receives data from the SPI bus. | |
| msg_t | spiStartReceive (SPIDriver *spip, size_t n, void *rxbuf) |
| Receives data from the SPI bus. | |
| msg_t | spiStopTransferI (SPIDriver *spip, size_t *sizep) |
| Stops the ongoing SPI operation. | |
| msg_t | spiStopTransfer (SPIDriver *spip, size_t *sizep) |
| Stops the ongoing SPI operation, if any. | |
| msg_t | spiSynchronizeS (SPIDriver *spip, sysinterval_t timeout) |
| Synchronizes with current transfer completion. | |
| msg_t | spiSynchronize (SPIDriver *spip, sysinterval_t timeout) |
| Synchronizes with current transfer completion. | |
| msg_t | spiIgnore (SPIDriver *spip, size_t n) |
| Ignores data on the SPI bus. | |
| msg_t | spiExchange (SPIDriver *spip, size_t n, const void *txbuf, void *rxbuf) |
| Exchanges data on the SPI bus. | |
| msg_t | spiSend (SPIDriver *spip, size_t n, const void *txbuf) |
| Sends data over the SPI bus. | |
| msg_t | 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 (v2) Driver code.
Definition in file hal_spi_v2.inc.