Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
clocks.h File Reference

Clocks Devicetree macro public API header file. More...

Go to the source code of this file.

Macros

#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. More...
 
#define DT_CLOCKS_CTLR(node_id)   DT_CLOCKS_CTLR_BY_IDX(node_id, 0)
 Equivalent to DT_CLOCKS_CTLR_BY_IDX(node_id, 0) More...
 
#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 at an index. More...
 
#define DT_CLOCKS_LABEL_BY_IDX(node_id, idx)
 Get a label property from the node referenced by a pwms property at an index. More...
 
#define DT_CLOCKS_LABEL_BY_NAME(node_id, name)
 Get a label property from a clocks property by name. More...
 
#define DT_CLOCKS_LABEL(node_id)   __DEPRECATED_MACRO DT_CLOCKS_LABEL_BY_IDX(node_id, 0)
 Equivalent to DT_CLOCKS_LABEL_BY_IDX(node_id, 0) More...
 
#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. More...
 
#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. More...
 
#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) More...
 
#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. More...
 
#define DT_INST_CLOCKS_CTLR(inst)   DT_INST_CLOCKS_CTLR_BY_IDX(inst, 0)
 Equivalent to DT_INST_CLOCKS_CTLR_BY_IDX(inst, 0) More...
 
#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. More...
 
#define DT_INST_CLOCKS_LABEL_BY_IDX(inst, idx)
 Get a label property from a DT_DRV_COMPAT instance's clocks property at an index. More...
 
#define DT_INST_CLOCKS_LABEL_BY_NAME(inst, name)
 Get a label property from a DT_DRV_COMPAT instance's clocks property by name. More...
 
#define DT_INST_CLOCKS_LABEL(inst)   DT_INST_CLOCKS_LABEL_BY_IDX(inst, 0) __DEPRECATED_MACRO
 Equivalent to DT_INST_CLOCKS_LABEL_BY_IDX(inst, 0) More...
 
#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. More...
 
#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. More...
 
#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) More...
 

Detailed Description

Clocks Devicetree macro public API header file.