ChibiOS 21.11.4
hal_spi_config Struct Reference

Driver configuration structure. More...

#include <hal_spi_v1.h>

Collaboration diagram for hal_spi_config:
Collaboration graph

Data Fields

bool circular
 Enables the circular buffer mode.
spicallback_t end_cb
 Operation complete callback or NULL.
ioline_t ssline
 The chip select line.
ioportid_t ssport
 The chip select port.
ioportmask_t ssmask
 The chip select port mask.
uint_fast8_t sspad
 The chip select pad number.
bool slave
 Enables the slave mode.
spicb_t data_cb
 Operation data callback or NULL.
spicb_t error_cb
 Operation error callback or NULL.

Detailed Description

Driver configuration structure.

Definition at line 138 of file hal_spi_v1.h.

Field Documentation

◆ circular

bool hal_spi_config::circular

Enables the circular buffer mode.

Definition at line 143 of file hal_spi_v1.h.

Referenced by spiExchange(), spiIgnore(), spiReceive(), spiSend(), spiStartExchangeI(), spiStartIgnoreI(), spiStartReceiveI(), and spiStartSendI().

◆ end_cb

spicallback_t hal_spi_config::end_cb

Operation complete callback or NULL.

Definition at line 148 of file hal_spi_v1.h.

◆ ssline

ioline_t hal_spi_config::ssline

The chip select line.

Note
Only used in master mode.

Definition at line 153 of file hal_spi_v1.h.

◆ ssport

ioportid_t hal_spi_config::ssport

The chip select port.

Definition at line 159 of file hal_spi_v1.h.

◆ ssmask

ioportmask_t hal_spi_config::ssmask

The chip select port mask.

Definition at line 163 of file hal_spi_v1.h.

◆ sspad

uint_fast8_t hal_spi_config::sspad

The chip select pad number.

Definition at line 173 of file hal_spi_v1.h.

◆ slave

bool hal_spi_config::slave

Enables the slave mode.

Definition at line 168 of file hal_spi_v2.h.

◆ data_cb

spicb_t hal_spi_config::data_cb

Operation data callback or NULL.

Definition at line 173 of file hal_spi_v2.h.

◆ error_cb

spicb_t hal_spi_config::error_cb

Operation error callback or NULL.

Definition at line 177 of file hal_spi_v2.h.