NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ERRORS | RESTRICTIONS | SEE ALSO
#include <cx/wdt.h>int wdt_arm(wdt_handle_t handle);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
The wdt_arm call arms the watchdog timer represented by handle . This begins a new timeout interval of the duration set by the last call to wdt_set_interval() .
The wdt_disarm() call disarms the watchdog timer represented by handle . It is no longer required to "pat" the timer when it is disarmed.
The wdt_pat() call "pats" (that is, reloads) the watchdog timer represented by handle . This starts a new timeout interval of duration set by the last call to wdt_set_interval() .
The wdt_is_armed() call tells either or not the watchdog timer represented by handle is armed.
On successful completion, wdt_arm() , wdt_disarm() , and wdt_pat() return 0. Otherwise, these calls return -1 and set errno to indicate one of the following error conditions.
On successful completion, wdt_is_armed() returns 1 if the timer is armed or 0 if it is not armed. Otherwise it returns -1 and sets errno to indicate one of the following error conditions.
No watchdog timer has been configured.
The watchdog timer module has not been configured.
The caller is not the owner of the watchdog timer.
All watchdog timers are already allocated.
The handle points outside the allocated address space of the actor.
The handle points outside the allocated address space of the actor.
The current implementation supports at most one watchdog timer.
If the new actor has no knowledge of the handle returned when the watchdog timer was allocated, then it can set * handle to WDT_MAGIC_HANDLE to reallocate the timer.
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ERRORS | RESTRICTIONS | SEE ALSO