Home
last modified time | relevance | path

Searched refs:sjw (Results 1 – 25 of 28) sorted by relevance

12

/Zephyr-latest/drivers/can/
Dcan_fake.c124 .sjw = 1,
131 .sjw = 128,
141 .sjw = 1,
148 .sjw = 16,
Dcan_common.c312 res->sjw = MIN(res->phase_seg1, res->phase_seg2 / 2); in can_calc_timing_internal()
313 res->sjw = CLAMP(res->sjw, min->sjw, max->sjw); in can_calc_timing_internal()
350 if (!IN_RANGE(timing->sjw, min->sjw, max->sjw) || in check_timing_in_range()
358 if ((timing->sjw > timing->phase_seg1) || (timing->sjw > timing->phase_seg2)) { in check_timing_in_range()
Dcan_esp32_twai.c36 #define TWAI_SYNC_JUMP_WIDTH_PREP(sjw) FIELD_PREP(TWAI_SYNC_JUMP_WIDTH_MASK, sjw) argument
131 TWAI_SYNC_JUMP_WIDTH_PREP(timing->sjw - 1); in can_esp32_twai_set_timing()
245 .sjw = 0x4,
Dcan_shell.c398 timing_min->sjw, timing_max->sjw, in cmd_can_show()
410 timing_min->sjw, timing_max->sjw, in cmd_can_show()
472 timing.sjw = (uint16_t)strtoul(argv[4], &endptr, 10); in cmd_can_bitrate_set()
482 timing.sjw); in cmd_can_bitrate_set()
485 timing.sjw, timing.prop_seg, timing.phase_seg1, timing.phase_seg2, in cmd_can_bitrate_set()
543 timing.sjw = (uint16_t)strtoul(argv[4], &endptr, 10); in cmd_can_dbitrate_set()
553 timing.sjw); in cmd_can_dbitrate_set()
556 timing.sjw, timing.prop_seg, timing.phase_seg1, timing.phase_seg2, in cmd_can_dbitrate_set()
582 timing->sjw = (uint32_t)strtoul(argv[2], &endptr, 10); in can_shell_parse_timing()
632 "prescaler %u", timing.sjw, timing.prop_seg, timing.phase_seg1, in cmd_can_timing_set()
[all …]
Dcan_sja1000_priv.h99 #define CAN_SJA1000_BTR0_SJW_PREP(sjw) FIELD_PREP(CAN_SJA1000_BTR0_SJW_MASK, sjw) argument
Dcan_loopback.c383 .sjw = 1,
390 .sjw = 128,
400 .sjw = 1,
407 .sjw = 16,
Dcan_native_linux.c416 .sjw = 0x1,
423 .sjw = 0x0F,
432 .sjw = 0x1,
439 .sjw = 0x0F,
Dcan_mcux_flexcan.c294 timing.rJumpwidth = data->timing.sjw - 1U; in mcux_flexcan_start()
303 timing.frJumpwidth = data->timing_data.sjw - 1U; in mcux_flexcan_start()
1222 flexcan_config.timingConfig.rJumpwidth = data->timing.sjw - 1U; in mcux_flexcan_init()
1229 flexcan_config.timingConfig.frJumpwidth = data->timing_data.sjw - 1U; in mcux_flexcan_init()
1286 .sjw = 0x01,
1293 .sjw = 0x04,
1331 .sjw = 0x01,
1338 .sjw = 0x20,
1345 .sjw = 0x01,
1352 .sjw = 0x08,
Dcan_mcp2515.c340 uint8_t sjw = (timing->sjw - 1) << 6; in mcp2515_set_timing() local
341 uint8_t cnf1 = sjw | brp; in mcp2515_set_timing()
894 .sjw = 0x1,
901 .sjw = 0x04,
Dcan_nxp_s32_canxl.c693 timing->prescaler, timing->sjw); in nxp_s32_zcan_timing_to_canxl_timing()
699 canxl_timing->rJumpwidth = timing->sjw - 1U; in nxp_s32_zcan_timing_to_canxl_timing()
1100 .sjw = 0x01,
1107 .sjw = 0x04,
1116 .sjw = 0x01,
1123 .sjw = 0x04,
Dcan_renesas_ra.c21 .sjw = 128, \
30 .sjw = 1, \
40 .sjw = 16, \
48 .sjw = 1, \
198 .synchronization_jump_width = z_timing->sjw, in set_hw_timing_configuration()
Dcan_mcp251xfd.c427 tmp |= FIELD_PREP(MCP251XFD_REG_NBTCFG_SJW_MASK, timing->sjw - 1); in mcp251xfd_set_timing()
465 tmp |= FIELD_PREP(MCP251XFD_REG_DBTCFG_SJW_MASK, timing->sjw - 1); in mcp251xfd_set_timing_data()
1702 .sjw = 1,
1709 .sjw = 128,
1717 .sjw = 1,
1724 .sjw = 16,
Dcan_xmc4xxx.c135 reg |= FIELD_PREP(CAN_NODE_NBTR_SJW_Msk, timing->sjw - 1); in can_xmc4xxx_set_timing()
899 .sjw = 1,
906 .sjw = 4,
Dcan_rcar.c730 RCAR_CAN_BCR_SJW(timing->sjw - 1) | in can_rcar_set_bittiming()
1170 .sjw = 0x1,
1177 .sjw = 0x4,
Dcan_stm32_bxcan.c555 (((timing->sjw - 1) << CAN_BTR_SJW_Pos) & CAN_BTR_SJW_Msk) | in can_stm32_set_timing()
1083 .sjw = 0x1,
1090 .sjw = 0x04,
Dcan_mcan.c209 nbtp |= FIELD_PREP(CAN_MCAN_NBTP_NSJW, timing->sjw - 1UL) | in can_mcan_set_timing()
240 dbtp |= FIELD_PREP(CAN_MCAN_DBTP_DSJW, timing_data->sjw - 1UL) | in can_mcan_set_timing_data()
Dcan_sja1000.c121 CAN_SJA1000_BTR0_SJW_PREP(timing->sjw - 1); in can_sja1000_set_timing()
/Zephyr-latest/tests/drivers/can/timing/src/
Dmain.c105 zassert_true(timing->sjw <= max->sjw, "sjw exceeds max"); in assert_timing_within_bounds()
111 zassert_true(timing->sjw >= min->sjw, "sjw lower than min"); in assert_timing_within_bounds()
183 timing.sjw, timing.prop_seg, timing.phase_seg1, timing.phase_seg2, in test_timing_values()
/Zephyr-latest/include/zephyr/drivers/can/
Dcan_sja1000.h64 .sjw = 1, \
76 .sjw = 4, \
Dcan_mcan.h853 .sjw = 1, \
865 .sjw = 128, \
877 .sjw = 1, \
889 .sjw = 16, \
/Zephyr-latest/tests/drivers/can/shell/src/
Dmain.c34 zassert_equal(t1->sjw, t2->sjw, "sjw mismatch"); in assert_can_timing_equal()
215 .sjw = 16U, in ZTEST()
247 .sjw = 5U, in ZTEST()
/Zephyr-latest/doc/hardware/peripherals/can/
Dshell.rst79 … timing: sjw 1..128, prop_seg 0..0, phase_seg1 2..256, phase_seg2 2..128, prescaler 1..512
80 timing data: sjw 1..16, prop_seg 0..0, phase_seg1 1..32, phase_seg2 1..16, prescaler 1..32
/Zephyr-latest/doc/releases/
Dmigration-guide-3.5.rst232 the ``sjw`` field in :c:struct:`can_timing`. To aid in this, the :c:func:`can_calc_timing` and
416 * ``sjw``
420 * ``sjw-data``
Drelease-notes-3.5.rst1013 * property ``sjw-data`` default value changed from None to 1
1014 * property ``sjw-data`` deprecation status changed from False to True
1015 * property ``sjw`` default value changed from None to 1
1016 * property ``sjw`` deprecation status changed from False to True
/Zephyr-latest/include/zephyr/drivers/
Dcan.h264 uint16_t sjw; member

12