ChibiOS/HAL 9.0.0
hal_spi_driver Struct Reference

Structure representing an SPI driver. More...

#include <hal_spi_v1.h>

Collaboration diagram for hal_spi_driver:
Collaboration graph

Data Fields

spistate_t state
 Driver state.
const SPIConfigconfig
 Current configuration data.
thread_reference_t thread
 Waiting thread.
mutex_t mutex
 Mutex protecting the peripheral.
thread_reference_t sync_transfer
 Synchronization point for transfer.

Detailed Description

Structure representing an SPI driver.

Definition at line 182 of file hal_spi_v1.h.

Field Documentation

◆ state

◆ config

const SPIConfig * hal_spi_driver::config

◆ thread

thread_reference_t hal_spi_driver::thread

Waiting thread.

Definition at line 195 of file hal_spi_v1.h.

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

◆ mutex

mutex_t hal_spi_driver::mutex

Mutex protecting the peripheral.

Definition at line 201 of file hal_spi_v1.h.

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

◆ sync_transfer

thread_reference_t hal_spi_driver::sync_transfer

Synchronization point for transfer.

Definition at line 227 of file hal_spi_v2.h.

Referenced by spiObjectInit(), spiStopTransferI(), and spiSynchronizeS().