ChibiOS/HAL  6.1.0
SPIDriver Struct Reference

Structure representing an SPI driver. More...

#include <hal_spi_lld.h>

Collaboration diagram for SPIDriver:
Collaboration graph

Data Fields

spistate_t state
 Driver state. More...
 
const SPIConfigconfig
 Current configuration data. More...
 
thread_reference_t thread
 Waiting thread. More...
 
mutex_t mutex
 Mutex protecting the peripheral. More...
 

Detailed Description

Structure representing an SPI driver.

Note
Implementations may extend this structure to contain more, architecture dependent, fields.

Definition at line 128 of file hal_spi_lld.h.

Field Documentation

const SPIConfig* SPIDriver::config

Current configuration data.

Definition at line 136 of file hal_spi_lld.h.

Referenced by spiExchange(), spiIgnore(), spiObjectInit(), spiReceive(), spiSend(), spiStart(), and spiStop().

thread_reference_t SPIDriver::thread

Waiting thread.

Definition at line 141 of file hal_spi_lld.h.

Referenced by spiAbortI(), spiExchange(), spiIgnore(), spiObjectInit(), spiReceive(), and spiSend().

mutex_t SPIDriver::mutex

Mutex protecting the peripheral.

Definition at line 147 of file hal_spi_lld.h.

Referenced by spiAcquireBus(), spiObjectInit(), and spiReleaseBus().