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.
- Parameters
-
gpio_dev | is a valid pointer to an actual GPIO device. A NULL pointer can be provided to full inhibit CS control if necessary. |
gpio_pin | is a number representing the gpio PIN that will be used to act as a CS line |
delay | is a delay in microseconds to wait before starting the transmission and before releasing the CS line |
gpio_dt_flags | is the devicetree flags corresponding to how the CS line should be driven. GPIO_ACTIVE_LOW/GPIO_ACTIVE_HIGH should be equivalent to SPI_CS_ACTIVE_HIGH/SPI_CS_ACTIVE_LOW options in struct spi_config. |