Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/can/
Dcan_common.c161 uint16_t tseg1, tseg2; in update_sample_pnt() local
164 tseg2 = total_tq - (total_tq * sample_pnt) / 1000; in update_sample_pnt()
165 tseg2 = CLAMP(tseg2, min->phase_seg2, max->phase_seg2); in update_sample_pnt()
168 tseg1 = total_tq - CAN_SYNC_SEG - tseg2; in update_sample_pnt()
172 tseg2 = total_tq - CAN_SYNC_SEG - tseg1; in update_sample_pnt()
174 if (tseg2 > max->phase_seg2) { in update_sample_pnt()
180 tseg2 = total_tq - CAN_SYNC_SEG - tseg1; in update_sample_pnt()
182 if (tseg2 < min->phase_seg2) { in update_sample_pnt()
187 res->phase_seg2 = tseg2; in update_sample_pnt()
Dcan_sja1000_priv.h107 #define CAN_SJA1000_BTR1_TSEG2_PREP(tseg2) FIELD_PREP(CAN_SJA1000_BTR1_TSEG2_MASK, tseg2) argument