Lines Matching +full:min +full:- +full:bitrate

9  * SPDX-License-Identifier: Apache-2.0
20 * @defgroup devicetree-can Devicetree CAN API
26 * @brief Get the minimum transceiver bitrate for a CAN controller
28 * The bitrate will be limited to the minimum bitrate supported by the CAN
30 * bitrate will be that of the CAN controller.
34 * transceiver0: can-phy0 {
35 * compatible = "vnd,can-transceiver";
36 * min-bitrate = <15000>;
37 * max-bitrate = <1000000>;
38 * #phy-cells = <0>;
42 * compatible = "vnd,can-controller";
47 * compatible = "vnd,can-controller";
49 * can-transceiver {
50 * min-bitrate = <25000>;
51 * max-bitrate = <2000000>;
56 * compatible = "vnd,can-controller";
58 * can-transceiver {
59 * max-bitrate = <2000000>;
71 * @param min minimum bitrate supported by the CAN controller
72 * @return the minimum bitrate supported by the CAN controller/transceiver combination
74 #define DT_CAN_TRANSCEIVER_MIN_BITRATE(node_id, min) \ argument
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))
80 * @brief Get the maximum transceiver bitrate for a CAN controller
82 * The bitrate will be limited to the maximum bitrate supported by the CAN
84 * bitrate will be that of the CAN controller.
88 * transceiver0: can-phy0 {
89 * compatible = "vnd,can-transceiver";
90 * max-bitrate = <1000000>;
91 * #phy-cells = <0>;
95 * compatible = "vnd,can-controller";
100 * compatible = "vnd,can-controller";
102 * can-transceiver {
103 * max-bitrate = <2000000>;
114 * @param max maximum bitrate supported by the CAN controller
115 * @return the maximum bitrate supported by the CAN controller/transceiver combination
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))
123 * @brief Get the minimum transceiver bitrate for a DT_DRV_COMPAT CAN controller
125 * @param min minimum bitrate supported by the CAN controller
126 * @return the minimum bitrate supported by the CAN controller/transceiver combination
129 #define DT_INST_CAN_TRANSCEIVER_MIN_BITRATE(inst, min) \ argument
130 DT_CAN_TRANSCEIVER_MIN_BITRATE(DT_DRV_INST(inst), min)
133 * @brief Get the maximum transceiver bitrate for a DT_DRV_COMPAT CAN controller
135 * @param max maximum bitrate supported by the CAN controller
136 * @return the maximum bitrate supported by the CAN controller/transceiver combination