Avalon Firmware
 
Loading...
Searching...
No Matches
CANComm Class Reference

Abstraction class to manage CAN communication for the supercap board. More...

#include <msg_handler.hpp>

Public Member Functions

 CANComm (FDCAN_HandleTypeDef *fdcan_)
 Constructor: sets up header configuration for outgoing messages.
 
 ~CANComm ()
 Destructor (does nothing but defined for completeness).
 
void sendMessage ()
 Sends the current supercap_msg_packet status over CAN.
 

Detailed Description

Abstraction class to manage CAN communication for the supercap board.

This class handles CAN transmission of status messages and provides the scaffolding for receiving command/control messages via interrupt.

Constructor & Destructor Documentation

◆ CANComm()

CANComm::CANComm ( FDCAN_HandleTypeDef * fdcan_)
inline

Constructor: sets up header configuration for outgoing messages.

Parameters
fdcan_Pointer to FDCAN handle.

◆ ~CANComm()

CANComm::~CANComm ( )
inline

Destructor (does nothing but defined for completeness).

Member Function Documentation

◆ sendMessage()

void CANComm::sendMessage ( )

Sends the current supercap_msg_packet status over CAN.

Sends a CAN message containing supercap status.

Computes instantaneous chassis power, normalizes capacitor voltage into an 8-bit energy buffer estimate, and transmits it using FDCAN.


The documentation for this class was generated from the following files: