Midnight Sun Firmware
Loading...
Searching...
No Matches
battery_info

Storage class for battery_info CAN message. More...

Public Member Functions

void decode (const uint8_t *data)
 Decode new CAN data and update the storage for battery_info. More...
 
nlohmann::json to_json () const
 Create a JSON object for battery_info using the storage.
 
std::string get_message_name () const
 Get the message name: battery_info. More...
 

Public Attributes

uint8_t fan1
 
uint8_t fan2
 
uint16_t max_cell_v
 
uint16_t min_cell_v
 

Detailed Description

Storage class for battery_info CAN message.

Member Function Documentation

◆ decode()

void decode ( const uint8_t *  data)
inline

Decode new CAN data and update the storage for battery_info.

Parameters
dataPointer to the CAN message to be decoded

◆ get_message_name()

std::string get_message_name ( ) const
inline

Get the message name: battery_info.

Returns
Returns the message name

Member Data Documentation

◆ fan1

uint8_t fan1

CAN signal 'fan1' defined in *.yaml

◆ fan2

uint8_t fan2

CAN signal 'fan2' defined in *.yaml

◆ max_cell_v

uint16_t max_cell_v

CAN signal 'max_cell_v' defined in *.yaml

◆ min_cell_v

uint16_t min_cell_v

CAN signal 'min_cell_v' defined in *.yaml


The documentation for this struct was generated from the following file: