Zpal-watchdog#
Defines a platform abstraction layer for the Z-Wave watchdog.
How to use the watchdog API
The following outlines an example of use:
Enable the watchdog functionality with zpal_enable_watchdog().
Periodically invoke zpal_feed_watchdog() to restart watchdog.
If watchdog needs to be disabled, check current state with zpal_is_watchdog_enabled(), disable it by invoking zpal_enable_watchdog(), then restore previous state.
Note:
Recommended watchdog timeout period is 1 second.
Functions#
Returns whether the watchdog is enabled.
Enables or disables the watchdog based on the input.
Feeds the watchdog.
Function Documentation#
zpal_is_watchdog_enabled#
bool zpal_is_watchdog_enabled (void )
Returns whether the watchdog is enabled.
N/A |
Returns
True if watchdog is enabled, false if not.
45
of file /mnt/raid/workspaces/ws.eV40Coy1M/overlay/gsdk/protocol/z-wave/PAL/inc/zpal_watchdog.h
zpal_enable_watchdog#
void zpal_enable_watchdog (bool enable)
Enables or disables the watchdog based on the input.
[in] | enable | true enables the watchdog and false disables it. |
52
of file /mnt/raid/workspaces/ws.eV40Coy1M/overlay/gsdk/protocol/z-wave/PAL/inc/zpal_watchdog.h
zpal_feed_watchdog#
void zpal_feed_watchdog (void )
Feeds the watchdog.
N/A |
57
of file /mnt/raid/workspaces/ws.eV40Coy1M/overlay/gsdk/protocol/z-wave/PAL/inc/zpal_watchdog.h