Zephyr API Documentation
4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pwms.h
Go to the documentation of this file.
1
5
6
/*
7
* Copyright (c) 2020, Linaro Ltd.
8
*
9
* SPDX-License-Identifier: Apache-2.0
10
*/
11
12
#ifndef ZEPHYR_INCLUDE_DEVICETREE_PWMS_H_
13
#define ZEPHYR_INCLUDE_DEVICETREE_PWMS_H_
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
25
52
#define DT_PWMS_CTLR_BY_IDX(node_id, idx) \
53
DT_PHANDLE_BY_IDX(node_id, pwms, idx)
54
82
#define DT_PWMS_CTLR_BY_NAME(node_id, name) \
83
DT_PHANDLE_BY_NAME(node_id, pwms, name)
84
92
#define DT_PWMS_CTLR(node_id) DT_PWMS_CTLR_BY_IDX(node_id, 0)
93
136
#define DT_PWMS_CELL_BY_IDX(node_id, idx, cell) \
137
DT_PHA_BY_IDX(node_id, pwms, idx, cell)
138
183
#define DT_PWMS_CELL_BY_NAME(node_id, name, cell) \
184
DT_PHA_BY_NAME(node_id, pwms, name, cell)
185
193
#define DT_PWMS_CELL(node_id, cell) DT_PWMS_CELL_BY_IDX(node_id, 0, cell)
194
208
#define DT_PWMS_CHANNEL_BY_IDX(node_id, idx) \
209
DT_PWMS_CELL_BY_IDX(node_id, idx, channel)
210
225
#define DT_PWMS_CHANNEL_BY_NAME(node_id, name) \
226
DT_PWMS_CELL_BY_NAME(node_id, name, channel)
227
234
#define DT_PWMS_CHANNEL(node_id) DT_PWMS_CHANNEL_BY_IDX(node_id, 0)
235
249
#define DT_PWMS_PERIOD_BY_IDX(node_id, idx) \
250
DT_PWMS_CELL_BY_IDX(node_id, idx, period)
251
266
#define DT_PWMS_PERIOD_BY_NAME(node_id, name) \
267
DT_PWMS_CELL_BY_NAME(node_id, name, period)
268
275
#define DT_PWMS_PERIOD(node_id) DT_PWMS_PERIOD_BY_IDX(node_id, 0)
276
291
#define DT_PWMS_FLAGS_BY_IDX(node_id, idx) \
292
DT_PHA_BY_IDX_OR(node_id, pwms, idx, flags, 0)
293
311
#define DT_PWMS_FLAGS_BY_NAME(node_id, name) \
312
DT_PHA_BY_NAME_OR(node_id, pwms, name, flags, 0)
313
320
#define DT_PWMS_FLAGS(node_id) DT_PWMS_FLAGS_BY_IDX(node_id, 0)
321
332
#define DT_INST_PWMS_CTLR_BY_IDX(inst, idx) \
333
DT_PWMS_CTLR_BY_IDX(DT_DRV_INST(inst), idx)
334
344
#define DT_INST_PWMS_CTLR_BY_NAME(inst, name) \
345
DT_PWMS_CTLR_BY_NAME(DT_DRV_INST(inst), name)
346
354
#define DT_INST_PWMS_CTLR(inst) DT_INST_PWMS_CTLR_BY_IDX(inst, 0)
355
364
#define DT_INST_PWMS_CELL_BY_IDX(inst, idx, cell) \
365
DT_PWMS_CELL_BY_IDX(DT_DRV_INST(inst), idx, cell)
366
376
#define DT_INST_PWMS_CELL_BY_NAME(inst, name, cell) \
377
DT_PWMS_CELL_BY_NAME(DT_DRV_INST(inst), name, cell)
378
385
#define DT_INST_PWMS_CELL(inst, cell) \
386
DT_INST_PWMS_CELL_BY_IDX(inst, 0, cell)
387
395
#define DT_INST_PWMS_CHANNEL_BY_IDX(inst, idx) \
396
DT_INST_PWMS_CELL_BY_IDX(inst, idx, channel)
397
406
#define DT_INST_PWMS_CHANNEL_BY_NAME(inst, name) \
407
DT_INST_PWMS_CELL_BY_NAME(inst, name, channel)
408
415
#define DT_INST_PWMS_CHANNEL(inst) DT_INST_PWMS_CHANNEL_BY_IDX(inst, 0)
416
424
#define DT_INST_PWMS_PERIOD_BY_IDX(inst, idx) \
425
DT_INST_PWMS_CELL_BY_IDX(inst, idx, period)
426
435
#define DT_INST_PWMS_PERIOD_BY_NAME(inst, name) \
436
DT_INST_PWMS_CELL_BY_NAME(inst, name, period)
437
444
#define DT_INST_PWMS_PERIOD(inst) DT_INST_PWMS_PERIOD_BY_IDX(inst, 0)
445
453
#define DT_INST_PWMS_FLAGS_BY_IDX(inst, idx) \
454
DT_INST_PWMS_CELL_BY_IDX(inst, idx, flags)
455
465
#define DT_INST_PWMS_FLAGS_BY_NAME(inst, name) \
466
DT_INST_PWMS_CELL_BY_NAME(inst, name, flags)
467
474
#define DT_INST_PWMS_FLAGS(inst) DT_INST_PWMS_FLAGS_BY_IDX(inst, 0)
475
479
480
#ifdef __cplusplus
481
}
482
#endif
483
484
#endif
/* ZEPHYR_INCLUDE_DEVICETREE_PWMS_H_ */
zephyr
devicetree
pwms.h
Generated on
for Zephyr API Documentation by
1.14.0