Zephyr API Documentation  3.0.0
A Scalable Open Source RTOS
3.0.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
spi_cs_control Struct Reference

SPI Chip Select control structure. More...

#include <spi.h>

Data Fields

union {
   struct gpio_dt_spec   gpio
 
   struct {
      const struct device *   gpio_dev
 
      gpio_pin_t   gpio_pin
 
      gpio_dt_flags_t   gpio_dt_flags
 
   } 
 
}; 
 
uint32_t delay
 

Detailed Description

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.

Field Documentation

◆ 

union { ... } spi_cs_control::@115

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.

◆ delay

uint32_t spi_cs_control::delay

Delay in microseconds to wait before starting the transmission and before releasing the CS line.

◆ gpio

struct gpio_dt_spec spi_cs_control::gpio

◆ gpio_dev

const struct device* spi_cs_control::gpio_dev

◆ gpio_dt_flags

gpio_dt_flags_t spi_cs_control::gpio_dt_flags

◆ gpio_pin

gpio_pin_t spi_cs_control::gpio_pin

The documentation for this struct was generated from the following file: