Home
last modified time | relevance | path

Searched refs:tseg2 (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/drivers/can/
Dcan_common.c114 uint16_t tseg1, tseg2; in update_sampling_pnt() local
117 tseg2 = total_tq - (total_tq * sample_pnt) / 1000; in update_sampling_pnt()
118 tseg2 = CLAMP(tseg2, min->phase_seg2, max->phase_seg2); in update_sampling_pnt()
121 tseg1 = total_tq - CAN_SYNC_SEG - tseg2; in update_sampling_pnt()
125 tseg2 = total_tq - CAN_SYNC_SEG - tseg1; in update_sampling_pnt()
126 if (tseg2 > max->phase_seg2) { in update_sampling_pnt()
132 tseg2 = total_tq - CAN_SYNC_SEG - tseg1; in update_sampling_pnt()
133 if (tseg2 < min->phase_seg2) { in update_sampling_pnt()
138 res->phase_seg2 = tseg2; in update_sampling_pnt()
Dcan_sja1000_priv.h107 #define CAN_SJA1000_BTR1_TSEG2_PREP(tseg2) FIELD_PREP(CAN_SJA1000_BTR1_TSEG2_MASK, tseg2) argument