![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/0/dc/0dc78e19-a1e2-4393-9052-4fa7d7ad2944/0dc78e19-a1e2-4393-9052-4fa7d7ad2944-bg63.png)
APIs 85
E-EQ-RX2RG-B RX2 Reference Guide
APIs
See Also: LXE CE API Programming Guide E-SW-WINAPIPG
The LXE CE API Programming Guide documents only the LXE-specific API calls for the mobile
device. It is intended as an addition to the standard Microsoft Windows CE API documentation.
Details of many of the calls in the LXE guide may be found in Microsoft’s documentation.
The APIs documented in the programming guide are included in the file LXEAPI.DLL, which is
in the standard Windows CE image on the mobile device.
For ease of software development, the files LXEAPI.H and LXEAPI.LIB are available on the
accessories CD, which are the C/C++ include files and the link library for the DLL, respectively.
Note that this DLL is installed in mobile device images with a version number of 1.2 or higher (as
displayed on the screen during bootup).
A full SDK is now included for Microsoft Embedded Visual C++ 4.0 (which is available free on
the Microsoft website).
Two APIs are available to deal specifically with the RX2 battery.
RFID reader APIs are also available for applications to execute on the RX2.
Both types of APIs can be called by including the lxeapi.h file, which is a part of RX2 SDK.
Battery APIs
LXEBatteryLife()
The LXEBatteryLife() API can be used to return the status of the RX2 battery.
//----------------------------------------------------------------------------
// includes for battery APIs
//----------------------------------------------------------------------------
#define RX2_BATTLIFE_GOOD = 1
#define RX2_BATTLIFE_LOW = 2
int LXEBatteryLife(int *vlife);
For more information on the Good and Low battery states, please refer to Chapter 2, “Physical
Description and Layout”.
LXEBatteryAlarm()
An API is provided to turn the alarm beeper on and off.
int LXEBatteryAlarm(int state);