Expand description
Module for CAN communication
Handles the reception and transmission of CAN messages
This requires a lot of global mutable data. See this article on sharing data in Embassy.
Anytime a mutex lock is acquired it should be dropped as soon as it is not needed
to avoid deadlocks. Mutex locks will last to the end of its scope if they are not
dropped before then. See here
for more information.
Constants§
- RX_
BUF_ SIZE - Buffer Size for the CAN RX buffer
- TX_
BUF_ SIZE - Buffer Size for the CAN TX buffer
Statics§
- BOOST_
PACK1_ DATA - BOOST_
PACK2_ DATA - BOOST_
PACK3_ DATA - FCC_
PACK1_ DATA - FCC_
PACK2_ DATA - FCC_
PACK3_ DATA - FET_
DATA - H2_
PACK1_ DATA - H2_
PACK2_ DATA - RELAY_
MOTOR_ PACK - RELAY_
STATE - REL_
CAP_ PACK - REL_
FC_ PACK - Fuel Cell Reading
Functions§
- can_
receive_ task - Responsible for handling the reception of CAN messages