ChibiOS/HAL  6.1.0
hal_spi.c File Reference

SPI Driver code. More...

#include "hal.h"

Go to the source code of this file.

Functions

void spiInit (void)
 SPI Driver initialization. More...
 
void spiObjectInit (SPIDriver *spip)
 Initializes the standard part of a SPIDriver structure. More...
 
void spiStart (SPIDriver *spip, const SPIConfig *config)
 Configures and activates the SPI peripheral. More...
 
void spiStop (SPIDriver *spip)
 Deactivates the SPI peripheral. More...
 
void spiSelect (SPIDriver *spip)
 Asserts the slave select signal and prepares for transfers. More...
 
void spiUnselect (SPIDriver *spip)
 Deasserts the slave select signal. More...
 
void spiStartIgnore (SPIDriver *spip, size_t n)
 Ignores data on the SPI bus. More...
 
void spiStartExchange (SPIDriver *spip, size_t n, const void *txbuf, void *rxbuf)
 Exchanges data on the SPI bus. More...
 
void spiStartSend (SPIDriver *spip, size_t n, const void *txbuf)
 Sends data over the SPI bus. More...
 
void spiStartReceive (SPIDriver *spip, size_t n, void *rxbuf)
 Receives data from the SPI bus. More...
 
void spiAbortI (SPIDriver *spip)
 Aborts the ongoing SPI operation. More...
 
void spiAbort (SPIDriver *spip)
 Aborts the ongoing SPI operation, if any. More...
 
void spiIgnore (SPIDriver *spip, size_t n)
 Ignores data on the SPI bus. More...
 
void spiExchange (SPIDriver *spip, size_t n, const void *txbuf, void *rxbuf)
 Exchanges data on the SPI bus. More...
 
void spiSend (SPIDriver *spip, size_t n, const void *txbuf)
 Sends data over the SPI bus. More...
 
void spiReceive (SPIDriver *spip, size_t n, void *rxbuf)
 Receives data from the SPI bus. More...
 
void spiAcquireBus (SPIDriver *spip)
 Gains exclusive access to the SPI bus. More...
 
void spiReleaseBus (SPIDriver *spip)
 Releases exclusive access to the SPI bus. More...
 

Detailed Description

SPI Driver code.

Definition in file hal_spi.c.