Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/drivers/can/
Dcan_common.c155 static int update_sample_pnt(uint32_t total_tq, uint32_t sample_pnt, struct can_timing *res, in update_sample_pnt() argument
164 tseg2 = total_tq - (total_tq * sample_pnt) / 1000; in update_sample_pnt()
207 return sample_pnt_res > sample_pnt ? in update_sample_pnt()
208 sample_pnt_res - sample_pnt : in update_sample_pnt()
209 sample_pnt - sample_pnt_res; in update_sample_pnt()
220 uint16_t sample_pnt; in sample_point_for_bitrate() local
224 sample_pnt = 750; in sample_point_for_bitrate()
227 sample_pnt = 800; in sample_point_for_bitrate()
230 sample_pnt = 875; in sample_point_for_bitrate()
233 return sample_pnt; in sample_point_for_bitrate()
[all …]
Dcan_shell.c434 uint16_t sample_pnt; in cmd_can_bitrate_set() local
451 sample_pnt = (uint32_t)strtoul(argv[3], &endptr, 10); in cmd_can_bitrate_set()
457 err = can_calc_timing(dev, &timing, bitrate, sample_pnt); in cmd_can_bitrate_set()
461 bitrate, sample_pnt / 10, sample_pnt % 10, err); in cmd_can_bitrate_set()
476 bitrate, sample_pnt / 10, sample_pnt % 10, err / 10, err % 10, in cmd_can_bitrate_set()
505 uint16_t sample_pnt; in cmd_can_dbitrate_set() local
522 sample_pnt = (uint32_t)strtoul(argv[3], &endptr, 10); in cmd_can_dbitrate_set()
528 err = can_calc_timing_data(dev, &timing, bitrate, sample_pnt); in cmd_can_dbitrate_set()
532 bitrate, sample_pnt / 10, sample_pnt % 10, err); in cmd_can_dbitrate_set()
547 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()
83 uint32_t bitrate, uint16_t sample_pnt) in z_vrfy_can_calc_timing_data() argument
91 err = z_impl_can_calc_timing_data(dev, &res_copy, bitrate, sample_pnt); in z_vrfy_can_calc_timing_data()
/Zephyr-Core-3.7.0/include/zephyr/drivers/
Dcan.h967 uint32_t bitrate, uint16_t sample_pnt);
1038 uint32_t bitrate, uint16_t sample_pnt);