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
►
video
►
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
pinctrl.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Nordic Semiconductor ASA
3
* SPDX-License-Identifier: Apache-2.0
4
*/
5
6
#ifndef ZEPHYR_INCLUDE_DEVICETREE_PINCTRL_H_
7
#define ZEPHYR_INCLUDE_DEVICETREE_PINCTRL_H_
8
40
#define DT_PINCTRL_BY_IDX(node_id, pc_idx, idx) \
41
DT_CAT6(node_id, _P_pinctrl_, pc_idx, _IDX_, idx, _PH)
40
#define DT_PINCTRL_BY_IDX(node_id, pc_idx, idx) \
…
42
57
#define DT_PINCTRL_0(node_id, idx) DT_PINCTRL_BY_IDX(node_id, 0, idx)
58
81
#define DT_PINCTRL_BY_NAME(node_id, name, idx) \
82
DT_CAT6(node_id, _PINCTRL_NAME_, name, _IDX_, idx, _PH)
81
#define DT_PINCTRL_BY_NAME(node_id, name, idx) \
…
83
104
#define DT_PINCTRL_NAME_TO_IDX(node_id, name) \
105
DT_CAT4(node_id, _PINCTRL_NAME_, name, _IDX)
104
#define DT_PINCTRL_NAME_TO_IDX(node_id, name) \
…
106
138
#define DT_PINCTRL_IDX_TO_NAME_TOKEN(node_id, pc_idx) \
139
DT_CAT4(node_id, _PINCTRL_IDX_, pc_idx, _TOKEN)
138
#define DT_PINCTRL_IDX_TO_NAME_TOKEN(node_id, pc_idx) \
…
140
164
#define DT_PINCTRL_IDX_TO_NAME_UPPER_TOKEN(node_id, pc_idx) \
165
DT_CAT4(node_id, _PINCTRL_IDX_, pc_idx, _UPPER_TOKEN)
164
#define DT_PINCTRL_IDX_TO_NAME_UPPER_TOKEN(node_id, pc_idx) \
…
166
189
#define DT_NUM_PINCTRLS_BY_IDX(node_id, pc_idx) \
190
DT_CAT4(node_id, _P_pinctrl_, pc_idx, _LEN)
189
#define DT_NUM_PINCTRLS_BY_IDX(node_id, pc_idx) \
…
191
212
#define DT_NUM_PINCTRLS_BY_NAME(node_id, name) \
213
DT_NUM_PINCTRLS_BY_IDX(node_id, DT_PINCTRL_NAME_TO_IDX(node_id, name))
212
#define DT_NUM_PINCTRLS_BY_NAME(node_id, name) \
…
214
239
#define DT_NUM_PINCTRL_STATES(node_id) DT_CAT(node_id, _PINCTRL_NUM)
240
268
#define DT_PINCTRL_HAS_IDX(node_id, pc_idx) \
269
IS_ENABLED(DT_CAT4(node_id, _PINCTRL_IDX_, pc_idx, _EXISTS))
268
#define DT_PINCTRL_HAS_IDX(node_id, pc_idx) \
…
270
297
#define DT_PINCTRL_HAS_NAME(node_id, name) \
298
IS_ENABLED(DT_CAT4(node_id, _PINCTRL_NAME_, name, _EXISTS))
297
#define DT_PINCTRL_HAS_NAME(node_id, name) \
…
299
311
#define DT_INST_PINCTRL_BY_IDX(inst, pc_idx, idx) \
312
DT_PINCTRL_BY_IDX(DT_DRV_INST(inst), pc_idx, idx)
311
#define DT_INST_PINCTRL_BY_IDX(inst, pc_idx, idx) \
…
313
329
#define DT_INST_PINCTRL_0(inst, idx) \
330
DT_PINCTRL_BY_IDX(DT_DRV_INST(inst), 0, idx)
329
#define DT_INST_PINCTRL_0(inst, idx) \
…
331
344
#define DT_INST_PINCTRL_BY_NAME(inst, name, idx) \
345
DT_PINCTRL_BY_NAME(DT_DRV_INST(inst), name, idx)
344
#define DT_INST_PINCTRL_BY_NAME(inst, name, idx) \
…
346
358
#define DT_INST_PINCTRL_NAME_TO_IDX(inst, name) \
359
DT_PINCTRL_NAME_TO_IDX(DT_DRV_INST(inst), name)
358
#define DT_INST_PINCTRL_NAME_TO_IDX(inst, name) \
…
360
371
#define DT_INST_PINCTRL_IDX_TO_NAME_TOKEN(inst, pc_idx) \
372
DT_PINCTRL_IDX_TO_NAME_TOKEN(DT_DRV_INST(inst), pc_idx)
371
#define DT_INST_PINCTRL_IDX_TO_NAME_TOKEN(inst, pc_idx) \
…
373
384
#define DT_INST_PINCTRL_IDX_TO_NAME_UPPER_TOKEN(inst, pc_idx) \
385
DT_PINCTRL_IDX_TO_NAME_UPPER_TOKEN(DT_DRV_INST(inst), pc_idx)
384
#define DT_INST_PINCTRL_IDX_TO_NAME_UPPER_TOKEN(inst, pc_idx) \
…
386
398
#define DT_INST_NUM_PINCTRLS_BY_IDX(inst, pc_idx) \
399
DT_NUM_PINCTRLS_BY_IDX(DT_DRV_INST(inst), pc_idx)
398
#define DT_INST_NUM_PINCTRLS_BY_IDX(inst, pc_idx) \
…
400
411
#define DT_INST_NUM_PINCTRLS_BY_NAME(inst, name) \
412
DT_NUM_PINCTRLS_BY_NAME(DT_DRV_INST(inst), name)
411
#define DT_INST_NUM_PINCTRLS_BY_NAME(inst, name) \
…
413
422
#define DT_INST_NUM_PINCTRL_STATES(inst) \
423
DT_NUM_PINCTRL_STATES(DT_DRV_INST(inst))
422
#define DT_INST_NUM_PINCTRL_STATES(inst) \
…
424
435
#define DT_INST_PINCTRL_HAS_IDX(inst, pc_idx) \
436
DT_PINCTRL_HAS_IDX(DT_DRV_INST(inst), pc_idx)
435
#define DT_INST_PINCTRL_HAS_IDX(inst, pc_idx) \
…
437
447
#define DT_INST_PINCTRL_HAS_NAME(inst, name) \
448
DT_PINCTRL_HAS_NAME(DT_DRV_INST(inst), name)
447
#define DT_INST_PINCTRL_HAS_NAME(inst, name) \
…
449
450
455
#endif
/* ZEPHYR_INCLUDE_DEVICETREE_PINCTRL_H_ */
zephyr
devicetree
pinctrl.h
Generated on Sat Jun 7 2025 09:07:20 for Zephyr API Documentation by
1.12.0