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 )
77struct IotWatchdogDescriptor;
214 void * pvUserContext );
237 void *
const pvBuffer );
int32_t iot_watchdog_restart(IotWatchdogHandle_t const pxWatchdogHandle)
iot_watchdog_restart is used to restart the WatchDog timer to the originally programmed values....
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...
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...
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
IotWatchdogBiteConfig_t
WatchDog timer bite behavior setting.
Definition: iot_watchdog.h:69
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...
IotWatchdogStatus_t
WatchDog timer status values.
Definition: iot_watchdog.h:58
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...
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...
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
IotWatchdogIoctlRequest_t
Ioctl request types.
Definition: iot_watchdog.h:97
void iot_watchdog_set_callback(IotWatchdogHandle_t const pxWatchdogHandle, IotWatchdogCallback_t xCallback, void *pvUserContext)
iot_watchdog_set_callback is used to set the callback to be called when bark time reaches the WatchDo...
@ eWatchdogBiteTimerInterrupt
Definition: iot_watchdog.h:71
@ eWatchdogBiteTimerReset
Definition: iot_watchdog.h:70
@ eWatchdogTimerBiteExpired
Definition: iot_watchdog.h:62
@ eWatchdogTimerStopped
Definition: iot_watchdog.h:59
@ eWatchdogTimerBarkExpired
Definition: iot_watchdog.h:61
@ eWatchdogTimerRunning
Definition: iot_watchdog.h:60
@ eGetWatchdogStatus
Definition: iot_watchdog.h:108
@ eSetWatchdogBiteTime
Definition: iot_watchdog.h:103
@ eGetWatchdogBiteTime
Definition: iot_watchdog.h:107
@ eSetWatchdogBarkTime
Definition: iot_watchdog.h:98
@ eGetWatchdogBarkTime
Definition: iot_watchdog.h:102
@ eSetWatchdogBiteBehaviour
Definition: iot_watchdog.h:109