Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
SPI controller configuration structure. More...
#include <spi.h>
Data Fields | |
uint32_t | frequency |
Bus frequency in Hertz. | |
spi_operation_t | operation |
Operation flags. | |
uint16_t | slave |
Slave number from 0 to host controller slave limit. | |
struct spi_cs_control | cs |
GPIO chip-select line (optional, must be initialized to zero if not used). | |
SPI controller configuration structure.
struct spi_cs_control spi_config::cs |
GPIO chip-select line (optional, must be initialized to zero if not used).
uint32_t spi_config::frequency |
Bus frequency in Hertz.
spi_operation_t spi_config::operation |
Operation flags.
It is a bit field with the following parts:
If
CONFIG_SPI_EXTENDED_MODES
is enabled:
uint16_t spi_config::slave |
Slave number from 0 to host controller slave limit.