McuPowerInformation Class Reference

Mcu Power Information. More...

Classes

enum  BatteryType
 

Public Member Functions

Boolean getIgnition ()
 
float getBatteryExternVoltage ()
 
float getBatteryInnerPercent ()
 
BatteryType getBatteryType ()
 
Boolean getBatteryProtectionMode ()
 
int getTemperature ()
 
Boolean getPowerFaultStatus ()
 
 McuPowerInformation (Boolean ignition, float batteryExternVoltage, float batteryInnerPercent, BatteryType batteryType, Boolean batteryProtectionMode, int temperature, Boolean powerFaultStatus)
 

Detailed Description

Mcu Power Information . Represents the MCU power state at a given moment.

Constructor & Destructor Documentation

McuPowerInformation ( Boolean  ignition,
float  batteryExternVoltage,
float  batteryInnerPercent,
BatteryType  batteryType,
Boolean  batteryProtectionMode,
int  temperature,
Boolean  powerFaultStatus 
)
Parameters
timestampwhen were the values obtained
ignitionIgnition signal : True for signal active
batteryExternVoltageBattery voltage, in volts
batteryInnerPercent
batteryTypeBattery type
batteryProtectionModeBattery protection mode status
temperatureMCU Temperature
powerFaultStatusPower fault state: True for Power fault active

Member Function Documentation

float getBatteryExternVoltage ( )

Get Battery voltage, in volts

Returns
Battery voltage
float getBatteryInnerPercent ( )

Get Battery percentage

Returns
Battery percentage
Boolean getBatteryProtectionMode ( )

Get battery protection mode status: True for battery protection ON

Returns
Battery protection mode status
BatteryType getBatteryType ( )

Get Battery type according to voltage

Returns
Battery type
Boolean getIgnition ( )

Get Ignition signal status

Returns
True for signal active, False otherwise
Boolean getPowerFaultStatus ( )

Get Power fault state, indicating if power fault has been produced: True for power fault detected.

Returns
power fault flag status
int getTemperature ( )

Get MCU Temperature , in degrees celsius

Returns
MCU Temperature