|
Zephyr API 3.6.99
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
12#ifndef ZEPHYR_INCLUDE_DEVICETREE_CAN_H_
13#define ZEPHYR_INCLUDE_DEVICETREE_CAN_H_
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))
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))
129#define DT_INST_CAN_TRANSCEIVER_MIN_BITRATE(inst, min) \
130 DT_CAN_TRANSCEIVER_MIN_BITRATE(DT_DRV_INST(inst), min)
139#define DT_INST_CAN_TRANSCEIVER_MAX_BITRATE(inst, max) \
140 DT_CAN_TRANSCEIVER_MAX_BITRATE(DT_DRV_INST(inst), max)