ANR-J190N2-C612, ANR-J180N2-C612 User Manual
47
www.acrosser.com
5.3.
API List and Descriptions
5.3.1.
GPIO
Syntax:
Get_gpi_status(int pin)
Description:
Get the status of GPIO input pins and output pins status.
Parameters:
This function takes a pointer to an unsigned char variable
as the parameter.
The pin0 ~ pin3 is the status of the input pins.
Return Value:
1: HIGH, 0: LOW.
Syntax:
Set_gpo(int pin, int value)
Description:
Set the status of GPIO Output value.
Parameters:
Set value 0 is Low, 1 is High
Return Value:
If the function sets the values successfully, it returns 0 or
-1, any other returned value stands for error.
5.3.2.
Watchdog
Syntax:
Void wdt_start(int _timevalue)
Description:
This function read the value of the watchdog time counter.
Parameters:
The parameter ‘val’ is the value to set to watchdog timer
register. The range is 1 ~ 255.
Return Value:
None.
Syntax:
Void wdt_stop(void)
Description:
This function sets the watchdog timer stop.
Parameters:
None.
Return Value:
None.
5.3.3.
LAN Bypass Subsystem
Syntax:
void set_bypass1(int value)
Description:
Set first pair is Bypass or Normal.
Parameters:
Set value 0 is Normal, 1 is Bypass.
Return Value:
None.