Searched refs:sample_pnt (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/drivers/can/ |
D | can_common.c | 155 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 …]
|
D | can_shell.c | 439 uint16_t sample_pnt; in cmd_can_bitrate_set() local 456 sample_pnt = (uint32_t)strtoul(argv[3], &endptr, 10); in cmd_can_bitrate_set() 462 err = can_calc_timing(dev, &timing, bitrate, sample_pnt); in cmd_can_bitrate_set() 466 bitrate, sample_pnt / 10, sample_pnt % 10, err); in cmd_can_bitrate_set() 481 bitrate, sample_pnt / 10, sample_pnt % 10, err / 10, err % 10, in cmd_can_bitrate_set() 510 uint16_t sample_pnt; in cmd_can_dbitrate_set() local 527 sample_pnt = (uint32_t)strtoul(argv[3], &endptr, 10); in cmd_can_dbitrate_set() 533 err = can_calc_timing_data(dev, &timing, bitrate, sample_pnt); in cmd_can_dbitrate_set() 537 bitrate, sample_pnt / 10, sample_pnt % 10, err); in cmd_can_dbitrate_set() 552 bitrate, sample_pnt / 10, sample_pnt % 10, err / 10, err % 10, in cmd_can_dbitrate_set()
|
D | can_handlers.c | 11 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-latest/include/zephyr/drivers/ |
D | can.h | 933 uint32_t bitrate, uint16_t sample_pnt); 1004 uint32_t bitrate, uint16_t sample_pnt);
|