Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/drivers/can/
Dcan_esp32_twai.c120 uint8_t btr1; in can_esp32_twai_set_timing() local
130 btr1 = TWAI_TIME_SEG1_PREP(timing->phase_seg1 - 1) | in can_esp32_twai_set_timing()
134 btr1 |= TWAI_TIME_SAMP; in can_esp32_twai_set_timing()
138 can_esp32_twai_write_reg32(dev, TWAI_BUS_TIMING_1_REG, btr1); in can_esp32_twai_set_timing()
Dcan_sja1000.c112 uint8_t btr1; in can_sja1000_set_timing() local
122 btr1 = CAN_SJA1000_BTR1_TSEG1_PREP(timing->phase_seg1 - 1) | in can_sja1000_set_timing()
126 btr1 |= CAN_SJA1000_BTR1_SAM; in can_sja1000_set_timing()
130 can_sja1000_write_reg(dev, CAN_SJA1000_BTR1, btr1); in can_sja1000_set_timing()
216 uint8_t btr1; in can_sja1000_set_mode() local
247 btr1 = can_sja1000_read_reg(dev, CAN_SJA1000_BTR1); in can_sja1000_set_mode()
249 btr1 |= CAN_SJA1000_BTR1_SAM; in can_sja1000_set_mode()
251 btr1 &= ~(CAN_SJA1000_BTR1_SAM); in can_sja1000_set_mode()
255 can_sja1000_write_reg(dev, CAN_SJA1000_BTR1, btr1); in can_sja1000_set_mode()