Home
last modified time | relevance | path

Searched +full:max +full:- +full:bitrate (Results 1 – 25 of 74) sorted by relevance

123

/Zephyr-latest/include/zephyr/devicetree/
Dcan.h9 * 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>;
[all …]
/Zephyr-latest/dts/bindings/can/
Dcan-controller.yaml6 bus-speed:
10 Deprecated. This property has been renamed to bitrate.
12 Initial bitrate in bit/s. If this is unset, the initial bitrate is set to
14 bitrate:
17 Initial bitrate in bit/s. If this is unset, the initial bitrate is set to
19 sample-point:
33 transceiver0: can-phy0 {
34 compatible = "nxp,tja1040", "can-transceiver-gpio";
35 standby-gpios = <gpioa 0 GPIO_ACTIVE_HIGH>;
36 max-bitrate = <1000000>;
[all …]
Dnxp,flexcan-fd.yaml2 # SPDX-License-Identifier: Apache-2.0
12 compatible = "nxp,flexcan-fd", "nxp,flexcan";
15 interrupt-names = "common";
17 clk-source = <2>;
18 pinctrl-0 = <&pinmux_flexcan3>;
19 pinctrl-names = "default";
21 can-transceiver {
22 max-bitrate = <5000000>;
26 compatible: "nxp,flexcan-fd"
28 include: ["nxp,flexcan.yaml", "can-fd-controller.yaml", "pinctrl-device.yaml"]
Dnxp,flexcan.yaml2 # SPDX-License-Identifier: Apache-2.0
13 interrupt-names = "warning", "error", "wake-up", "mb-0-15";
15 clk-source = <1>;
16 pinctrl-0 = <&pinmux_flexcan0>;
17 pinctrl-names = "default";
19 can-transceiver {
20 max-bitrate = <1000000>;
26 include: ["can-controller.yaml", "pinctrl-device.yaml"]
38 clk-source:
Dti,tcan4x5x.yaml2 # SPDX-License-Identifier: Apache-2.0
12 spi-max-frequency = <18000000>;
13 clock-frequency = <40000000>;
14 device-state-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
15 device-wake-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
16 reset-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
17 int-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
18 bosch,mram-cfg = <0x0 15 15 5 5 0 10 10>;
21 can-transceiver {
22 max-bitrate = <8000000>;
[all …]
/Zephyr-latest/drivers/can/
Dcan_common.c4 * SPDX-License-Identifier: Apache-2.0
30 ctx->status = error; in can_tx_default_cb()
31 k_sem_give(&ctx->done); in can_tx_default_cb()
38 const struct can_driver_api *api = (const struct can_driver_api *)dev->api; in z_impl_can_send()
42 return -EINVAL; in z_impl_can_send()
45 if ((frame->flags & CAN_FRAME_IDE) != 0U) { in z_impl_can_send()
51 CHECKIF((frame->id & ~(id_mask)) != 0U) { in z_impl_can_send()
52 LOG_ERR("invalid frame with %s (%d-bit) CAN ID 0x%0*x", in z_impl_can_send()
53 (frame->flags & CAN_FRAME_IDE) != 0 ? "extended" : "standard", in z_impl_can_send()
54 (frame->flags & CAN_FRAME_IDE) != 0 ? 29 : 11, in z_impl_can_send()
[all …]
Dcan_shell.c5 * SPDX-License-Identifier: Apache-2.0
36 /* zephyr-keep-sorted-start */
38 CAN_SHELL_MODE_MAPPING("listen-only", CAN_MODE_LISTENONLY),
40 CAN_SHELL_MODE_MAPPING("manual-recovery", CAN_MODE_MANUAL_RECOVERY),
42 CAN_SHELL_MODE_MAPPING("one-shot", CAN_MODE_ONE_SHOT),
43 CAN_SHELL_MODE_MAPPING("triple-sampling", CAN_MODE_3_SAMPLES),
44 /* zephyr-keep-sorted-stop */
88 uint8_t nbytes = can_dlc_to_bytes(frame->dlc); in can_shell_print_frame()
98 shell_fprintf_normal(sh, "(%05d) ", frame->timestamp); in can_shell_print_frame()
101 shell_fprintf_normal(sh, "%s ", dev->name); in can_shell_print_frame()
[all …]
/Zephyr-latest/tests/drivers/can/timing/src/
Dmain.c2 * Copyright (c) 2022-2024 Vestas Wind Systems A/S
5 * SPDX-License-Identifier: Apache-2.0
28 /** Bitrate in bit/s */
29 uint32_t bitrate; member
55 /* CiA 601-2 recommended data phase bitrates */
66 * @brief Assert that a CAN timing struct matches the specified bitrate
68 * Assert that the values of a CAN timing struct matches the specified bitrate
73 * @param bitrate the CAN bitrate in bit/s
76 uint32_t bitrate) in assert_bitrate_correct() argument
78 const uint32_t ts = 1 + timing->prop_seg + timing->phase_seg1 + timing->phase_seg2; in assert_bitrate_correct()
[all …]
/Zephyr-latest/dts/bindings/phy/
Dcan-transceiver.yaml2 # SPDX-License-Identifier: Apache-2.0
6 include: phy-controller.yaml
9 min-bitrate:
12 The minimum bitrate supported by the CAN transceiver in bits/s.
14 max-bitrate:
18 The maximum bitrate supported by the CAN transceiver in bits/s.
20 "#phy-cells":
/Zephyr-latest/boards/shields/mcp2515/
Ddfrobot_can_bus_v2_0.overlay4 * SPDX-License-Identifier: Apache-2.0
9 cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
13 spi-max-frequency = <1000000>;
14 int-gpios = <&arduino_header 8 GPIO_ACTIVE_LOW>; /* D2 */
17 osc-freq = <16000000>;
19 can-transceiver {
20 min-bitrate = <60000>;
21 max-bitrate = <1000000>;
Dadafruit_can_picowbell.overlay4 * SPDX-License-Identifier: Apache-2.0
9 cs-gpios = <&pico_header 20 GPIO_ACTIVE_LOW>;
13 spi-max-frequency = <1000000>;
14 int-gpios = <&pico_header 21 GPIO_ACTIVE_LOW>;
17 osc-freq = <16000000>;
19 can-transceiver {
20 max-bitrate = <1000000>;
Dkeyestudio_can_bus_ks0411.overlay4 * SPDX-License-Identifier: Apache-2.0
9 cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
13 spi-max-frequency = <1000000>;
14 int-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
17 osc-freq = <16000000>;
19 can-transceiver {
20 max-bitrate = <1000000>;
/Zephyr-latest/doc/hardware/peripherals/can/
Dshell.rst38 For example, building the :zephyr:code-sample:`hello_world` sample for the :zephyr:board:`frdm_k64f…
41 .. zephyr-app-commands::
42 :zephyr-app: samples/hello_world
44 …:gen-args: -DCONFIG_SHELL=y -DCONFIG_CAN=y -DCONFIG_CAN_SHELL=y -DCONFIG_STATS=y -DCONFIG_CAN_STAT…
48 interact with the shell. The CAN shell comes with built-in help (unless
49 :kconfig:option:`CONFIG_SHELL_HELP` is disabled). The built-in help messages can be printed by
50 passing ``-h`` or ``--help`` to the ``can`` command or any of its subcommands. All subcommands also
51 support tab-completion of their arguments.
55 also supports tab-completion. A list of all devices available can be obtained using the ``device
63 below. The properties include the core CAN clock rate, the maximum supported bitrate, the number of
[all …]
/Zephyr-latest/boards/shields/tcan4550evm/
Dtcan4550evm.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/gpio/gpio.h>
17 cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
22 /* reduced spi-max-frequency to accommodate flywire connections */
23 spi-max-frequency = <2000000>;
25 clock-frequency = <40000000>;
26 device-state-gpios = <&arduino_header 12 GPIO_ACTIVE_HIGH>; /* D6 */
27 device-wake-gpios = <&arduino_header 13 GPIO_ACTIVE_HIGH>; /* D7 */
28 reset-gpios = <&arduino_header 14 GPIO_ACTIVE_HIGH>; /* D8 */
29 int-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
[all …]
/Zephyr-latest/boards/st/stm32h735g_disco/
Dstm32h735g_disco.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include <st/h7/stm32h735igkx-pinctrl.dtsi>
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
15 compatible = "st,stm32h735g-disco";
19 zephyr,shell-uart = &usart3;
26 compatible = "gpio-leds";
38 compatible = "gpio-keys";
50 volt-sensor1 = &vbat;
55 clock-frequency = <DT_FREQ_M(25)>;
[all …]
/Zephyr-latest/tests/drivers/can/api/
Dtwai-enable.overlay4 * SPDX-License-Identifier: Apache-2.0
10 pinctrl-0 = <&twai_default>;
11 pinctrl-names = "default";
13 can-transceiver {
14 max-bitrate = <1000000>;
22 output-enable; /* enable internal loopback */
26 input-enable; /* enable internal loopback */
/Zephyr-latest/boards/others/candlelightfd/
Dcandlelightfd_stm32g0b1xx_dual.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
15 transceiver1: can-phy1 {
16 compatible = "nxp,tja1051", "can-transceiver-gpio";
17 enable-gpios = <&gpiob 2 GPIO_ACTIVE_LOW>;
18 max-bitrate = <5000000>;
19 #phy-cells = <0>;
26 pinctrl-0 = <&fdcan2_rx_pb0 &fdcan2_tx_pb1>;
27 pinctrl-names = "default";
/Zephyr-latest/tests/drivers/can/api/src/
Dclassic.c5 * SPDX-License-Identifier: Apache-2.0
21 * @brief Standard (11-bit) CAN ID transmit callback 1.
32 zassert_equal(frame->id, TEST_CAN_STD_ID_1, "ID does not match"); in tx_std_callback_1()
36 * @brief Standard (11-bit) CAN ID transmit callback 2.
47 zassert_equal(frame->id, TEST_CAN_STD_ID_2, "ID does not match"); in tx_std_callback_2()
51 * @brief Extended (29-bit) CAN ID transmit callback 1.
62 zassert_equal(frame->id, TEST_CAN_EXT_ID_1, "ID does not match"); in tx_ext_callback_1()
66 * @brief Extended (29-bit) CAN ID transmit callback 2.
77 zassert_equal(frame->id, TEST_CAN_EXT_ID_2, "ID does not match"); in tx_ext_callback_2()
81 * @brief Standard (11-bit) CAN ID receive callback 1.
[all …]
/Zephyr-latest/boards/atmel/sam0/samc21n_xpro/
Dsamc21n_xpro.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
11 #include "samc21n_xpro-pinctrl.dtsi"
12 #include <zephyr/dt-bindings/input/input-event-codes.h>
20 zephyr,shell-uart = &sercom4;
29 pwm-led0 = &pwm_led0;
31 i2c-0 = &sercom1;
35 compatible = "gpio-leds";
43 compatible = "pwm-leds";
50 compatible = "gpio-keys";
[all …]
/Zephyr-latest/boards/nxp/mr_canhubk3/
Dmr_canhubk3.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <zephyr/dt-bindings/input/input-event-codes.h>
12 #include <dt-bindings/pwm/pwm.h>
13 #include "mr_canhubk3-pinctrl.dtsi"
14 #include <zephyr/dt-bindings/sensor/qdec_nxp_s32.h>
17 model = "NXP MR-CANHUBK3";
25 zephyr,code-partition = &code_partition;
27 zephyr,shell-uart = &lpuart2;
[all …]
/Zephyr-latest/boards/renesas/rcar_h3ulcb/
Drcar_h3ulcb_r8a77951_r7.dts4 * SPDX-License-Identifier: Apache-2.0
8 /dts-v1/;
10 #include "rcar_h3ulcb_r8a77951_r7-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
15 compatible = "renesas,h3ulcb-cr7";
20 zephyr,shell-uart = &scif1;
25 compatible = "gpio-leds";
33 compatible = "gpio-keys";
42 pwm-0 = &pwm0;
50 clock-frequency = <32000>;
[all …]
/Zephyr-latest/boards/st/stm32h745i_disco/
Dstm32h745i_disco_stm32h745xx_m7.dts5 * SPDX-License-Identifier: Apache-2.0
8 /dts-v1/;
13 model = "STMicroelectronics STM32H745I-DISCO board";
14 compatible = "st,stm32h745i-disco";
19 zephyr,shell-uart = &usart3;
23 zephyr,flash-controller = &mt25ql512ab1;
28 compatible = "pwm-leds";
32 label = "User LD8 - PWM11";
36 /* RM0455 - 23.6 External device address mapping */
38 compatible = "zephyr,memory-region", "mmio-sram";
[all …]
/Zephyr-latest/boards/nxp/ucans32k1sic/
Ducans32k1sic.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
8 #include <zephyr/dt-bindings/gpio/gpio.h>
9 #include <zephyr/dt-bindings/input/input-event-codes.h>
10 #include <zephyr/dt-bindings/pwm/pwm.h>
12 #include "ucans32k1sic-pinctrl.dtsi"
22 zephyr,shell-uart = &lpuart1;
23 zephyr,uart-pipe = &lpuart1;
31 pwm-led0 = &led1_red_pwm;
32 pwm-led1 = &led1_green_pwm;
[all …]
/Zephyr-latest/boards/nxp/vmu_rt1170/
Dvmu_rt1170_mimxrt1176_cm7.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include <zephyr/dt-bindings/led/led.h>
12 #include <zephyr/dt-bindings/input/input-event-codes.h>
24 pwm-led0 = &buzzer0;
25 mcuboot-button0 = &arming_button;
34 zephyr,shell-uart = &lpuart1;
36 zephyr,flash-controller = &mx25um51345g;
38 zephyr,code-partition = &slot0_partition;
39 zephyr,uart-mcumgr = &lpuart1;
[all …]
/Zephyr-latest/boards/nxp/mimxrt1062_fmurt6/
Dmimxrt1062_fmurt6.dts2 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include "mimxrt1062_fmurt6-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/pwm/pwm.h>
25 telem4-gps2 = &lpuart5;
29 zephyr,flash-controller = &s26ks512s0;
31 zephyr,code-partition = &slot0_partition;
32 zephyr,uart-mcumgr = &lpuart7;
37 zephyr,shell-uart = &lpuart7;
42 compatible = "gpio-leds";
[all …]

123