W406-CE User’s Manual
Application Development
Watchdog
Opens a watchdog handle for later use.
HANDLE watchdog_init(DWORD dwRefreshPeriod);
Inputs:
<dwRefreshPeriod> the watchdog refresh time interval in milliseconds..
Return Values:
the watchdog handle, INVALID_HANDLE_VALUE indicates failure.
Remark:
After calling the watchdog_init(), you must call watchdog_refresh() in the specified
time(dwRefreshPeriod) or the system will be triggered rebooting.
Watchdog refresh function call.
BOOL watchdog_refresh(HANDLE hWdg, DWORD dwRefreshPeriod);
Inputs:
<hWdg> the watchdog handle from watchdog_init() returned
Return Values:
TRUE indicates the watchdog refresh succeed, FALSE indicates refresh failure.
Remark:
Closes the watchdog handle.
BOOL watchdog_release(HANDLE hWdg);
Inputs:
<hWdg> the watchdog handle watchdog_init() returned
Return Values:
TRUE indicates the watchdog refresh succeed, FALSE indicates refresh failure.
Remark:
Buzzer
Turns on the buzzer.
void mxbeep_on(void);
Inputs:
None
Return Values:
None
Remark:
Turns off the buzzer.
void mxbeep_off(void);
Inputs:
None
Return Values:
None
Remark:
B-10