Home
last modified time | relevance | path

Searched refs:sample_pnt (Results 1 – 4 of 4) sorted by relevance

/Zephyr-Core-3.5.0/drivers/can/
Dcan_common.c106 static int update_sampling_pnt(uint32_t total_tq, uint32_t sample_pnt, in update_sampling_pnt() argument
117 tseg2 = total_tq - (total_tq * sample_pnt) / 1000; in update_sampling_pnt()
158 return sample_pnt_res > sample_pnt ? in update_sampling_pnt()
159 sample_pnt_res - sample_pnt : in update_sampling_pnt()
160 sample_pnt - sample_pnt_res; in update_sampling_pnt()
220 uint32_t bitrate, uint16_t sample_pnt) in z_impl_can_calc_timing() argument
236 return can_calc_timing_int(core_clock, res, min, max, bitrate, sample_pnt); in z_impl_can_calc_timing()
241 uint32_t bitrate, uint16_t sample_pnt) in z_impl_can_calc_timing_data() argument
257 return can_calc_timing_int(core_clock, res, min, max, bitrate, sample_pnt); in z_impl_can_calc_timing_data()
287 uint16_t sample_pnt; in sample_point_for_bitrate() local
[all …]
Dcan_shell.c372 uint16_t sample_pnt; in cmd_can_bitrate_set() local
389 sample_pnt = (uint32_t)strtoul(argv[3], &endptr, 10); in cmd_can_bitrate_set()
395 err = can_calc_timing(dev, &timing, bitrate, sample_pnt); in cmd_can_bitrate_set()
399 bitrate, sample_pnt / 10, sample_pnt % 10, err); in cmd_can_bitrate_set()
414 bitrate, sample_pnt / 10, sample_pnt % 10, err / 10, err % 10, in cmd_can_bitrate_set()
443 uint16_t sample_pnt; in cmd_can_dbitrate_set() local
460 sample_pnt = (uint32_t)strtoul(argv[3], &endptr, 10); in cmd_can_dbitrate_set()
466 err = can_calc_timing_data(dev, &timing, bitrate, sample_pnt); in cmd_can_dbitrate_set()
470 bitrate, sample_pnt / 10, sample_pnt % 10, err); in cmd_can_dbitrate_set()
485 bitrate, sample_pnt / 10, sample_pnt % 10, err / 10, err % 10, in cmd_can_dbitrate_set()
Dcan_handlers.c11 uint32_t bitrate, uint16_t sample_pnt) in z_vrfy_can_calc_timing() argument
19 err = z_impl_can_calc_timing(dev, &res_copy, bitrate, sample_pnt); in z_vrfy_can_calc_timing()
78 uint32_t bitrate, uint16_t sample_pnt) in z_vrfy_can_calc_timing_data() argument
86 err = z_impl_can_calc_timing_data(dev, &res_copy, bitrate, sample_pnt); in z_vrfy_can_calc_timing_data()
/Zephyr-Core-3.5.0/include/zephyr/drivers/
Dcan.h788 uint32_t bitrate, uint16_t sample_pnt);
858 uint32_t bitrate, uint16_t sample_pnt);