Zephyr Project API 4.1.99
A Scalable Open Source RTOS
|
Macros | |
#define | DT_ZEPHYR_DISPLAY(idx) DT_PHANDLE_BY_IDX(DT_COMPAT_GET_ANY_STATUS_OKAY(zephyr_displays), displays, idx) |
Get display node identifier by logical index from "displays" property of node with compatible "zephyr,displays". | |
#define | DT_ZEPHYR_DISPLAYS_COUNT |
Get number of zephyr displays. | |
#define DT_ZEPHYR_DISPLAY | ( | idx | ) | DT_PHANDLE_BY_IDX(DT_COMPAT_GET_ANY_STATUS_OKAY(zephyr_displays), displays, idx) |
#include <include/zephyr/devicetree/display.h>
Get display node identifier by logical index from "displays" property of node with compatible "zephyr,displays".
Example devicetree fragment:
Above, displays property has two elements:
&n2
, which is node-2
's phandle&n3
, which is node-3
's phandleExample usage:
idx | logical index of display node's phandle in "displays" property |
#define DT_ZEPHYR_DISPLAYS_COUNT |
#include <include/zephyr/devicetree/display.h>
Get number of zephyr displays.