38 #ifndef _IOT_WATCHDOG_H_ 39 #define _IOT_WATCHDOG_H_ 49 #define IOT_WATCHDOG_SUCCESS ( 0 ) 50 #define IOT_WATCHDOG_INVALID_VALUE ( 1 ) 51 #define IOT_WATCHDOG_TIME_NOT_SET ( 2 ) 52 #define IOT_WATCHDOG_FUNCTION_NOT_SUPPORTED ( 3 ) 77 struct IotWatchdogDescriptor;
214 void * pvUserContext );
237 void *
const pvBuffer );
void(* IotWatchdogCallback_t)(void *pvUserContext)
WatchDog notification callback type. This callback is passed to the driver by using iot_watchdog_set_...
Definition: iot_watchdog.h:126
int32_t iot_watchdog_start(IotWatchdogHandle_t const pxWatchdogHandle)
iot_watchdog_start is used to start the WatchDog timer counter. WatchDog expiry (bite) time must be s...
int32_t iot_watchdog_close(IotWatchdogHandle_t const pxWatchdogHandle)
iot_watchdog_close is used to de-initializes the WatchDog, stops the timer if it was started and rese...
struct IotWatchdogDescriptor * IotWatchdogHandle_t
IotWatchdogHandle_t type is the WatchDog handle returned by calling iot_watchdog_open() this is initi...
Definition: iot_watchdog.h:84
int32_t iot_watchdog_ioctl(IotWatchdogHandle_t const pxWatchdogHandle, IotWatchdogIoctlRequest_t xRequest, void *const pvBuffer)
iot_watchdog_ioctl is used to configure the WatchDog timer properties like the WatchDog timeout value...
void iot_watchdog_set_callback(IotWatchdogHandle_t const pxWatchdogHandle, IotWatchdogCallback_t xCallback, void *pvUserContext)
iot_wathcdog_set_callback is used to set the callback to be called when bark time reaches the WatchDo...
Definition: iot_watchdog.h:98
Definition: iot_watchdog.h:59
IotWatchdogBiteConfig_t
WatchDog timer bite behavior setting.
Definition: iot_watchdog.h:68
IotWatchdogHandle_t iot_watchdog_open(int32_t lWatchdogInstance)
iot_watchdog_open is used to initialize the WatchDog, This function will stop the timer if it was sta...
Definition: iot_watchdog.h:103
Definition: iot_watchdog.h:62
Definition: iot_watchdog.h:60
Definition: iot_watchdog.h:61
Definition: iot_watchdog.h:102
Definition: iot_watchdog.h:70
Definition: iot_watchdog.h:108
Definition: iot_watchdog.h:107
IotWatchdogIoctlRequest_t
Ioctl request types.
Definition: iot_watchdog.h:96
Definition: iot_watchdog.h:109
int32_t iot_watchdog_restart(IotWatchdogHandle_t const pxWatchdogHandle)
iot_watchdog_restart is used to restart the WatchDog timer to the originally programmed values...
Definition: iot_watchdog.h:71
IotWatchdogStatus_t
WatchDog timer status values.
Definition: iot_watchdog.h:57
int32_t iot_watchdog_stop(IotWatchdogHandle_t const pxWatchdogHandle)
iot_watchdog_stop is used to stop and resets the WatchDog timer counter. After stopping the timer and...