Module can_mod

Module can_mod 

Source
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