/Zephyr-Core-3.5.0/dts/bindings/can/ |
D | can-fd-controller.yaml | 17 (`sjw-data`, `prop-seg-data`, `phase-seg1-data`, and `phase-seg2-data`). 20 sjw-data: 27 Deprecated in favor of automatic calculation of a suitable default SJW based on existing 31 Applications can still manually set the SJW using the CAN timing APIs.
|
D | can-controller.yaml | 17 (`sjw`, `prop-seg`, `phase-seg1`, and `phase-seg2`). 20 sjw: 27 Deprecated in favor of automatic calculation of a suitable default SJW based on existing 31 Applications can still manually set the SJW using the CAN timing APIs.
|
/Zephyr-Core-3.5.0/drivers/can/ |
D | can_fake.c | 109 .sjw = 0x01, 116 .sjw = 0x0f, 125 .sjw = 0x01, 132 .sjw = 0x0f,
|
D | can_common.c | 212 /* Calculate default sjw as phase_seg2 / 2 and clamp the result */ in can_calc_timing_int() 213 res->sjw = MIN(res->phase_seg1, res->phase_seg2 / 2); in can_calc_timing_int() 214 res->sjw = CLAMP(res->sjw, min->sjw, max->sjw); in can_calc_timing_int() 307 if (!IN_RANGE(timing->sjw, min->sjw, max->sjw) || in check_timing_in_range() 315 if ((timing->sjw > timing->phase_seg1) || (timing->sjw > timing->phase_seg2)) { in check_timing_in_range()
|
D | can_shell.c | 344 shell_print(sh, "timing: sjw %u..%u, prop_seg %u..%u, " in cmd_can_show() 346 timing_min->sjw, timing_max->sjw, in cmd_can_show() 356 shell_print(sh, "timing data: sjw %u..%u, prop_seg %u..%u, " in cmd_can_show() 358 timing_min->sjw, timing_max->sjw, in cmd_can_show() 404 /* Overwrite calculated default SJW with user-provided value */ in cmd_can_bitrate_set() 405 timing.sjw = (uint16_t)strtoul(argv[4], &endptr, 10); in cmd_can_bitrate_set() 407 shell_error(sh, "failed to parse SJW"); in cmd_can_bitrate_set() 413 "(+/- %d.%d%%), sjw %d", in cmd_can_bitrate_set() 415 timing.sjw); in cmd_can_bitrate_set() 417 LOG_DBG("sjw %u, prop_seg %u, phase_seg1 %u, phase_seg2 %u, prescaler %u", in cmd_can_bitrate_set() [all …]
|
D | can_esp32_twai.c | 36 #define TWAI_SYNC_JUMP_WIDTH_PREP(sjw) FIELD_PREP(TWAI_SYNC_JUMP_WIDTH_MASK, sjw) argument 129 TWAI_SYNC_JUMP_WIDTH_PREP(timing->sjw - 1); in can_esp32_twai_set_timing() 237 .sjw = 0x4,
|
D | can_mcux_flexcan.c | 94 uint32_t sjw; member 335 timing.rJumpwidth = data->timing.sjw - 1U; in mcux_flexcan_start() 344 timing.frJumpwidth = data->timing_data.sjw - 1U; in mcux_flexcan_start() 1189 data->timing.sjw = config->sjw; in mcux_flexcan_init() 1202 data->timing.sjw = config->sjw; in mcux_flexcan_init() 1221 data->timing_data.sjw = config->sjw_data; in mcux_flexcan_init() 1234 data->timing_data.sjw = config->sjw_data; in mcux_flexcan_init() 1287 flexcan_config.timingConfig.rJumpwidth = data->timing.sjw - 1U; in mcux_flexcan_init() 1294 flexcan_config.timingConfig.frJumpwidth = data->timing_data.sjw - 1U; in mcux_flexcan_init() 1353 .sjw = 0x01, [all …]
|
D | can_nxp_s32_canxl.c | 74 uint32_t sjw; member 612 LOG_DBG("propSeg: %d, phase_seg1: %d, phase_seg2: %d, prescaler: %d, sjw: %d", 614 timing->prescaler, timing->sjw); 620 canxl_timing->rJumpwidth = timing->sjw - 1U; 858 data->timing.sjw = config->sjw; 883 data->timing_data.sjw = config->sjw_data; 951 .sjw = 0x01, 958 .sjw = 0x04, 967 .sjw = 0x01, 974 .sjw = 0x04, [all …]
|
D | can_sja1000_priv.h | 99 #define CAN_SJA1000_BTR0_SJW_PREP(sjw) FIELD_PREP(CAN_SJA1000_BTR0_SJW_MASK, sjw) argument
|
D | can_loopback.c | 399 .sjw = 0x1, 406 .sjw = 0x0F, 415 .sjw = 0x1, 422 .sjw = 0x0F,
|
D | can_native_posix_linux.c | 426 .sjw = 0x1, 433 .sjw = 0x0F, 442 .sjw = 0x1, 449 .sjw = 0x0F,
|
D | can_mcp2515.c | 363 /* CNF1; SJW<7:6> | BRP<5:0> */ in mcp2515_set_timing() 366 uint8_t sjw = (timing->sjw - 1) << 6; in mcp2515_set_timing() local 367 uint8_t cnf1 = sjw | brp; in mcp2515_set_timing() 908 .sjw = 0x1, 915 .sjw = 0x04, 1000 timing.sjw = dev_cfg->tq_sjw; in mcp2515_init() 1037 .tq_sjw = DT_INST_PROP(inst, sjw), \
|
D | can_stm32_bxcan.c | 89 uint8_t sjw; member 561 (((timing->sjw - 1) << CAN_BTR_SJW_Pos) & CAN_BTR_SJW_Msk) | in can_stm32_set_timing() 687 timing.sjw = cfg->sjw; in can_stm32_init() 1110 .sjw = 0x1, 1117 .sjw = 0x04, 1172 .sjw = DT_INST_PROP_OR(inst, sjw, 1), \
|
D | can_rcar.c | 176 uint8_t sjw; member 712 RCAR_CAN_BCR_SJW(timing->sjw - 1) | in can_rcar_set_bittiming() 1069 timing.sjw = config->sjw; in can_rcar_init() 1172 .sjw = 0x1, 1179 .sjw = 0x4, 1206 .sjw = DT_INST_PROP(n, sjw), \
|
D | can_mcp251xfd.c | 435 *reg |= FIELD_PREP(MCP251XFD_REG_NBTCFG_SJW_MASK, timing->sjw - 1); in mcp251xfd_set_timing() 471 *reg |= FIELD_PREP(MCP251XFD_REG_DBTCFG_SJW_MASK, timing->sjw - 1); in mcp251xfd_set_timing_data() 1320 timing->sjw = timing_params->sjw; in mcp251xfd_init_timing_struct() 1681 .sjw = 1, 1688 .sjw = 128, 1696 .sjw = 1, 1703 .sjw = 16, 1714 .sjw = DT_INST_PROP(inst, sjw##type), \
|
D | can_sja1000.c | 121 CAN_SJA1000_BTR0_SJW_PREP(timing->sjw - 1); in can_sja1000_set_timing() 721 timing.sjw = config->sjw; in can_sja1000_init()
|
D | can_mcan.c | 209 nbtp |= FIELD_PREP(CAN_MCAN_NBTP_NSJW, timing->sjw - 1UL) | in can_mcan_set_timing() 238 dbtp |= FIELD_PREP(CAN_MCAN_DBTP_DSJW, timing_data->sjw - 1UL) | in can_mcan_set_timing_data() 1458 timing.sjw = config->sjw; 1478 timing_data.sjw = config->sjw_data;
|
D | can_mcp251xfd.h | 518 uint8_t sjw; member
|
/Zephyr-Core-3.5.0/tests/drivers/can/timing/src/ |
D | main.c | 118 zassert_true(timing->sjw <= max->sjw, "sjw exceeds max"); in assert_timing_within_bounds() 124 zassert_true(timing->sjw >= min->sjw, "sjw lower than min"); in assert_timing_within_bounds() 194 printk("sjw = %u, prop_seg = %u, phase_seg1 = %u, phase_seg2 = %u, prescaler = %u ", in test_timing_values() 195 timing.sjw, timing.prop_seg, timing.phase_seg1, timing.phase_seg2, in test_timing_values()
|
/Zephyr-Core-3.5.0/include/zephyr/drivers/can/ |
D | can_sja1000.h | 64 .sjw = 1, \ 76 .sjw = 4, \ 109 uint32_t sjw; member 132 .bitrate = DT_PROP(node_id, bus_speed), .sjw = DT_PROP(node_id, sjw), \
|
D | can_mcan.h | 853 .sjw = 1, \ 865 .sjw = 128, \ 877 .sjw = 1, \ 889 .sjw = 16, \ 1246 uint16_t sjw; member 1320 .sjw = DT_PROP(node_id, sjw), \ 1344 .sjw = DT_PROP(node_id, sjw), \
|
/Zephyr-Core-3.5.0/doc/releases/ |
D | migration-guide-3.5.rst | 200 no longer fallback to the (Re-)Synchronization Jump Width (SJW) value set in the devicetree 201 properties for the given CAN controller upon encountering an SJW value corresponding to 203 the ``sjw`` field in :c:struct:`can_timing`. To aid in this, the :c:func:`can_calc_timing` and 204 :c:func:`can_calc_timing_data` functions now automatically calculate a suitable SJW. The 205 calculated SJW can be overwritten by the caller if needed. The CAN controller API functions 207 suitable SJW, but their SJW cannot be overwritten by the caller. 387 * ``sjw`` 391 * ``sjw-data``
|
/Zephyr-Core-3.5.0/tests/drivers/can/shell/src/ |
D | main.c | 34 zassert_equal(t1->sjw, t2->sjw, "sjw mismatch"); in assert_can_timing_equal()
|
/Zephyr-Core-3.5.0/doc/hardware/peripherals/canbus/ |
D | controller.rst | 74 The resynchronization jump width (SJW) defines the amount of time quantum the 78 The timing parameters (SJW, bitrate and sampling point, or bitrate, Prop_Seg,
|
/Zephyr-Core-3.5.0/include/zephyr/drivers/ |
D | can.h | 265 * The Synchronization Jump Width (SJW) defines the amount of time quanta the 271 uint16_t sjw; member 913 * Fill the prescaler value in the timing struct. The sjw, prop_seg, phase_seg1
|