beautypg.com

Watchdog, Lan bypass subsystem, 3 watchdog – Acrosser ANR-IH61N1/A/B User Manual

Page 52: 4 lan bypass subsystem

background image

5.3.3 Watchdog

1. Syntax:

Void wdt_start(int, int)

Description: This function read the value of the watchdog time counter and return it to the caller.

Parameters: None.

Return Value: This function return the value of the time counter and return it to the caller as an

unsigned integer.

2. Syntax:

Void wdt_stop(void)

Description: close watch dog timer.

Parameters: None.

Return Value: None.

3. Syntax:

Int get_wdt_count(void)

Description: This function get WDT_Counter.

Parameters: None.

Return Value: None.

5.3.4 LAN Bypass Subsystem

1. void enableWdt(void)

Enable Watchdog Timer. (This timer is different from the System Watchdog timer, which is

configured by the API described in 6.2).

2. void disableWdt(void)

Disable Watchdog Timer.

3. void reloadWdt(void)

Reload Watchdog Timer.

4. void forceNormal(void)

Force the port to become normal state.

52