Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
|
SPI Chip Select control structure. More...
#include <spi.h>
Data Fields | |
struct gpio_dt_spec | gpio |
GPIO devicetree specification of CS GPIO. | |
uint32_t | delay |
Delay in microseconds to wait before starting the transmission and before releasing the CS line. | |
SPI Chip Select control structure.
This can be used to control a CS line via a GPIO line, instead of using the controller inner CS logic.
uint32_t spi_cs_control::delay |
Delay in microseconds to wait before starting the transmission and before releasing the CS line.
struct gpio_dt_spec spi_cs_control::gpio |
GPIO devicetree specification of CS GPIO.
The device pointer can be set to NULL to fully inhibit CS control if necessary. The GPIO flags GPIO_ACTIVE_LOW/GPIO_ACTIVE_HIGH should be equivalent to SPI_CS_ACTIVE_HIGH/SPI_CS_ACTIVE_LOW options in struct spi_config.