ChibiOS/RT Logo ChibiOS/RT

Architecture - Reference Manual - Guides

SPIDriver Struct Reference
[SPI Low Level DriverLPC214x SPI SupportSTM32 SPI Support]

Structure representing a SPI driver. More...

#include <spi_lld.h>

Collaboration diagram for SPIDriver:
Collaboration graph
[legend]

Data Fields

spistate_t spd_state
 Driver state.
Mutex spd_mutex
 Mutex protecting the bus.
const SPIConfigspd_config
 Current configuration data.
Threadspd_thread
 Thread waiting for I/O completion.
SPI_TypeDef * spd_spi
 Pointer to the SPIx registers block.
DMA_Channel_TypeDef * spd_dmarx
 Pointer to the receive DMA channel registers block.
DMA_Channel_TypeDef * spd_dmatx
 Pointer to the transmit DMA channel registers block.
uint32_t spd_dmaprio
 DMA priority bit mask.

Detailed Description

Structure representing a SPI driver.

Definition at line 66 of file templates/spi_lld.h.


Field Documentation

Mutex protecting the bus.

Definition at line 76 of file templates/spi_lld.h.

Referenced by spiAcquireBus(), and spiObjectInit().

Current configuration data.

Definition at line 84 of file templates/spi_lld.h.

Referenced by spiObjectInit(), and spiStart().

Thread waiting for I/O completion.

Definition at line 170 of file platforms/STM32/spi_lld.h.

SPI_TypeDef* SPIDriver::spd_spi

Pointer to the SPIx registers block.

Definition at line 174 of file platforms/STM32/spi_lld.h.

DMA_Channel_TypeDef* SPIDriver::spd_dmarx

Pointer to the receive DMA channel registers block.

Definition at line 178 of file platforms/STM32/spi_lld.h.

DMA_Channel_TypeDef* SPIDriver::spd_dmatx

Pointer to the transmit DMA channel registers block.

Definition at line 182 of file platforms/STM32/spi_lld.h.

DMA priority bit mask.

Definition at line 186 of file platforms/STM32/spi_lld.h.


Generated on Sun Jul 11 13:13:35 2010 for ChibiOS/RT by doxygen 1.6.3