Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
4.1.99
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
▼
Zephyr API Documentation
►
Introduction
Deprecated List
►
Topics
►
Data Structures
▼
Files
▼
File List
►
doc
►
kernel
►
lib
►
modules
►
subsys
▼
zephyr
►
acpi
►
app_memory
►
arch
►
audio
►
bluetooth
►
canbus
►
console
►
crypto
►
data
►
debug
▼
devicetree
►
can.h
►
clocks.h
►
display.h
►
dma.h
►
fixed-partitions.h
►
gpio.h
►
interrupt_controller.h
►
io-channels.h
►
mbox.h
►
ordinals.h
►
pinctrl.h
►
port-endpoint.h
►
pwms.h
►
reset.h
►
spi.h
►
dfu
►
display
►
drivers
►
dsp
►
dt-bindings
►
fs
►
input
►
internal
►
ipc
►
kernel
►
linker
►
llext
►
logging
►
lorawan
►
math
►
mem_mgmt
►
mgmt
►
misc
►
modbus
►
modem
►
multi_heap
►
net
►
platform
►
pm
►
pmci
►
portability
►
posix
►
psa
►
random
►
retention
►
rtio
►
sd
►
sensing
►
settings
►
shell
►
sip_svc
►
stats
►
storage
►
sys
►
task_wdt
►
timing
►
toolchain
►
tracing
►
usb
►
usb_c
►
virtio
►
xen
►
zbus
►
zvfs
►
bindesc.h
►
cache.h
►
device.h
►
devicetree.h
►
fatal.h
►
fatal_types.h
►
init.h
►
irq.h
►
irq_multilevel.h
►
irq_nextlevel.h
►
irq_offload.h
►
kernel.h
kernel_includes.h
►
kernel_structs.h
►
kernel_version.h
►
net_buf.h
►
shared_irq.h
►
smf.h
►
spinlock.h
►
sw_isr_table.h
►
sys_clock.h
►
syscall.h
►
toolchain.h
types.h
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
pwms.h
Go to the documentation of this file.
1
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
51
#define DT_PWMS_CTLR_BY_IDX(node_id, idx) \
52
DT_PHANDLE_BY_IDX(node_id, pwms, idx)
51
#define DT_PWMS_CTLR_BY_IDX(node_id, idx) \
…
53
81
#define DT_PWMS_CTLR_BY_NAME(node_id, name) \
82
DT_PHANDLE_BY_NAME(node_id, pwms, name)
81
#define DT_PWMS_CTLR_BY_NAME(node_id, name) \
…
83
91
#define DT_PWMS_CTLR(node_id) DT_PWMS_CTLR_BY_IDX(node_id, 0)
92
135
#define DT_PWMS_CELL_BY_IDX(node_id, idx, cell) \
136
DT_PHA_BY_IDX(node_id, pwms, idx, cell)
135
#define DT_PWMS_CELL_BY_IDX(node_id, idx, cell) \
…
137
182
#define DT_PWMS_CELL_BY_NAME(node_id, name, cell) \
183
DT_PHA_BY_NAME(node_id, pwms, name, cell)
182
#define DT_PWMS_CELL_BY_NAME(node_id, name, cell) \
…
184
192
#define DT_PWMS_CELL(node_id, cell) DT_PWMS_CELL_BY_IDX(node_id, 0, cell)
193
207
#define DT_PWMS_CHANNEL_BY_IDX(node_id, idx) \
208
DT_PWMS_CELL_BY_IDX(node_id, idx, channel)
207
#define DT_PWMS_CHANNEL_BY_IDX(node_id, idx) \
…
209
224
#define DT_PWMS_CHANNEL_BY_NAME(node_id, name) \
225
DT_PWMS_CELL_BY_NAME(node_id, name, channel)
224
#define DT_PWMS_CHANNEL_BY_NAME(node_id, name) \
…
226
233
#define DT_PWMS_CHANNEL(node_id) DT_PWMS_CHANNEL_BY_IDX(node_id, 0)
234
248
#define DT_PWMS_PERIOD_BY_IDX(node_id, idx) \
249
DT_PWMS_CELL_BY_IDX(node_id, idx, period)
248
#define DT_PWMS_PERIOD_BY_IDX(node_id, idx) \
…
250
265
#define DT_PWMS_PERIOD_BY_NAME(node_id, name) \
266
DT_PWMS_CELL_BY_NAME(node_id, name, period)
265
#define DT_PWMS_PERIOD_BY_NAME(node_id, name) \
…
267
274
#define DT_PWMS_PERIOD(node_id) DT_PWMS_PERIOD_BY_IDX(node_id, 0)
275
290
#define DT_PWMS_FLAGS_BY_IDX(node_id, idx) \
291
DT_PHA_BY_IDX_OR(node_id, pwms, idx, flags, 0)
290
#define DT_PWMS_FLAGS_BY_IDX(node_id, idx) \
…
292
310
#define DT_PWMS_FLAGS_BY_NAME(node_id, name) \
311
DT_PHA_BY_NAME_OR(node_id, pwms, name, flags, 0)
310
#define DT_PWMS_FLAGS_BY_NAME(node_id, name) \
…
312
319
#define DT_PWMS_FLAGS(node_id) DT_PWMS_FLAGS_BY_IDX(node_id, 0)
320
331
#define DT_INST_PWMS_CTLR_BY_IDX(inst, idx) \
332
DT_PWMS_CTLR_BY_IDX(DT_DRV_INST(inst), idx)
331
#define DT_INST_PWMS_CTLR_BY_IDX(inst, idx) \
…
333
343
#define DT_INST_PWMS_CTLR_BY_NAME(inst, name) \
344
DT_PWMS_CTLR_BY_NAME(DT_DRV_INST(inst), name)
343
#define DT_INST_PWMS_CTLR_BY_NAME(inst, name) \
…
345
353
#define DT_INST_PWMS_CTLR(inst) DT_INST_PWMS_CTLR_BY_IDX(inst, 0)
354
363
#define DT_INST_PWMS_CELL_BY_IDX(inst, idx, cell) \
364
DT_PWMS_CELL_BY_IDX(DT_DRV_INST(inst), idx, cell)
363
#define DT_INST_PWMS_CELL_BY_IDX(inst, idx, cell) \
…
365
375
#define DT_INST_PWMS_CELL_BY_NAME(inst, name, cell) \
376
DT_PWMS_CELL_BY_NAME(DT_DRV_INST(inst), name, cell)
375
#define DT_INST_PWMS_CELL_BY_NAME(inst, name, cell) \
…
377
384
#define DT_INST_PWMS_CELL(inst, cell) \
385
DT_INST_PWMS_CELL_BY_IDX(inst, 0, cell)
384
#define DT_INST_PWMS_CELL(inst, cell) \
…
386
394
#define DT_INST_PWMS_CHANNEL_BY_IDX(inst, idx) \
395
DT_INST_PWMS_CELL_BY_IDX(inst, idx, channel)
394
#define DT_INST_PWMS_CHANNEL_BY_IDX(inst, idx) \
…
396
405
#define DT_INST_PWMS_CHANNEL_BY_NAME(inst, name) \
406
DT_INST_PWMS_CELL_BY_NAME(inst, name, channel)
405
#define DT_INST_PWMS_CHANNEL_BY_NAME(inst, name) \
…
407
414
#define DT_INST_PWMS_CHANNEL(inst) DT_INST_PWMS_CHANNEL_BY_IDX(inst, 0)
415
423
#define DT_INST_PWMS_PERIOD_BY_IDX(inst, idx) \
424
DT_INST_PWMS_CELL_BY_IDX(inst, idx, period)
423
#define DT_INST_PWMS_PERIOD_BY_IDX(inst, idx) \
…
425
434
#define DT_INST_PWMS_PERIOD_BY_NAME(inst, name) \
435
DT_INST_PWMS_CELL_BY_NAME(inst, name, period)
434
#define DT_INST_PWMS_PERIOD_BY_NAME(inst, name) \
…
436
443
#define DT_INST_PWMS_PERIOD(inst) DT_INST_PWMS_PERIOD_BY_IDX(inst, 0)
444
452
#define DT_INST_PWMS_FLAGS_BY_IDX(inst, idx) \
453
DT_INST_PWMS_CELL_BY_IDX(inst, idx, flags)
452
#define DT_INST_PWMS_FLAGS_BY_IDX(inst, idx) \
…
454
464
#define DT_INST_PWMS_FLAGS_BY_NAME(inst, name) \
465
DT_INST_PWMS_CELL_BY_NAME(inst, name, flags)
464
#define DT_INST_PWMS_FLAGS_BY_NAME(inst, name) \
…
466
473
#define DT_INST_PWMS_FLAGS(inst) DT_INST_PWMS_FLAGS_BY_IDX(inst, 0)
474
479
#ifdef __cplusplus
480
}
481
#endif
482
483
#endif
/* ZEPHYR_INCLUDE_DEVICETREE_PWMS_H_ */
zephyr
devicetree
pwms.h
Generated on Thu Jun 5 2025 09:07:06 for Zephyr API Documentation by
1.12.0