ANR-C236N1-K Series User Manual
44
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:
Int get_wdt_count(void)
Description:
This function reads the value of the watchdog time
counter.
Parameters:
None.
Return Value:
This function returns the value of the time counter.
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 7 character array.
Return Value:
0: Successful, -1: fail.