|
Zephyr Project API 4.2.99
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). | |
| uint16_t | word_delay |
| Delay between SPI words on SCK line in nanoseconds, if supported. | |
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.
| uint16_t spi_config::word_delay |
Delay between SPI words on SCK line in nanoseconds, if supported.
Value of zero will attempt to use half of the SCK period.