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

Storage class for battery_vt CAN message. More...

Public Member Functions

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

Public Attributes

uint16_t voltage
 
uint16_t current
 
uint16_t temperature
 
uint16_t batt_perc
 

Detailed Description

Storage class for battery_vt CAN message.

Member Function Documentation

◆ decode()

void decode ( const uint8_t *  data)
inline

Decode new CAN data and update the storage for battery_vt.

Parameters
dataPointer to the CAN message to be decoded

◆ get_message_name()

std::string get_message_name ( ) const
inline

Get the message name: battery_vt.

Returns
Returns the message name

Member Data Documentation

◆ batt_perc

uint16_t batt_perc

CAN signal 'batt_perc' defined in *.yaml

◆ current

uint16_t current

CAN signal 'current' defined in *.yaml

◆ temperature

uint16_t temperature

CAN signal 'temperature' defined in *.yaml

◆ voltage

uint16_t voltage

CAN signal 'voltage' defined in *.yaml


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