
AND-DNV3N2
40
Acrosser Technology Co., Ltd.
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.
4.3.2.
Watchdog
Syntax:
Void wdt_start(int _timevalue)
Description:
This function gets the watchdog timer register to the
timevalue and starts to count down.
Parameters:
The parameter ‘val’ is the value to set to watchdog timer
register. The range is 1 ~ 255.
Return Value:
This function returns the value of the time counter and
returns it to the caller as an unsigned integer.
Syntax:
Void wdt_stop(void)
Description:
This function sets the watchdog timer stop.
Parameters:
None.
Return Value:
None.
4.3.3. LAN Bypass Subsystem
Syntax:
int set_bypass_wdt_action(int pair, int action, int time)
Description:
This function can set which pair bypass Wdt time up
action.
Parameters:
pair: 1-2, action: 0: bypass, 1: normal, time: 0-255.
Return Value:
0: Successful, -1: fail.
Syntax:
int get_bypass_wdt_action()
Description:
This function can bypass Wdt time up action.
Parameters:
pair: None.
Return Value:
0: bybpass, 1: normal, -1: fail.