Moxa UC-8416-T-LX [58/90] Uc 8410 8416 8418 8430 programmer s guide

Moxa UC-8416-T-LX [58/90] Uc 8410 8416 8418 8430 programmer s guide
UC-8410/8416/8418/8430 Programmer's Guide
5-6
unsigned long time - The time you wish to ack sWatchDog periodically. You must ack the
sWatchDog before timeout. If you do not ack, the system will reboot automatically. The minimum time is
50 msec, and the maximum time is 60 seconds. The time unit is msec.
Output
If you receive 0 (zero), it means the function is working. If you receive any other number, then there is
something wrong with this function.
int swtd_disable(int fd)
Description:
Call this function if you would like the AP to stop using the Watchdog.
Input :
int fd - the file handle from swtd_open() return value.
Output:
If you receive 0 (zero), it means the function is working. If you receive any other number, then there is
something wrong with this function.
int swtd_get(int fd, int *mode, unsigned long *time)
Description:
Get current setting values.
mode
1 for user application enable sWatchDog: need to do ack.
0 for user application disable sWatchdog: does not need to do ack.
time The time period to ack sWatchDog.
Input:
int fd - the file handle from swtd_open() return value.
int *mode - the function will return the status: enable or disable.
unsigned long *time the function will return the current time period.
Output:
If you receive 0 (zero), it means the function is working. If you receive any other number, then there is
something wrong with this function.
int swtd_ack(int fd)
Description:
Acknowledge sWatchDog. When the user application enable sWatchDog, it need to call this function
periodically with user predefined time in the application program.
Input:
int fd - the file handle from swtd_open() return value.
Output:
If you receive 0 (zero), it means the function is working. If you receive any other number, then there is
something wrong with this function.
int swtd_close(int fd)
Description:
Close the file handle.
Input:
int fd - the file handle from swtd_open() return value.
Output:
If you receive 0 (zero), it means the function is working. If you receive any other number, then there is
something wrong with this function.
4. Special Note

Содержание

Скачать