Battery Api - Denso BHT-700-CE Reference Manual

Barcode handy terminal
Table of Contents

Advertisement

16.3. Battery API

BHT_GetPowerStatus
Description
Read information about the battery loaded in the BHT body.
Syntax
DWORD BHT_GetPowerStatus (
WORD*
pwCuOnLine
WORD*
pwBatteryFlag
WORD*
pwBatteryVoltage
WORD*
pwBatteryChemistry
Parameters
pwCuOnLine
[out] Read the BHT state on/off the CU
pwCuOnLine
AC_LINE_ONLINE
AC_LINE_OFFLINE Not placed on the CU
pwBatteryFlag
[out] Read battery voltage level
pwBatteryFlag
BHT_BATTERY_FLAG_HIGH
BHT_BATTERY_FLAG_MID
BHT_BATTERY_FLAG_LOW
BHT_BATTERY_FLAG_WARNING
BHT_BATTERY_FLAG_CRITICAL
BHT_BATTERY_FLAG_NO_BATTERY No battery loaded
pwBatteryVoltage
[out] Battery output voltage (mV)
pwBatteryChemistry
[out] Battery type
pwBatteryChemistry
BATTERY_CHEMISTRY_LION
BATTERY_CHEMISTRY_UNKNOWN Unknown
Return value
Error code
ERROR_SUCCESS
ERROR_INVALID_PARAMETER Storage address not specified.
Comments
"BHT_BATTERY_FLAG_NO_BATTERY" for the battery level are never actually acquired.
,
,
,
)
Specification
Placed on the CU
High level (3.9 V ≤ Voltage)
Medium level (3.7 V ≤ Voltage < 3.9 V)
Low level (3.6 V ≤ Voltage < 3.7 V)
Warning level (Voltage < 3.6 V)
Critical level (Voltage < 3.5 V)
Specification
Lithium ion battery
Successful completion
Specification
Meaning
103

Advertisement

Table of Contents
loading

Table of Contents