Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/can/
Dcan_common.c161 uint16_t tseg1, tseg2; in update_sample_pnt() local
168 tseg1 = total_tq - CAN_SYNC_SEG - tseg2; in update_sample_pnt()
169 if (tseg1 > tseg1_max) { in update_sample_pnt()
171 tseg1 = tseg1_max; in update_sample_pnt()
172 tseg2 = total_tq - CAN_SYNC_SEG - tseg1; in update_sample_pnt()
177 } else if (tseg1 < tseg1_min) { in update_sample_pnt()
179 tseg1 = tseg1_min; in update_sample_pnt()
180 tseg2 = total_tq - CAN_SYNC_SEG - tseg1; in update_sample_pnt()
190 res->prop_seg = CLAMP(tseg1 / 2, min->prop_seg, max->prop_seg); in update_sample_pnt()
191 res->phase_seg1 = tseg1 - res->prop_seg; in update_sample_pnt()
[all …]
Dcan_sja1000_priv.h106 #define CAN_SJA1000_BTR1_TSEG1_PREP(tseg1) FIELD_PREP(CAN_SJA1000_BTR1_TSEG1_MASK, tseg1) argument