|
Zephyr API 3.6.99
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
12#ifndef ZEPHYR_INCLUDE_DEVICETREE_PWMS_H_
13#define ZEPHYR_INCLUDE_DEVICETREE_PWMS_H_
51#define DT_PWMS_CTLR_BY_IDX(node_id, idx) \
52 DT_PHANDLE_BY_IDX(node_id, pwms, idx)
81#define DT_PWMS_CTLR_BY_NAME(node_id, name) \
82 DT_PHANDLE_BY_NAME(node_id, pwms, name)
91#define DT_PWMS_CTLR(node_id) DT_PWMS_CTLR_BY_IDX(node_id, 0)
135#define DT_PWMS_CELL_BY_IDX(node_id, idx, cell) \
136 DT_PHA_BY_IDX(node_id, pwms, idx, cell)
182#define DT_PWMS_CELL_BY_NAME(node_id, name, cell) \
183 DT_PHA_BY_NAME(node_id, pwms, name, cell)
192#define DT_PWMS_CELL(node_id, cell) DT_PWMS_CELL_BY_IDX(node_id, 0, cell)
207#define DT_PWMS_CHANNEL_BY_IDX(node_id, idx) \
208 DT_PWMS_CELL_BY_IDX(node_id, idx, channel)
224#define DT_PWMS_CHANNEL_BY_NAME(node_id, name) \
225 DT_PWMS_CELL_BY_NAME(node_id, name, channel)
233#define DT_PWMS_CHANNEL(node_id) DT_PWMS_CHANNEL_BY_IDX(node_id, 0)
248#define DT_PWMS_PERIOD_BY_IDX(node_id, idx) \
249 DT_PWMS_CELL_BY_IDX(node_id, idx, period)
265#define DT_PWMS_PERIOD_BY_NAME(node_id, name) \
266 DT_PWMS_CELL_BY_NAME(node_id, name, period)
274#define DT_PWMS_PERIOD(node_id) DT_PWMS_PERIOD_BY_IDX(node_id, 0)
290#define DT_PWMS_FLAGS_BY_IDX(node_id, idx) \
291 DT_PHA_BY_IDX_OR(node_id, pwms, idx, flags, 0)
310#define DT_PWMS_FLAGS_BY_NAME(node_id, name) \
311 DT_PHA_BY_NAME_OR(node_id, pwms, name, flags, 0)
319#define DT_PWMS_FLAGS(node_id) DT_PWMS_FLAGS_BY_IDX(node_id, 0)
331#define DT_INST_PWMS_CTLR_BY_IDX(inst, idx) \
332 DT_PWMS_CTLR_BY_IDX(DT_DRV_INST(inst), idx)
343#define DT_INST_PWMS_CTLR_BY_NAME(inst, name) \
344 DT_PWMS_CTLR_BY_NAME(DT_DRV_INST(inst), name)
353#define DT_INST_PWMS_CTLR(inst) DT_INST_PWMS_CTLR_BY_IDX(inst, 0)
363#define DT_INST_PWMS_CELL_BY_IDX(inst, idx, cell) \
364 DT_PWMS_CELL_BY_IDX(DT_DRV_INST(inst), idx, cell)
375#define DT_INST_PWMS_CELL_BY_NAME(inst, name, cell) \
376 DT_PWMS_CELL_BY_NAME(DT_DRV_INST(inst), name, cell)
384#define DT_INST_PWMS_CELL(inst, cell) \
385 DT_INST_PWMS_CELL_BY_IDX(inst, 0, cell)
394#define DT_INST_PWMS_CHANNEL_BY_IDX(inst, idx) \
395 DT_INST_PWMS_CELL_BY_IDX(inst, idx, channel)
405#define DT_INST_PWMS_CHANNEL_BY_NAME(inst, name) \
406 DT_INST_PWMS_CELL_BY_NAME(inst, name, channel)
414#define DT_INST_PWMS_CHANNEL(inst) DT_INST_PWMS_CHANNEL_BY_IDX(inst, 0)
423#define DT_INST_PWMS_PERIOD_BY_IDX(inst, idx) \
424 DT_INST_PWMS_CELL_BY_IDX(inst, idx, period)
434#define DT_INST_PWMS_PERIOD_BY_NAME(inst, name) \
435 DT_INST_PWMS_CELL_BY_NAME(inst, name, period)
443#define DT_INST_PWMS_PERIOD(inst) DT_INST_PWMS_PERIOD_BY_IDX(inst, 0)
452#define DT_INST_PWMS_FLAGS_BY_IDX(inst, idx) \
453 DT_INST_PWMS_CELL_BY_IDX(inst, idx, flags)
464#define DT_INST_PWMS_FLAGS_BY_NAME(inst, name) \
465 DT_INST_PWMS_CELL_BY_NAME(inst, name, flags)
473#define DT_INST_PWMS_FLAGS(inst) DT_INST_PWMS_FLAGS_BY_IDX(inst, 0)