Moxa UC-7101-T-LX Руководство по программной части онлайн [38/46] 170792

Moxa UC-7101-T-LX Руководство по программной части онлайн [38/46] 170792
UC-7101/7110/7112 Software User’s Manual UC-7101/7110/7112 Device API
5-4
Output
0 (zero) for no error. Any other number indicates an error. You can get the error code from errno().
int swtd_disable (int fd)
Description
Disable the application to ack sWatchDog. The kernel will auto ack it. Users does not to do it
periodically.
Input
int fdthe file handle from swtd_open() return value.
Output
0 (zero) for no error. Any other number indicates an error. You can get the error code from errno().
int swtd_get (int fd, int *mode, unsigned long *time)
Description
Get current setting values.
Mode1 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 fdthe file handle from swtd_open() return value.
int *modethe function will be return the status enable or disable user application need to do ack.
unsigned long *timethe function will return the current time period.
Output
0 (zero) for no error. Any other number indicates an error. You can get the error code from errno().
int swtd_ack (int fd)
Description
Acknowledge sWatchDog. When the user application has enabled sWatchDog, it will call this
function periodically with a user-predefined time in the application program.
Input
int fdthe file handle from swtd_open() return value.
Output
0 (zero) for no error. Any other number indicates an error. You can get the error code from errno().
int swtd_close (int fd)
Description
Close the file handle.
Input
int fdthe file handle from swtd_open() return value.
Output
0 (zero) for no error. Any other number indicates an error. You can get the error code from errno().

Содержание

Похожие устройства

Скачать