Hardware manual
UPS25 API Manual for Windows 2000/XP/Vista
12
UCHAR Info;
ULONG BytesReturned;
DeviceIOControl( hDevice,
UPS25_GET_INFO,
NULL,
0,
&Info,
sizeof(Info),
&BytesReturned,
NULL);
UPS25_GET_STATUS
Description:
This IOCTL gathers the current status of the board.
Parameters:
Input: None
Output: An 8 bit value:
BIT 0: 0 – Main Supply voltage low. System is in backup state
1 – Main power OK.
BIT 1: 0 – Battery Voltage Low.
1 – Battery Voltage OK.
BIT 2: Charger Status LED. See Table 4-1 ‘Charger status LED functional description’
in the hardware manual.
BIT 3: Charger Temperature LED
0 – Battery Temperature out of limits. No charging possible.
1 – Battery Temperature OK. Charging can take place.
Example:
UCHAR Status;
ULONG BytesReturned;
DeviceIOControl( hDevice,
UPS25_GET_STATUS,
NULL,
0,
&Status,
sizeof(Status),
&BytesReturned,
NULL);
UPS25_GET_POWER_DOWN_CONTROL
Description:
This IOCTL returns the current status of the backlight switch.










