Acrosser AIV-HM76V1FL User Manual
Page 58
AIV-HM76V1FL Series User Manual
58
Acrosser Technology Co., Ltd.
Syntax:
i32 setPicDefault(void)
Description:
The function restores the Power Subsystem to the default
values. After calling this API, the items listed below are
restored to its default value:
Remote Switch Default: Disabled
Battery Monitor Default: Disabled
Battery Voltage Delta Value Default: 1.5V
System Soft Off Delay Default: 5 seconds
System Hard Off Delay Default: 1 minute
System Power On Delay Default: 2 seconds
OS Shutdown Delay Default: 3 minutes
Parameters:
None.
Return Value:
If this function works successfully, the function will return 0,
any other value standards for error.
Syntax:
i32 getRemoteSwitch(u8 *val)
Description:
The function gets the status of the Remote Switch.
Parameters:
This function takes a pointer to an unsigned char variable
as the parameter. After calling this function, the status
of the Remote Switch will be put at the memory which is
pointed by the parameter ‘val’. If the Remote Switch is
enabled, ‘*val’ is 0x5A. If the Remote Switch is disabled,
the ‘*val’ is 0xA5. Users can use the macros ‘ENABLED’
(0x5A) and ‘DISABLED’(0xA5) to test the status value
‘*val’.
For example:
u8 val;
i32 result;
result = getRemoteSwitch(&val);
if(result == 0) {
if(val == ENABLED)
printf(“Remote Switch is enabled.\n”);
else if( val == DISABLED )
printf(“Remote Switch is disabled.\n”);
}
Return Value:
If this function works successfully, it returns 0, any other
value standards for error.