Home
last modified time | relevance | path

Searched refs:CAN_MODE_FD (Results 1 – 19 of 19) sorted by relevance

/Zephyr-latest/tests/drivers/can/api/src/
Dcanfd.c237 zassert_not_equal(cap & (CAN_MODE_LOOPBACK | CAN_MODE_FD), 0, in ZTEST()
341 if ((first & CAN_MODE_FD) != 0) { in check_filters_preserved_between_modes()
370 if ((second & CAN_MODE_FD) != 0) { in check_filters_preserved_between_modes()
386 err = can_set_mode(can_dev, CAN_MODE_FD | CAN_MODE_LOOPBACK); in check_filters_preserved_between_modes()
388 zassert_equal(CAN_MODE_FD | CAN_MODE_LOOPBACK, can_get_mode(can_dev)); in check_filters_preserved_between_modes()
403 check_filters_preserved_between_modes(CAN_MODE_NORMAL, CAN_MODE_FD); in ZTEST_USER()
412 check_filters_preserved_between_modes(CAN_MODE_FD, CAN_MODE_NORMAL); in ZTEST_USER()
553 if ((cap & CAN_MODE_FD) == 0) { in canfd_predicate()
562 can_common_test_setup(CAN_MODE_LOOPBACK | CAN_MODE_FD); in canfd_setup()
/Zephyr-latest/tests/subsys/canbus/isotp/conformance/src/
Dmode_check.c78 canfd_capable = (cap & CAN_MODE_FD) != 0; in isotp_conformance_mode_check_setup()
82 err = can_set_mode(can_dev, CAN_MODE_LOOPBACK | (canfd_capable ? CAN_MODE_FD : 0)); in isotp_conformance_mode_check_setup()
Dmain.c1118 if ((cap & CAN_MODE_FD) == 0) { in canfd_predicate()
1138 (IS_ENABLED(CONFIG_TEST_USE_CAN_FD_MODE) ? CAN_MODE_FD : 0)); in isotp_conformance_setup()
/Zephyr-latest/drivers/can/
Dcan_mcux_flexcan.c185 *cap |= CAN_MODE_FD; in mcux_flexcan_get_capabilities()
203 if ((data->common.mode & CAN_MODE_FD) != 0U) { in mcux_flexcan_mb_start()
229 if ((data->common.mode & CAN_MODE_FD) != 0U) { in mcux_flexcan_mb_stop()
344 if ((data->common.mode & CAN_MODE_FD) != 0U) { in mcux_flexcan_stop()
406 supported |= CAN_MODE_FD; in mcux_flexcan_set_mode()
414 if ((mode & CAN_MODE_FD) != 0 && (mode & CAN_MODE_3_SAMPLES) != 0) { in mcux_flexcan_set_mode()
460 if ((mode & CAN_MODE_FD) != 0) { in mcux_flexcan_set_mode()
681 ((data->common.mode & CAN_MODE_FD) != 0U))) { in mcux_flexcan_send()
728 if ((data->common.mode & CAN_MODE_FD) != 0U) { in mcux_flexcan_send()
741 if ((data->common.mode & CAN_MODE_FD) != 0U) { in mcux_flexcan_send()
[all …]
Dcan_native_linux.c153 if ((data->common.mode & CAN_MODE_FD) == 0U) { in can_native_linux_send()
263 *cap |= CAN_MODE_FD; in can_native_linux_get_capabilities()
301 if ((mode & ~(CAN_MODE_LOOPBACK | CAN_MODE_FD)) != 0) { in can_native_linux_set_mode()
316 err = linux_socketcan_set_mode_fd(data->dev_fd, (mode & CAN_MODE_FD) != 0); in can_native_linux_set_mode()
Dcan_loopback.c128 if ((data->common.mode & CAN_MODE_FD) == 0U) { in can_loopback_send()
232 *cap |= CAN_MODE_FD; in can_loopback_get_capabilities()
275 if ((mode & ~(CAN_MODE_LOOPBACK | CAN_MODE_FD)) != 0) { in can_loopback_set_mode()
Dcan_mcan.c285 *cap |= CAN_MODE_FD; in can_mcan_get_capabilities()
387 supported |= CAN_MODE_FD; in can_mcan_set_mode()
427 if ((mode & CAN_MODE_FD) != 0) { in can_mcan_set_mode()
942 if ((data->common.mode & CAN_MODE_FD) == 0U && in can_mcan_send()
Dcan_renesas_ra.c406 *cap |= CAN_MODE_FD; in can_renesas_ra_get_capabilities()
440 (can_bit_timing_cfg_t *)((data->common.mode & CAN_MODE_FD) != 0 in can_renesas_ra_start()
568 if ((data->common.mode & CAN_MODE_FD) == 0U && in can_renesas_ra_send()
Dcan_nxp_s32_canxl.c143 *cap |= CAN_MODE_FD; in can_nxp_s32_get_capabilities()
292 supported |= CAN_MODE_FD; in can_nxp_s32_set_mode()
307 canfd = !!(mode & CAN_MODE_FD); in can_nxp_s32_set_mode()
Dcan_shell.c37 CAN_SHELL_MODE_MAPPING("fd", CAN_MODE_FD),
404 if (IS_ENABLED(CONFIG_CAN_FD_MODE) && (cap & CAN_MODE_FD) != 0) { in cmd_can_show()
Dcan_mcp251xfd.c384 if ((mode & CAN_MODE_FD) != 0) { in mcp251xfd_set_mode()
509 if ((msg->flags & CAN_FRAME_FDF) && !(dev_data->common.mode & CAN_MODE_FD)) { in mcp251xfd_send()
1187 *cap |= CAN_MODE_FD; in mcp251xfd_get_capabilities()
Dcan_xmc4xxx.c100 CAN_MODE_LOOPBACK | CAN_MODE_FD)) != 0) { in can_xmc4xxx_set_mode()
/Zephyr-latest/tests/drivers/can/timing/src/
Dmain.c235 if ((cap & CAN_MODE_FD) == 0) { in ZTEST_USER()
268 if ((cap & CAN_MODE_FD) != 0) { in can_timing_setup()
/Zephyr-latest/samples/drivers/can/babbling/src/
Dmain.c61 err = can_set_mode(dev, CAN_MODE_FD); in main()
/Zephyr-latest/samples/subsys/canbus/isotp/src/
Dmain.c150 (IS_ENABLED(CONFIG_SAMPLE_CAN_FD_MODE) ? CAN_MODE_FD : 0); in main()
/Zephyr-latest/tests/drivers/can/shell/src/
Dmain.c320 can_shell_test_mode("can mode " FAKE_CAN_NAME " fd", CAN_MODE_FD); in ZTEST()
/Zephyr-latest/include/zephyr/drivers/
Dcan.h95 #define CAN_MODE_FD BIT(2) macro
/Zephyr-latest/subsys/canbus/isotp/
Disotp.c643 if (ret != 0 || (cap & CAN_MODE_FD) == 0) { in isotp_bind()
1207 if (ret != 0 || (cap & CAN_MODE_FD) == 0) { in send()
/Zephyr-latest/doc/releases/
Drelease-notes-3.1.rst196 * Added support for enabling/disabling CAN-FD mode at runtime using :c:macro:`CAN_MODE_FD`.