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
port-endpoint.h
Go to the documentation of this file.
1
6
/*
7
* Copyright 2024 NXP
8
* Copyright (c) 2024 tinyVision.ai Inc
9
*
10
* SPDX-License-Identifier: Apache-2.0
11
*/
12
13
#ifndef ZEPHYR_INCLUDE_DEVICETREE_PORT_ENDPOINT_H_
14
#define ZEPHYR_INCLUDE_DEVICETREE_PORT_ENDPOINT_H_
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
36
#define _DT_INST_PORT_BY_ID(inst, pid) \
37
COND_CODE_1(DT_NODE_EXISTS(DT_INST_CHILD(inst, ports)), \
38
(DT_CHILD(DT_INST_CHILD(inst, ports), port_##pid)), (DT_INST_CHILD(inst, port_##pid)))
39
87
#define DT_INST_PORT_BY_ID(inst, pid) \
88
COND_CODE_1(DT_NODE_EXISTS(_DT_INST_PORT_BY_ID(inst, pid)), \
89
(_DT_INST_PORT_BY_ID(inst, pid)), (DT_INST_CHILD(inst, port)))
87
#define DT_INST_PORT_BY_ID(inst, pid) \
…
90
102
#define _DT_INST_ENDPOINT_BY_ID(inst, pid, eid) \
103
DT_CHILD(DT_INST_PORT_BY_ID(inst, pid), endpoint_##eid)
104
163
#define DT_INST_ENDPOINT_BY_ID(inst, pid, eid) \
164
COND_CODE_1(DT_NODE_EXISTS(_DT_INST_ENDPOINT_BY_ID(inst, pid, eid)), \
165
(_DT_INST_ENDPOINT_BY_ID(inst, pid, eid)), \
166
(DT_CHILD(DT_INST_PORT_BY_ID(inst, pid), endpoint)))
163
#define DT_INST_ENDPOINT_BY_ID(inst, pid, eid) \
…
167
215
#define DT_NODE_BY_ENDPOINT(ep) \
216
COND_CODE_1(DT_NODE_EXISTS(DT_CHILD(DT_PARENT(DT_GPARENT(ep)), ports)), \
217
(DT_PARENT(DT_GPARENT(ep))), (DT_GPARENT(ep)))
215
#define DT_NODE_BY_ENDPOINT(ep) \
…
218
264
#define DT_NODE_REMOTE_DEVICE(ep) \
265
DT_NODE_BY_ENDPOINT(DT_NODELABEL(DT_STRING_TOKEN(ep, remote_endpoint_label)))
264
#define DT_NODE_REMOTE_DEVICE(ep) \
…
266
271
#ifdef __cplusplus
272
}
273
#endif
274
275
#endif
/* ZEPHYR_INCLUDE_DEVICETREE_PORT_ENDPOINT_H_ */
zephyr
devicetree
port-endpoint.h
Generated on Thu Jun 5 2025 15:05:49 for Zephyr API Documentation by
1.12.0