Zephyr Project API
3.2.0
A Scalable Open Source RTOS
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
63
#define DT_CAN_TRANSCEIVER_MAX_BITRATE(node_id, max) \
64
COND_CODE_1(DT_NODE_HAS_PROP(node_id, phys), \
65
MIN(DT_PROP(DT_PHANDLE(node_id, phys), max_bitrate), max), \
66
MIN(DT_PROP_OR(DT_CHILD(node_id, can_transceiver), max_bitrate, max), max))
67
75
#define DT_INST_CAN_TRANSCEIVER_MAX_BITRATE(inst, max) \
76
DT_CAN_TRANSCEIVER_MAX_BITRATE(DT_DRV_INST(inst), max)
77
82
#ifdef __cplusplus
83
}
84
#endif
85
86
#endif
/* ZEPHYR_INCLUDE_DEVICETREE_CAN_H_ */
include
zephyr
devicetree
can.h
Generated on Tue Feb 28 2023 15:43:18 for Zephyr Project API by
1.9.2