Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
Clocks Devicetree macro public API header file. More...
Go to the source code of this file.
Macros | |
#define | DT_CLOCKS_HAS_IDX(node_id, idx) DT_PROP_HAS_IDX(node_id, clocks, idx) |
Test if a node has a clocks phandle-array property at a given index. | |
#define | DT_CLOCKS_HAS_NAME(node_id, name) DT_PROP_HAS_NAME(node_id, clocks, name) |
Test if a node has a clock-names array property holds a given name. | |
#define | DT_NUM_CLOCKS(node_id) DT_PROP_LEN(node_id, clocks) |
Get the number of elements in a clocks property. | |
#define | DT_CLOCKS_CTLR_BY_IDX(node_id, idx) DT_PHANDLE_BY_IDX(node_id, clocks, idx) |
Get the node identifier for the controller phandle from a "clocks" phandle-array property at an index. | |
#define | DT_CLOCKS_CTLR(node_id) DT_CLOCKS_CTLR_BY_IDX(node_id, 0) |
Equivalent to DT_CLOCKS_CTLR_BY_IDX(node_id, 0) | |
#define | DT_CLOCKS_CTLR_BY_NAME(node_id, name) DT_PHANDLE_BY_NAME(node_id, clocks, name) |
Get the node identifier for the controller phandle from a clocks phandle-array property by name. | |
#define | DT_CLOCKS_CELL_BY_IDX(node_id, idx, cell) DT_PHA_BY_IDX(node_id, clocks, idx, cell) |
Get a clock specifier's cell value at an index. | |
#define | DT_CLOCKS_CELL_BY_NAME(node_id, name, cell) DT_PHA_BY_NAME(node_id, clocks, name, cell) |
Get a clock specifier's cell value by name. | |
#define | DT_CLOCKS_CELL(node_id, cell) DT_CLOCKS_CELL_BY_IDX(node_id, 0, cell) |
Equivalent to DT_CLOCKS_CELL_BY_IDX(node_id, 0, cell) | |
#define | DT_INST_CLOCKS_HAS_IDX(inst, idx) DT_CLOCKS_HAS_IDX(DT_DRV_INST(inst), idx) |
Equivalent to DT_CLOCKS_HAS_IDX(DT_DRV_INST(inst), idx) | |
#define | DT_INST_CLOCKS_HAS_NAME(inst, name) DT_CLOCKS_HAS_NAME(DT_DRV_INST(inst), name) |
Equivalent to DT_CLOCK_HAS_NAME(DT_DRV_INST(inst), name) | |
#define | DT_INST_NUM_CLOCKS(inst) DT_NUM_CLOCKS(DT_DRV_INST(inst)) |
Equivalent to DT_NUM_CLOCKS(DT_DRV_INST(inst)) | |
#define | DT_INST_CLOCKS_CTLR_BY_IDX(inst, idx) DT_CLOCKS_CTLR_BY_IDX(DT_DRV_INST(inst), idx) |
Get the node identifier for the controller phandle from a "clocks" phandle-array property at an index. | |
#define | DT_INST_CLOCKS_CTLR(inst) DT_INST_CLOCKS_CTLR_BY_IDX(inst, 0) |
Equivalent to DT_INST_CLOCKS_CTLR_BY_IDX(inst, 0) | |
#define | DT_INST_CLOCKS_CTLR_BY_NAME(inst, name) DT_CLOCKS_CTLR_BY_NAME(DT_DRV_INST(inst), name) |
Get the node identifier for the controller phandle from a clocks phandle-array property by name. | |
#define | DT_INST_CLOCKS_CELL_BY_IDX(inst, idx, cell) DT_CLOCKS_CELL_BY_IDX(DT_DRV_INST(inst), idx, cell) |
Get a DT_DRV_COMPAT instance's clock specifier's cell value at an index. | |
#define | DT_INST_CLOCKS_CELL_BY_NAME(inst, name, cell) DT_CLOCKS_CELL_BY_NAME(DT_DRV_INST(inst), name, cell) |
Get a DT_DRV_COMPAT instance's clock specifier's cell value by name. | |
#define | DT_INST_CLOCKS_CELL(inst, cell) DT_INST_CLOCKS_CELL_BY_IDX(inst, 0, cell) |
Equivalent to DT_INST_CLOCKS_CELL_BY_IDX(inst, 0, cell) | |
Clocks Devicetree macro public API header file.