Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
GPIO Devicetree macro public API header file. More...
Go to the source code of this file.
Macros | |
#define | DT_GPIO_CTLR_BY_IDX(node_id, gpio_pha, idx) DT_PHANDLE_BY_IDX(node_id, gpio_pha, idx) |
Get the node identifier for the controller phandle from a gpio phandle-array property at an index. | |
#define | DT_GPIO_CTLR(node_id, gpio_pha) DT_GPIO_CTLR_BY_IDX(node_id, gpio_pha, 0) |
Equivalent to DT_GPIO_CTLR_BY_IDX(node_id, gpio_pha, 0) | |
#define | DT_GPIO_PIN_BY_IDX(node_id, gpio_pha, idx) DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin) |
Get a GPIO specifier's pin cell at an index. | |
#define | DT_GPIO_PIN(node_id, gpio_pha) DT_GPIO_PIN_BY_IDX(node_id, gpio_pha, 0) |
Equivalent to DT_GPIO_PIN_BY_IDX(node_id, gpio_pha, 0) | |
#define | DT_GPIO_FLAGS_BY_IDX(node_id, gpio_pha, idx) DT_PHA_BY_IDX_OR(node_id, gpio_pha, idx, flags, 0) |
Get a GPIO specifier's flags cell at an index. | |
#define | DT_GPIO_FLAGS(node_id, gpio_pha) DT_GPIO_FLAGS_BY_IDX(node_id, gpio_pha, 0) |
Equivalent to DT_GPIO_FLAGS_BY_IDX(node_id, gpio_pha, 0) | |
#define | DT_NUM_GPIO_HOGS(node_id) |
Get the number of GPIO hogs in a node. | |
#define | DT_GPIO_HOG_PIN_BY_IDX(node_id, idx) DT_CAT4(node_id, _GPIO_HOGS_IDX_, idx, _VAL_pin) |
Get a GPIO hog specifier's pin cell at an index. | |
#define | DT_GPIO_HOG_FLAGS_BY_IDX(node_id, idx) |
Get a GPIO hog specifier's flags cell at an index. | |
#define | DT_INST_GPIO_PIN_BY_IDX(inst, gpio_pha, idx) DT_GPIO_PIN_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx) |
Get a DT_DRV_COMPAT instance's GPIO specifier's pin cell value at an index. | |
#define | DT_INST_GPIO_PIN(inst, gpio_pha) DT_INST_GPIO_PIN_BY_IDX(inst, gpio_pha, 0) |
Equivalent to DT_INST_GPIO_PIN_BY_IDX(inst, gpio_pha, 0) | |
#define | DT_INST_GPIO_FLAGS_BY_IDX(inst, gpio_pha, idx) DT_GPIO_FLAGS_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx) |
Get a DT_DRV_COMPAT instance's GPIO specifier's flags cell at an index. | |
#define | DT_INST_GPIO_FLAGS(inst, gpio_pha) DT_INST_GPIO_FLAGS_BY_IDX(inst, gpio_pha, 0) |
Equivalent to DT_INST_GPIO_FLAGS_BY_IDX(inst, gpio_pha, 0) | |
GPIO Devicetree macro public API header file.