Home
last modified time | relevance | path

Searched refs:CAN_MODE_LOOPBACK (Results 1 – 25 of 31) sorted by relevance

12

/Zephyr-latest/soc/st/stm32/stm32f0x/
Dsoc.h27 #undef CAN_MODE_LOOPBACK
/Zephyr-latest/soc/st/stm32/stm32f1x/
Dsoc.h27 #undef CAN_MODE_LOOPBACK
/Zephyr-latest/soc/st/stm32/stm32f2x/
Dsoc.h26 #undef CAN_MODE_LOOPBACK
/Zephyr-latest/soc/st/stm32/stm32f3x/
Dsoc.h28 #undef CAN_MODE_LOOPBACK
/Zephyr-latest/soc/st/stm32/stm32f4x/
Dsoc.h27 #undef CAN_MODE_LOOPBACK
/Zephyr-latest/soc/st/stm32/stm32f7x/
Dsoc.h26 #undef CAN_MODE_LOOPBACK
/Zephyr-latest/soc/st/stm32/stm32l4x/
Dsoc.h28 #undef CAN_MODE_LOOPBACK
/Zephyr-latest/tests/drivers/can/api/src/
Dcanfd.c237 zassert_not_equal(cap & (CAN_MODE_LOOPBACK | CAN_MODE_FD), 0, in ZTEST()
324 err = can_set_mode(can_dev, first | CAN_MODE_LOOPBACK); in check_filters_preserved_between_modes()
326 zassert_equal(first | CAN_MODE_LOOPBACK, can_get_mode(can_dev)); in check_filters_preserved_between_modes()
357 err = can_set_mode(can_dev, second | CAN_MODE_LOOPBACK); in check_filters_preserved_between_modes()
359 zassert_equal(second | CAN_MODE_LOOPBACK, can_get_mode(can_dev)); 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()
562 can_common_test_setup(CAN_MODE_LOOPBACK | CAN_MODE_FD); in canfd_setup()
Dclassic.c453 zassert_not_equal(cap & CAN_MODE_LOOPBACK, 0, "CAN loopback mode not supported"); in ZTEST_USER()
1154 err = can_set_mode(can_dev, CAN_MODE_LOOPBACK); in ZTEST_USER()
1156 zassert_equal(CAN_MODE_LOOPBACK, can_get_mode(can_dev)); in ZTEST_USER()
1216 err = can_set_mode(can_dev, CAN_MODE_LOOPBACK); in ZTEST_USER()
1218 zassert_equal(CAN_MODE_LOOPBACK, can_get_mode(can_dev)); in ZTEST_USER()
1421 can_common_test_setup(CAN_MODE_LOOPBACK); in can_classic_setup()
/Zephyr-latest/drivers/can/
Dcan_loopback.c81 if ((data->common.mode & CAN_MODE_LOOPBACK) == 0U) { in tx_thread()
229 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK; in can_loopback_get_capabilities()
275 if ((mode & ~(CAN_MODE_LOOPBACK | CAN_MODE_FD)) != 0) { in can_loopback_set_mode()
280 if ((mode & ~(CAN_MODE_LOOPBACK)) != 0) { in can_loopback_set_mode()
Dcan_native_linux.c102 if ((data->common.mode & CAN_MODE_LOOPBACK) == 0U) { in rx_thread()
260 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK; in can_native_linux_get_capabilities()
301 if ((mode & ~(CAN_MODE_LOOPBACK | CAN_MODE_FD)) != 0) { in can_native_linux_set_mode()
306 if ((mode & ~(CAN_MODE_LOOPBACK)) != 0) { in can_native_linux_set_mode()
Dcan_sja1000.c141 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | in can_sja1000_get_capabilities()
220 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_ONE_SHOT | in can_sja1000_set_mode()
244 if ((mode & CAN_MODE_LOOPBACK) != 0) { in can_sja1000_set_mode()
421 if ((data->common.mode & CAN_MODE_LOOPBACK) != 0) { in can_sja1000_send()
Dcan_rcar.c567 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_rcar_get_capabilities()
656 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_rcar_set_mode()
677 if ((mode & (CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY)) == in can_rcar_set_mode()
678 (CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY)) { in can_rcar_set_mode()
682 } else if ((mode & CAN_MODE_LOOPBACK) != 0) { in can_rcar_set_mode()
Dcan_nxp_s32_canxl.c136 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_nxp_s32_get_capabilities()
276 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_nxp_s32_set_mode()
300 if ((mode & (CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY)) in can_nxp_s32_set_mode()
301 == (CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY)) { in can_nxp_s32_set_mode()
312 } else if (mode & CAN_MODE_LOOPBACK) { in can_nxp_s32_set_mode()
Dcan_mcux_flexcan.c178 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_3_SAMPLES; in mcux_flexcan_get_capabilities()
391 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_3_SAMPLES; in mcux_flexcan_set_mode()
422 if ((mode & CAN_MODE_LOOPBACK) != 0) { in mcux_flexcan_set_mode()
465 if ((mode & CAN_MODE_LOOPBACK) != 0) { in mcux_flexcan_set_mode()
Dcan_stm32_bxcan.c381 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_ONE_SHOT; in can_stm32_get_capabilities()
480 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_ONE_SHOT; in can_stm32_set_mode()
502 if ((mode & CAN_MODE_LOOPBACK) != 0) { in can_stm32_set_mode()
Dcan_mcan.c278 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_mcan_get_capabilities()
376 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_mcan_set_mode()
411 if ((mode & CAN_MODE_LOOPBACK) != 0) { in can_mcan_set_mode()
Dcan_mcp2515.c405 *cap = CAN_MODE_NORMAL | CAN_MODE_LISTENONLY | CAN_MODE_LOOPBACK; in mcp2515_get_capabilities()
515 case CAN_MODE_LOOPBACK: in mcp2515_set_mode()
Dcan_renesas_ra.c403 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK; in can_renesas_ra_get_capabilities()
456 if ((data->common.mode & CAN_MODE_LOOPBACK) != 0) { in can_renesas_ra_start()
/Zephyr-latest/tests/subsys/canbus/isotp/conformance/src/
Dmode_check.c82 err = can_set_mode(can_dev, CAN_MODE_LOOPBACK | (canfd_capable ? CAN_MODE_FD : 0)); in isotp_conformance_mode_check_setup()
/Zephyr-latest/samples/subsys/canbus/isotp/src/
Dmain.c149 can_mode_t mode = (IS_ENABLED(CONFIG_SAMPLE_LOOPBACK_MODE) ? CAN_MODE_LOOPBACK : 0) | in main()
/Zephyr-latest/samples/drivers/can/counter/src/
Dmain.c218 ret = can_set_mode(can_dev, CAN_MODE_LOOPBACK); in main()
/Zephyr-latest/samples/net/sockets/can/src/
Dmain.c270 ret = can_set_mode(dev, CAN_MODE_LOOPBACK); in main()
/Zephyr-latest/tests/drivers/can/shell/src/
Dmain.c330 can_shell_test_mode("can mode " FAKE_CAN_NAME " loopback", CAN_MODE_LOOPBACK); in ZTEST()
351 CAN_MODE_LISTENONLY | CAN_MODE_LOOPBACK); in ZTEST()
/Zephyr-latest/tests/subsys/canbus/isotp/implementation/src/
Dmain.c420 ret = can_set_mode(can_dev, CAN_MODE_LOOPBACK); in isotp_implementation_setup()

12