ChibiOS/HAL  7.0.3
hal_spi_driver Struct Reference

Structure representing an SPI driver. More...

#include <hal_spi.h>

Collaboration diagram for hal_spi_driver:
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.

Definition at line 192 of file hal_spi.h.

Field Documentation

const SPIConfig* hal_spi_driver::config

Current configuration data.

Definition at line 200 of file hal_spi.h.

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

thread_reference_t hal_spi_driver::thread

Waiting thread.

Definition at line 205 of file hal_spi.h.

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

mutex_t hal_spi_driver::mutex

Mutex protecting the peripheral.

Definition at line 211 of file hal_spi.h.

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