Home
last modified time | relevance | path

Searched refs:prop_seg (Results 1 – 20 of 20) sorted by relevance

/Zephyr-latest/drivers/can/
Dcan_common.c158 uint16_t tseg1_max = max->phase_seg1 + max->prop_seg; in update_sample_pnt()
159 uint16_t tseg1_min = min->phase_seg1 + min->prop_seg; in update_sample_pnt()
190 res->prop_seg = CLAMP(tseg1 / 2, min->prop_seg, max->prop_seg); in update_sample_pnt()
191 res->phase_seg1 = tseg1 - res->prop_seg; in update_sample_pnt()
196 res->prop_seg = tseg1 - res->phase_seg1; in update_sample_pnt()
200 res->prop_seg = tseg1 - res->phase_seg1; in update_sample_pnt()
255 uint32_t total_tq = CAN_SYNC_SEG + max->prop_seg + max->phase_seg1 + max->phase_seg2; in can_calc_timing_internal()
295 res->prop_seg = tmp_res.prop_seg; in can_calc_timing_internal()
351 !IN_RANGE(timing->prop_seg, min->prop_seg, max->prop_seg) || in check_timing_in_range()
Dcan_fake.c125 .prop_seg = 0,
132 .prop_seg = 0,
142 .prop_seg = 0,
149 .prop_seg = 0,
Dcan_loopback.c384 .prop_seg = 0,
391 .prop_seg = 0,
401 .prop_seg = 0,
408 .prop_seg = 0,
Dcan_shell.c399 timing_min->prop_seg, timing_max->prop_seg, in cmd_can_show()
411 timing_min->prop_seg, timing_max->prop_seg, in cmd_can_show()
485 timing.sjw, timing.prop_seg, timing.phase_seg1, timing.phase_seg2, in cmd_can_bitrate_set()
556 timing.sjw, timing.prop_seg, timing.phase_seg1, timing.phase_seg2, in cmd_can_dbitrate_set()
588 timing->prop_seg = (uint32_t)strtoul(argv[3], &endptr, 10); in can_shell_parse_timing()
632 "prescaler %u", timing.sjw, timing.prop_seg, timing.phase_seg1, in cmd_can_timing_set()
661 "phase_seg2 %u, prescaler %u", timing.sjw, timing.prop_seg, timing.phase_seg1, in cmd_can_dtiming_set()
Dcan_native_linux.c417 .prop_seg = 0x01,
424 .prop_seg = 0x0F,
433 .prop_seg = 0x01,
440 .prop_seg = 0x0F,
Dcan_mcux_flexcan.c297 timing.propSeg = data->timing.prop_seg - 1U; in mcux_flexcan_start()
306 timing.fpropSeg = data->timing_data.prop_seg; in mcux_flexcan_start()
1205 (1U + data->timing.prop_seg + data->timing.phase_seg1 + in mcux_flexcan_init()
1211 (1U + data->timing_data.prop_seg + data->timing_data.phase_seg1 + in mcux_flexcan_init()
1223 flexcan_config.timingConfig.propSeg = data->timing.prop_seg - 1U; in mcux_flexcan_init()
1230 flexcan_config.timingConfig.fpropSeg = data->timing_data.prop_seg; in mcux_flexcan_init()
1287 .prop_seg = 0x01,
1294 .prop_seg = 0x08,
1332 .prop_seg = 0x01,
1339 .prop_seg = 0x40,
[all …]
Dcan_nxp_s32_canxl.c692 timing->prop_seg, timing->phase_seg1, timing->phase_seg2, in nxp_s32_zcan_timing_to_canxl_timing()
695 canxl_timing->propSeg = timing->prop_seg - 1U; in nxp_s32_zcan_timing_to_canxl_timing()
1101 .prop_seg = 0x01,
1108 .prop_seg = 0x08,
1117 .prop_seg = 0x01,
1124 .prop_seg = 0x08,
Dcan_renesas_ra.c22 .prop_seg = 1, \
31 .prop_seg = 1, \
41 .prop_seg = 1, \
49 .prop_seg = 1, \
196 .time_segment_1 = z_timing->prop_seg + z_timing->phase_seg1, in set_hw_timing_configuration()
Dcan_mcp251xfd.c425 timing->prop_seg + timing->phase_seg1 - 1); in mcp251xfd_set_timing()
463 timing->prop_seg + timing->phase_seg1 - 1); in mcp251xfd_set_timing_data()
1703 .prop_seg = 0,
1710 .prop_seg = 0,
1718 .prop_seg = 0,
1725 .prop_seg = 0,
Dcan_esp32_twai.c246 .prop_seg = 0x0,
Dcan_mcp2515.c347 const uint8_t prseg = (timing->prop_seg - 1); in mcp2515_set_timing()
895 .prop_seg = 0x01,
902 .prop_seg = 0x08,
Dcan_xmc4xxx.c133 reg |= FIELD_PREP(CAN_NODE_NBTR_TSEG1_Msk, timing->prop_seg + timing->phase_seg1 - 1); in can_xmc4xxx_set_timing()
900 .prop_seg = 0,
907 .prop_seg = 0,
Dcan_rcar.c728 bcr = RCAR_CAN_BCR_TSEG1(timing->phase_seg1 + timing->prop_seg - 1) | in can_rcar_set_bittiming()
1171 .prop_seg = 0x00,
1178 .prop_seg = 0x00,
Dcan_stm32_bxcan.c1084 .prop_seg = 0x00,
1091 .prop_seg = 0x00,
/Zephyr-latest/tests/drivers/can/timing/src/
Dmain.c78 const uint32_t ts = 1 + timing->prop_seg + timing->phase_seg1 + timing->phase_seg2; in assert_bitrate_correct()
106 zassert_true(timing->prop_seg <= max->prop_seg, "prop_seg exceeds max"); in assert_timing_within_bounds()
112 zassert_true(timing->prop_seg >= min->prop_seg, "prop_seg lower than min"); in assert_timing_within_bounds()
130 const uint32_t ts = 1 + timing->prop_seg + timing->phase_seg1 + timing->phase_seg2; in assert_sp_within_margin()
131 const uint16_t sp_calc = ((1 + timing->prop_seg + timing->phase_seg1) * 1000) / ts; in assert_sp_within_margin()
183 timing.sjw, timing.prop_seg, timing.phase_seg1, timing.phase_seg2, in test_timing_values()
/Zephyr-latest/include/zephyr/drivers/can/
Dcan_sja1000.h65 .prop_seg = 0, \
77 .prop_seg = 0, \
Dcan_mcan.h854 .prop_seg = 0, \
866 .prop_seg = 0, \
878 .prop_seg = 0, \
890 .prop_seg = 0, \
/Zephyr-latest/tests/drivers/can/shell/src/
Dmain.c35 zassert_equal(t1->prop_seg, t2->prop_seg, "prop_seg mismatch"); in assert_can_timing_equal()
216 .prop_seg = 0U, in ZTEST()
248 .prop_seg = 0U, in ZTEST()
/Zephyr-latest/include/zephyr/drivers/
Dcan.h266 uint16_t prop_seg; member
328 CLAMP((1U + _timing_data->prop_seg + _timing_data->phase_seg1) * _timing_data->prescaler, \
/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