AND-DNV3N3 Series
37
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 get_bypass_firmware_ver(char *ver)
Description:
This function can get bypass firmware version and data to
save in char pointer.
Parameters:
char pointer, this pointer to 16 character array.
Return Value:
0: Successful, -1: fail.
Syntax:
int set_bypass_wdt(int pair, int time)
Description:
This function can set which pair bypass Wdt timer.
Parameters:
pair: 1-4 , time: 1-255(sec), 0:stop.
Return Value:
0: Successful, -1: fail.