Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
SPI Devicetree macro public API header file. More...
Go to the source code of this file.
Macros | |
#define | DT_SPI_HAS_CS_GPIOS(spi) DT_NODE_HAS_PROP(spi, cs_gpios) |
Does a SPI controller node have chip select GPIOs configured? More... | |
#define | DT_SPI_NUM_CS_GPIOS(spi) |
Number of chip select GPIOs in a SPI controller's cs-gpios property. More... | |
#define | DT_SPI_DEV_HAS_CS_GPIOS(spi_dev) DT_SPI_HAS_CS_GPIOS(DT_BUS(spi_dev)) |
Does a SPI device have a chip select line configured? Example devicetree fragment: More... | |
#define | DT_SPI_DEV_CS_GPIOS_CTLR(spi_dev) DT_GPIO_CTLR_BY_IDX(DT_BUS(spi_dev), cs_gpios, DT_REG_ADDR(spi_dev)) |
Get a SPI device's chip select GPIO controller's node identifier. More... | |
#define | DT_SPI_DEV_CS_GPIOS_LABEL(spi_dev) DT_GPIO_LABEL_BY_IDX(DT_BUS(spi_dev), cs_gpios, DT_REG_ADDR(spi_dev)) |
Get a SPI device's chip select GPIO controller's label property. More... | |
#define | DT_SPI_DEV_CS_GPIOS_PIN(spi_dev) DT_GPIO_PIN_BY_IDX(DT_BUS(spi_dev), cs_gpios, DT_REG_ADDR(spi_dev)) |
Get a SPI device's chip select GPIO pin number. More... | |
#define | DT_SPI_DEV_CS_GPIOS_FLAGS(spi_dev) DT_GPIO_FLAGS_BY_IDX(DT_BUS(spi_dev), cs_gpios, DT_REG_ADDR(spi_dev)) |
Get a SPI device's chip select GPIO flags. More... | |
#define | DT_INST_SPI_DEV_HAS_CS_GPIOS(inst) DT_SPI_DEV_HAS_CS_GPIOS(DT_DRV_INST(inst)) |
Equivalent to DT_SPI_DEV_HAS_CS_GPIOS(DT_DRV_INST(inst)). More... | |
#define | DT_INST_SPI_DEV_CS_GPIOS_CTLR(inst) DT_SPI_DEV_CS_GPIOS_CTLR(DT_DRV_INST(inst)) |
Get GPIO controller node identifier for a SPI device instance This is equivalent to DT_SPI_DEV_CS_GPIOS_CTLR(DT_DRV_INST(inst)). More... | |
#define | DT_INST_SPI_DEV_CS_GPIOS_LABEL(inst) DT_SPI_DEV_CS_GPIOS_LABEL(DT_DRV_INST(inst)) |
Get GPIO controller name for a SPI device instance This is equivalent to DT_SPI_DEV_CS_GPIOS_LABEL(DT_DRV_INST(inst)). More... | |
#define | DT_INST_SPI_DEV_CS_GPIOS_PIN(inst) DT_SPI_DEV_CS_GPIOS_PIN(DT_DRV_INST(inst)) |
Equivalent to DT_SPI_DEV_CS_GPIOS_PIN(DT_DRV_INST(inst)). More... | |
#define | DT_INST_SPI_DEV_CS_GPIOS_FLAGS(inst) DT_SPI_DEV_CS_GPIOS_FLAGS(DT_DRV_INST(inst)) |
DT_SPI_DEV_CS_GPIOS_FLAGS(DT_DRV_INST(inst)). More... | |
SPI Devicetree macro public API header file.