Hardware manual

UPS25 API Manual for Windows 2000/XP/Vista
8
Board Control IOCTLs
UPS25_SET_CONTROL
Description:
This IOCTL sets the current configuration of the board.
Parameters:
Input: An eight bit value:
BIT 0: 0 – Interrupts Disabled
1 – Interrupts Enabled
BIT 2: 0 – Batteries disconnected from board to prevent discharge
1 – Batteries connected to board for backup purposes
BIT 3: 0 – Charger active. Charging can take place
1 – Charger inactive. No charging possible.
Output: None
Example:
UCHAR Control;
ULONG BytesReturned;
DeviceIOControl( hDevice,
UPS25_SET_CONTROL,
&Control,
sizeof(Control),
NULL,
0,
&BytesReturned,
NULL);
UPS25_SET_DISCONNECTBATT
Description:
This IOCTL tells the driver to disconnect the battery when the system shuts down.
Parameters:
Input: None
Output: None
Example:
ULONG BytesReturned;