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
►
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
►
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
can.h
Go to the documentation of this file.
1
6
/*
7
* Copyright (c) 2022 Vestas Wind Systems A/S
8
*
9
* SPDX-License-Identifier: Apache-2.0
10
*/
11
12
#ifndef ZEPHYR_INCLUDE_DEVICETREE_CAN_H_
13
#define ZEPHYR_INCLUDE_DEVICETREE_CAN_H_
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
74
#define DT_CAN_TRANSCEIVER_MIN_BITRATE(node_id, min) \
75
COND_CODE_1(DT_NODE_HAS_PROP(node_id, phys), \
76
MAX(DT_PROP_OR(DT_PHANDLE(node_id, phys), min_bitrate, 0), min), \
77
MAX(DT_PROP_OR(DT_CHILD(node_id, can_transceiver), min_bitrate, min), min))
74
#define DT_CAN_TRANSCEIVER_MIN_BITRATE(node_id, min) \
…
78
117
#define DT_CAN_TRANSCEIVER_MAX_BITRATE(node_id, max) \
118
COND_CODE_1(DT_NODE_HAS_PROP(node_id, phys), \
119
MIN(DT_PROP(DT_PHANDLE(node_id, phys), max_bitrate), max), \
120
MIN(DT_PROP_OR(DT_CHILD(node_id, can_transceiver), max_bitrate, max), max))
117
#define DT_CAN_TRANSCEIVER_MAX_BITRATE(node_id, max) \
…
121
129
#define DT_INST_CAN_TRANSCEIVER_MIN_BITRATE(inst, min) \
130
DT_CAN_TRANSCEIVER_MIN_BITRATE(DT_DRV_INST(inst), min)
129
#define DT_INST_CAN_TRANSCEIVER_MIN_BITRATE(inst, min) \
…
131
139
#define DT_INST_CAN_TRANSCEIVER_MAX_BITRATE(inst, max) \
140
DT_CAN_TRANSCEIVER_MAX_BITRATE(DT_DRV_INST(inst), max)
139
#define DT_INST_CAN_TRANSCEIVER_MAX_BITRATE(inst, max) \
…
141
146
#ifdef __cplusplus
147
}
148
#endif
149
150
#endif
/* ZEPHYR_INCLUDE_DEVICETREE_CAN_H_ */
zephyr
devicetree
can.h
Generated on Sat May 17 2025 15:07:11 for Zephyr API Documentation by
1.12.0