Skip to content

Commit fd6213b

Browse files
henrikbrixandersencarlescufi
authored andcommitted
drivers: can: add triple sampling mode flag
Add flag for enabling triple sampling of the CAN RX signal. Normally just one sample of the RX signal is performed by the CAN controller, but in triple sampling mode the RX signal is sampled three times. These three samples are then used for determining the value of the received bit, typically by majority vote. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 05a6c0f commit fd6213b

File tree

1 file changed

+3
-0
lines changed
  • include/zephyr/drivers

1 file changed

+3
-0
lines changed

include/zephyr/drivers/can.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ extern "C" {
100100
/** Controller does not retransmit in case of lost arbitration or missing ACK */
101101
#define CAN_MODE_ONE_SHOT BIT(3)
102102

103+
/** Controller uses triple sampling mode */
104+
#define CAN_MODE_3_SAMPLES BIT(4)
105+
103106
/** @} */
104107

105108
/**

0 commit comments

Comments
 (0)