API Documentation
Loading...
Searching...
No Matches
BatteryCapacityInfo Struct Reference

For a given BatteryCapacityType, the limits that define the state of the battery. More...

#include <Battery.h>

Public Member Functions

bool canChangeBatteryState () const
 
void fromJSONNode (const JSONNode &node)
 
bool operator!= (const BatteryCapacityInfo &info) const
 
fltp04 percent () const
 
void toJSONNode (JSONNode &node) const
 

Public Attributes

fltp04 critical_level = Constant<fltp04>::Invalid
 
fltp04 current_level = Constant<fltp04>::Invalid
 
fltp04 discharge_rate = Constant<fltp04>::Invalid
 
fltp04 max_level = Constant<fltp04>::Invalid
 
fltp04 shutdown_level = Constant<fltp04>::Invalid
 
fltp04 warning_level = Constant<fltp04>::Invalid
 

Detailed Description

For a given BatteryCapacityType, the limits that define the state of the battery.


Member Function Documentation

◆ canChangeBatteryState()

bool canChangeBatteryState ( ) const

◆ fromJSONNode()

void fromJSONNode ( const JSONNode & node)

◆ operator!=()

bool operator!= ( const BatteryCapacityInfo & info) const

◆ percent()

fltp04 percent ( ) const

◆ toJSONNode()

void toJSONNode ( JSONNode & node) const

Member Data Documentation

◆ critical_level

fltp04 critical_level = Constant<fltp04>::Invalid

◆ current_level

fltp04 current_level = Constant<fltp04>::Invalid

◆ discharge_rate

fltp04 discharge_rate = Constant<fltp04>::Invalid

◆ max_level

◆ shutdown_level

fltp04 shutdown_level = Constant<fltp04>::Invalid

◆ warning_level

fltp04 warning_level = Constant<fltp04>::Invalid

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