Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/can/
Dcan_esp32_twai.c122 uint8_t btr1; in can_esp32_twai_set_timing() local
132 btr1 = TWAI_TIME_SEG1_PREP(timing->phase_seg1 - 1) | in can_esp32_twai_set_timing()
136 btr1 |= TWAI_TIME_SAMP; in can_esp32_twai_set_timing()
140 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()
223 uint8_t btr1; in can_sja1000_set_mode() local
257 btr1 = can_sja1000_read_reg(dev, CAN_SJA1000_BTR1); in can_sja1000_set_mode()
259 btr1 |= CAN_SJA1000_BTR1_SAM; in can_sja1000_set_mode()
261 btr1 &= ~(CAN_SJA1000_BTR1_SAM); in can_sja1000_set_mode()
265 can_sja1000_write_reg(dev, CAN_SJA1000_BTR1, btr1); in can_sja1000_set_mode()