Moxa Technologies UC-7110 Bedienungsanleitung Seite 38

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 46
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 37
UC-7101/7110/7112 Software User’s Manual UC-7101/7110/7112 Device API
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 fd—the 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.
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 be return the status enable or disable user application need to do ack.
unsigned long *time—the 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 fd—the 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 fd—the 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().
5-4
Seitenansicht 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 44 45 46

Kommentare zu diesen Handbüchern

Keine Kommentare