
3.
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.
4.
Syntax:
i32 setRemoteSwitch(u8 val)
Descriptions:
The function sets the status of the Remote Switch.
Parameters:
This function takes an unsigned char as the parameter. The value of this parameter can
be ‘ENABLED’ (0x5A) or ‘DISABLED’(0xA5).
Return Value:
If this function works successfully, it returns 0, any other value standards for error.
60
Summary of Contents for AR-B6005
Page 1: ...1 AR B6005 Board User Manual ...
Page 8: ...2 2 Locations of I O ports Jumper settings definition 8 ...
Page 20: ...3 3 Superio Setup 20 ...
Page 23: ...3 5 Boot setup Choice boot priority 23 ...
Page 34: ...Driver Page This is the Driver Installation Page 34 ...
Page 35: ...Click the icon all the drivers will be selected 35 ...
Page 36: ...Click the icon all selected items will be cleared 36 ...
Page 38: ...Please click Yes to restart the system 38 ...
Page 43: ...Documents Page Double click on one of the items to open the manual 43 ...