ALLEGRO_BATTERY_INFO Struct Reference

List of all members.


Detailed Description

This structure is used with the JSGetBatteryStatus function.

Parameters:
Battery_Voltage The voltage in milli-Volts (mV).
Battery_Current The average battery current in mill-Amps (mA).
Battery_Interval How often (in milliseconds) this information is refreshed.
Battery_Temperature Temperature of the battery in increments of 0.1 degrees Celsius. (Example: 245 means 24.5 degrees C).
Battery_Capacity The total capacity in milli-Amp Hours (mAH). This is whatever the user has entered in the battery dialog screen after inserting a new battery.
Battery_Percentage Estimated percentage of battery charge remaining.
Battery_Flags Bitfield to indicate the state of the battery. The bits correspond to the following defines:
          BATTERY_CHARGEKNOWN
          BATTERY_PRESENT
          BATTERY_CHARGING
          BATTERY_ALKALINE
          BATTERY_VEHICLEMODE
Supported Platforms:
  • Allegro MX
See also:
JSGetBatteryStatus

Public Attributes

WORD Battery_Capacity
INT16 Battery_Current
BYTE Battery_Flags
WORD Battery_Interval
BYTE Battery_Percentage
INT16 Battery_Temperature
WORD Battery_Voltage

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

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