Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
PWMs Devicetree macro public API header file. More...
Go to the source code of this file.
Macros | |
#define | DT_PWMS_CTLR_BY_IDX(node_id, idx) DT_PHANDLE_BY_IDX(node_id, pwms, idx) |
Get the node identifier for the PWM controller from a pwms property at an index. | |
#define | DT_PWMS_CTLR_BY_NAME(node_id, name) DT_PHANDLE_BY_NAME(node_id, pwms, name) |
Get the node identifier for the PWM controller from a pwms property by name. | |
#define | DT_PWMS_CTLR(node_id) DT_PWMS_CTLR_BY_IDX(node_id, 0) |
Equivalent to DT_PWMS_CTLR_BY_IDX(node_id, 0) | |
#define | DT_PWMS_CELL_BY_IDX(node_id, idx, cell) DT_PHA_BY_IDX(node_id, pwms, idx, cell) |
Get PWM specifier's cell value at an index. | |
#define | DT_PWMS_CELL_BY_NAME(node_id, name, cell) DT_PHA_BY_NAME(node_id, pwms, name, cell) |
Get a PWM specifier's cell value by name. | |
#define | DT_PWMS_CELL(node_id, cell) DT_PWMS_CELL_BY_IDX(node_id, 0, cell) |
Equivalent to DT_PWMS_CELL_BY_IDX(node_id, 0, cell) | |
#define | DT_PWMS_CHANNEL_BY_IDX(node_id, idx) DT_PWMS_CELL_BY_IDX(node_id, idx, channel) |
Get a PWM specifier's channel cell value at an index. | |
#define | DT_PWMS_CHANNEL_BY_NAME(node_id, name) DT_PWMS_CELL_BY_NAME(node_id, name, channel) |
Get a PWM specifier's channel cell value by name. | |
#define | DT_PWMS_CHANNEL(node_id) DT_PWMS_CHANNEL_BY_IDX(node_id, 0) |
Equivalent to DT_PWMS_CHANNEL_BY_IDX(node_id, 0) | |
#define | DT_PWMS_PERIOD_BY_IDX(node_id, idx) DT_PWMS_CELL_BY_IDX(node_id, idx, period) |
Get PWM specifier's period cell value at an index. | |
#define | DT_PWMS_PERIOD_BY_NAME(node_id, name) DT_PWMS_CELL_BY_NAME(node_id, name, period) |
Get a PWM specifier's period cell value by name. | |
#define | DT_PWMS_PERIOD(node_id) DT_PWMS_PERIOD_BY_IDX(node_id, 0) |
Equivalent to DT_PWMS_PERIOD_BY_IDX(node_id, 0) | |
#define | DT_PWMS_FLAGS_BY_IDX(node_id, idx) DT_PHA_BY_IDX_OR(node_id, pwms, idx, flags, 0) |
Get a PWM specifier's flags cell value at an index. | |
#define | DT_PWMS_FLAGS_BY_NAME(node_id, name) DT_PHA_BY_NAME_OR(node_id, pwms, name, flags, 0) |
Get a PWM specifier's flags cell value by name. | |
#define | DT_PWMS_FLAGS(node_id) DT_PWMS_FLAGS_BY_IDX(node_id, 0) |
Equivalent to DT_PWMS_FLAGS_BY_IDX(node_id, 0) | |
#define | DT_INST_PWMS_CTLR_BY_IDX(inst, idx) DT_PWMS_CTLR_BY_IDX(DT_DRV_INST(inst), idx) |
Get the node identifier for the PWM controller from a DT_DRV_COMPAT instance's pwms property at an index. | |
#define | DT_INST_PWMS_CTLR_BY_NAME(inst, name) DT_PWMS_CTLR_BY_NAME(DT_DRV_INST(inst), name) |
Get the node identifier for the PWM controller from a DT_DRV_COMPAT instance's pwms property by name. | |
#define | DT_INST_PWMS_CTLR(inst) DT_INST_PWMS_CTLR_BY_IDX(inst, 0) |
Equivalent to DT_INST_PWMS_CTLR_BY_IDX(inst, 0) | |
#define | DT_INST_PWMS_CELL_BY_IDX(inst, idx, cell) DT_PWMS_CELL_BY_IDX(DT_DRV_INST(inst), idx, cell) |
Get a DT_DRV_COMPAT instance's PWM specifier's cell value at an index. | |
#define | DT_INST_PWMS_CELL_BY_NAME(inst, name, cell) DT_PWMS_CELL_BY_NAME(DT_DRV_INST(inst), name, cell) |
Get a DT_DRV_COMPAT instance's PWM specifier's cell value by name. | |
#define | DT_INST_PWMS_CELL(inst, cell) DT_INST_PWMS_CELL_BY_IDX(inst, 0, cell) |
Equivalent to DT_INST_PWMS_CELL_BY_IDX(inst, 0, cell) | |
#define | DT_INST_PWMS_CHANNEL_BY_IDX(inst, idx) DT_INST_PWMS_CELL_BY_IDX(inst, idx, channel) |
Equivalent to DT_INST_PWMS_CELL_BY_IDX(inst, idx, channel) | |
#define | DT_INST_PWMS_CHANNEL_BY_NAME(inst, name) DT_INST_PWMS_CELL_BY_NAME(inst, name, channel) |
Equivalent to DT_INST_PWMS_CELL_BY_NAME(inst, name, channel) | |
#define | DT_INST_PWMS_CHANNEL(inst) DT_INST_PWMS_CHANNEL_BY_IDX(inst, 0) |
Equivalent to DT_INST_PWMS_CHANNEL_BY_IDX(inst, 0) | |
#define | DT_INST_PWMS_PERIOD_BY_IDX(inst, idx) DT_INST_PWMS_CELL_BY_IDX(inst, idx, period) |
Equivalent to DT_INST_PWMS_CELL_BY_IDX(inst, idx, period) | |
#define | DT_INST_PWMS_PERIOD_BY_NAME(inst, name) DT_INST_PWMS_CELL_BY_NAME(inst, name, period) |
Equivalent to DT_INST_PWMS_CELL_BY_NAME(inst, name, period) | |
#define | DT_INST_PWMS_PERIOD(inst) DT_INST_PWMS_PERIOD_BY_IDX(inst, 0) |
Equivalent to DT_INST_PWMS_PERIOD_BY_IDX(inst, 0) | |
#define | DT_INST_PWMS_FLAGS_BY_IDX(inst, idx) DT_INST_PWMS_CELL_BY_IDX(inst, idx, flags) |
Equivalent to DT_INST_PWMS_CELL_BY_IDX(inst, idx, flags) | |
#define | DT_INST_PWMS_FLAGS_BY_NAME(inst, name) DT_INST_PWMS_CELL_BY_NAME(inst, name, flags) |
Equivalent to DT_INST_PWMS_CELL_BY_NAME(inst, name, flags) | |
#define | DT_INST_PWMS_FLAGS(inst) DT_INST_PWMS_FLAGS_BY_IDX(inst, 0) |
Equivalent to DT_INST_PWMS_FLAGS_BY_IDX(inst, 0) | |
PWMs Devicetree macro public API header file.