Searched refs:CAN_MODE_FD (Results 1 – 19 of 19) sorted by relevance
/Zephyr-latest/tests/drivers/can/api/src/ |
D | canfd.c | 237 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/ |
D | mode_check.c | 78 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()
|
D | main.c | 1118 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/ |
D | can_mcux_flexcan.c | 185 *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 …]
|
D | can_native_linux.c | 153 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()
|
D | can_loopback.c | 128 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()
|
D | can_mcan.c | 285 *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()
|
D | can_renesas_ra.c | 406 *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()
|
D | can_nxp_s32_canxl.c | 143 *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()
|
D | can_shell.c | 37 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()
|
D | can_mcp251xfd.c | 384 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()
|
D | can_xmc4xxx.c | 100 CAN_MODE_LOOPBACK | CAN_MODE_FD)) != 0) { in can_xmc4xxx_set_mode()
|
/Zephyr-latest/tests/drivers/can/timing/src/ |
D | main.c | 235 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/ |
D | main.c | 61 err = can_set_mode(dev, CAN_MODE_FD); in main()
|
/Zephyr-latest/samples/subsys/canbus/isotp/src/ |
D | main.c | 150 (IS_ENABLED(CONFIG_SAMPLE_CAN_FD_MODE) ? CAN_MODE_FD : 0); in main()
|
/Zephyr-latest/tests/drivers/can/shell/src/ |
D | main.c | 320 can_shell_test_mode("can mode " FAKE_CAN_NAME " fd", CAN_MODE_FD); in ZTEST()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | can.h | 95 #define CAN_MODE_FD BIT(2) macro
|
/Zephyr-latest/subsys/canbus/isotp/ |
D | isotp.c | 643 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/ |
D | release-notes-3.1.rst | 196 * Added support for enabling/disabling CAN-FD mode at runtime using :c:macro:`CAN_MODE_FD`.
|