drivers/wdt/wdt.h
Go to the documentation of this file.
1 
43 /*
44  * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
45  */
46 
47 #ifndef WDT_H_INCLUDED
48 #define WDT_H_INCLUDED
49 
50 #include "compiler.h"
51 
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
58 
60 #define WDT_INVALID_ARGUMENT 0xFFFF
61 
62 uint32_t wdt_get_timeout_value(uint32_t ul_us, uint32_t ul_sclk);
63 void wdt_init(Wdt *p_wdt, uint32_t ul_mode, uint16_t us_counter,
64  uint16_t us_delta);
65 void wdt_disable(Wdt *p_wdt);
66 void wdt_restart(Wdt *p_wdt);
67 uint32_t wdt_get_status(Wdt *p_wdt);
68 uint32_t wdt_get_us_timeout_period(Wdt *p_wdt, uint32_t ul_sclk);
69 
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 
78 #endif /* WDT_H_INCLUDED */
void wdt_restart(Wdt *p_wdt)
Restart the watchdog timer.
Definition: wdt.c:129
uint32_t wdt_get_status(Wdt *p_wdt)
Check the watchdog timer status.
Definition: wdt.c:146
void wdt_disable(Wdt *p_wdt)
Disable the watchdog timer.
Definition: wdt.c:120
uint32_t wdt_get_timeout_value(uint32_t ul_us, uint32_t ul_sclk)
Get counter value or permitted range value of watchdog timer from the desired timeout period (in us)...
Definition: wdt.c:88
Commonly used includes, types and macros.
Wdt hardware registers.
uint32_t wdt_get_us_timeout_period(Wdt *p_wdt, uint32_t ul_sclk)
Get the timeout period of the WatchDog Timer in microseconds.
Definition: wdt.c:159
void wdt_init(Wdt *p_wdt, uint32_t ul_mode, uint16_t us_counter, uint16_t us_delta)
Initialize watchdog timer with the given mode.
Definition: wdt.c:110


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:05