MESA_BATTERY_INFO Struct Reference

List of all members.


Detailed Description

This structure is used with the JSGetBatteryStatus function.

Parameters:
Battery1_Percentage Battery 1 State Of Charge as a percentage of full
Battery2_Percentage Battery 2 State Of Charge as a percentage of full
Battery1_Voltage Battery 1 Voltage in milliVolts (mV)
Battery2_Voltage Battery 2 Voltage in milliVolts (mV)
Battery1_Current Battery 1 Current in mA, negative values mean discharging
Battery2_Current Battery 2 Current in mA, negative values mean discharging
Battery1_Temperature Battery 1 temperature in 0.1 degrees Celsius (C)
Battery2_Temperature Battery 2 temperature in 0.1 degrees Celsius (C)
Battery1_TimeToFull Battery 1 estimated mintues of charge time remaining
Battery2_TimeToFull Battery 2 estimated mintues of charge time remaining
Battery1_TimeToEmpty Battery 1 estimated minutes of runtime until it is empty
Battery2_TimeToEmpty Battery 2 estimated minutes of runtime until it is empty
Battery_Flags Bitfield to indicate the state of the batteries. The bits correspond to the following defines:
          MESA_STATUS_EXT_POWER_PRESENT an external power supply is connected to unit
          MESA_STATUS_BAT1_PRESENT a battery is in slot 1
          MESA_STATUS_BAT2_PRESENT a battery is in slot 2
          MESA_STATUS_EXT_POWER_CONNECTED using power from external power source
          MESA_STATUS_BAT1_CONNECTED using battery 1
          MESA_STATUS_BAT2_CONNECTED using battery 2
          MESA_STATUS_BAT1_CHARGING re-charging battery 1
          MESA_STATUS_BAT2_CHARGING re-charging battery 2
          MESA_STATUS_BAT1_BQ_OK slot 1 battery gauge IC is reporting valid data
          MESA_STATUS_BAT2_BQ_OK slot 2 battery gauge IC is reporting valid data
Supported Platforms:
  • Mesa
See also:
JSGetBatteryStatus

Public Attributes

INT16 Battery1_Current
WORD Battery1_Percentage
INT16 Battery1_Temperature
WORD Battery1_TimeToEmpty
WORD Battery1_TimeToFull
WORD Battery1_Voltage
INT16 Battery2_Current
WORD Battery2_Percentage
INT16 Battery2_Temperature
WORD Battery2_TimeToEmpty
WORD Battery2_TimeToFull
WORD Battery2_Voltage
DWORD Battery_Flags

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

Generated on Wed Jun 8 14:33:23 2016 by  doxygen 1.5.5