Home
last modified time | relevance | path

Searched refs:timing_data (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/drivers/can/
Dcan_mcux_flexcan.c118 struct can_timing timing_data; member
156 const struct can_timing *timing_data) in mcux_flexcan_set_timing_data() argument
160 if (!timing_data) { in mcux_flexcan_set_timing_data()
168 data->timing_data = *timing_data; in mcux_flexcan_set_timing_data()
302 timing.fpreDivider = data->timing_data.prescaler - 1U; in mcux_flexcan_start()
303 timing.frJumpwidth = data->timing_data.sjw - 1U; in mcux_flexcan_start()
304 timing.fphaseSeg1 = data->timing_data.phase_seg1 - 1U; in mcux_flexcan_start()
305 timing.fphaseSeg2 = data->timing_data.phase_seg2 - 1U; in mcux_flexcan_start()
306 timing.fpropSeg = data->timing_data.prop_seg; in mcux_flexcan_start()
312 CAN_CALC_TDCO((&data->timing_data), 1U, 31U)); in mcux_flexcan_start()
[all …]
Dcan_common.c408 const struct can_timing *timing_data) in z_impl_can_set_timing_data() argument
419 err = check_timing_in_range(timing_data, min, max); in z_impl_can_set_timing_data()
424 return api->set_timing_data(dev, timing_data); in z_impl_can_set_timing_data()
429 struct can_timing timing_data = { 0 }; in z_impl_can_set_bitrate_data() local
440 ret = can_calc_timing_data(dev, &timing_data, bitrate_data, sample_pnt); in z_impl_can_set_bitrate_data()
449 return can_set_timing_data(dev, &timing_data); in z_impl_can_set_bitrate_data()
Dcan_mcan.c226 int can_mcan_set_timing_data(const struct device *dev, const struct can_timing *timing_data) in can_mcan_set_timing_data() argument
240 dbtp |= FIELD_PREP(CAN_MCAN_DBTP_DSJW, timing_data->sjw - 1UL) | in can_mcan_set_timing_data()
241 FIELD_PREP(CAN_MCAN_DBTP_DTSEG1, timing_data->phase_seg1 - 1UL) | in can_mcan_set_timing_data()
242 FIELD_PREP(CAN_MCAN_DBTP_DTSEG2, timing_data->phase_seg2 - 1UL) | in can_mcan_set_timing_data()
243 FIELD_PREP(CAN_MCAN_DBTP_DBRP, timing_data->prescaler - 1UL); in can_mcan_set_timing_data()
245 if (timing_data->prescaler == 1U || timing_data->prescaler == 2U) { in can_mcan_set_timing_data()
250 tdco = CAN_CALC_TDCO(timing_data, 0U, tdco_max); in can_mcan_set_timing_data()
259 timing_data->prescaler); in can_mcan_set_timing_data()
1376 struct can_timing timing_data = { 0 }; in can_mcan_init() local
1480 err = can_calc_timing_data(dev, &timing_data, config->common.bitrate_data, in can_mcan_init()
[all …]
Dcan_handlers.c115 const struct can_timing *timing_data) in z_vrfy_can_set_timing_data() argument
120 K_OOPS(k_usermode_from_copy(&timing_data_copy, timing_data, sizeof(timing_data_copy))); in z_vrfy_can_set_timing_data()
Dcan_nxp_s32_canxl.c127 struct can_timing timing_data; member
723 const struct can_timing *timing_data) in can_nxp_s32_set_timing_data() argument
733 nxp_s32_zcan_timing_to_canxl_timing(timing_data, &can_fd_time_segment); in can_nxp_s32_set_timing_data()
739 CAN_CALC_TDCO((timing_data), 0U, CAN_NXP_S32_TDCO_MAX)); in can_nxp_s32_set_timing_data()
1008 err = can_calc_timing_data(dev, &data->timing_data, config->common.bitrate_data, in can_nxp_s32_init()
1020 nxp_s32_zcan_timing_to_canxl_timing(&data->timing_data, &config->can_cfg->Fd_bitrate); in can_nxp_s32_init()
1028 CAN_CALC_TDCO((&data->timing_data), 0U, CAN_NXP_S32_TDCO_MAX)); in can_nxp_s32_init()
Dcan_mcp251xfd.c1515 struct can_timing timing_data = { 0 }; in mcp251xfd_init() local
1591 ret = can_calc_timing_data(dev, &timing_data, dev_cfg->common.bitrate_data, in mcp251xfd_init()
1598 LOG_DBG("Data phase Presc: %d, BS1: %d, BS2: %d", timing_data.prescaler, in mcp251xfd_init()
1599 timing_data.phase_seg1, timing_data.phase_seg2); in mcp251xfd_init()
1679 ret = can_set_timing_data(dev, &timing_data); in mcp251xfd_init()
Dcan_renesas_ra.c781 const struct can_timing *timing_data) in can_renesas_ra_set_timing_data() argument
789 return set_hw_timing_configuration(dev, &data->data_timing, timing_data); in can_renesas_ra_set_timing_data()
/Zephyr-latest/include/zephyr/drivers/
Dcan.h417 const struct can_timing *timing_data);
1024 const struct can_timing *timing_data);
/Zephyr-latest/include/zephyr/drivers/can/
Dcan_mcan.h1650 int can_mcan_set_timing_data(const struct device *dev, const struct can_timing *timing_data);