Watchdog. More...
Data Structures | |
struct | wdt_attr_t |
Enumerations | |
enum | wdt_result_t { WDT_RESULT_OK , WDT_RESULT_INVALID , WDT_RESULT_UNSUPPORTED , WDT_RESULT_ERR , TOTAL_WDT_RESULT } |
enum | wdt_feed_mode_t { WDT_FEED_MODE_WINDOW , WDT_FEED_MODE_ANYTIME , TOTAL_WDT_FEED_MODE } |
enum | wdt_feed_window_pcnt_t { WDT_FEED_WINDOW_PCNT_25 , WDT_FEED_WINDOW_PCNT_50 , WDT_FEED_WINDOW_PCNT_75 , TOTAL_WDT_FEED_WINDOW_PCNT } |
Functions | |
wdt_result_t | hal_watchdog_init (const wdt_attr_t attr) |
Initialize watchdog. | |
wdt_result_t | hal_watchdog_feed (void) |
Update and feed watchdog counter. | |
wdt_result_t | hal_watchdog_enable (void) |
Enable and start watchdog counter. | |
wdt_result_t | hal_watchdog_disable (void) |
Disable and stop watchdog counter. | |
Watchdog.
enum wdt_feed_mode_t |
#include <wdt/public_inc/hal_wdt.h>
Enumerator | |
---|---|
WDT_FEED_MODE_WINDOW | |
WDT_FEED_MODE_ANYTIME | |
TOTAL_WDT_FEED_MODE |
#include <wdt/public_inc/hal_wdt.h>
Enumerator | |
---|---|
WDT_FEED_WINDOW_PCNT_25 | |
WDT_FEED_WINDOW_PCNT_50 | |
WDT_FEED_WINDOW_PCNT_75 | |
TOTAL_WDT_FEED_WINDOW_PCNT |
enum wdt_result_t |
#include <wdt/public_inc/hal_wdt.h>
Enumerator | |
---|---|
WDT_RESULT_OK | No error. |
WDT_RESULT_INVALID | Operation invalid. |
WDT_RESULT_UNSUPPORTED | Operation not supported. |
WDT_RESULT_ERR | Error occured. |
TOTAL_WDT_RESULT |
wdt_result_t hal_watchdog_disable | ( | void | ) |
#include <wdt/public_inc/hal_wdt.h>
Disable and stop watchdog counter.
WDT_RESULT_OK | Successfully disabled the watchdog |
WDT_RESULT_UNSUPPORTED | Operation not supported |
WDT_RESULT_ERR | Failed to disabled the watchdog |
wdt_result_t hal_watchdog_enable | ( | void | ) |
#include <wdt/public_inc/hal_wdt.h>
Enable and start watchdog counter.
WDT_RESULT_OK | Successfully enabled the watchdog |
WDT_RESULT_UNSUPPORTED | Operation not supported |
WDT_RESULT_ERR | Failed to enabled the watchdog |
wdt_result_t hal_watchdog_feed | ( | void | ) |
#include <wdt/public_inc/hal_wdt.h>
Update and feed watchdog counter.
WDT_RESULT_OK | Successfully feed watchdog |
WDT_RESULT_UNSUPPORTED | Operation not supported |
WDT_RESULT_ERR | Failed to feed watchdog |
wdt_result_t hal_watchdog_init | ( | const wdt_attr_t | attr | ) |
#include <wdt/public_inc/hal_wdt.h>
Initialize watchdog.
[in] | attr | Watchdog attribute |
WDT_RESULT_OK | Watchdog configured succcessfully |
WDT_RESULT_INVALID | Configuration attributes invalid |
WDT_RESULT_UNSUPPORTED | Watchdog attribute unsupported |
WDT_RESULT_ERR | Failed to configure watchdog |