![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Windowed Watchdog
Data Structures | |
| struct | IP_WWDT_001_T |
| Windowed Watchdog register block structure. More... | |
Macros | |
| #define | WATCHDOG_WINDOW_SUPPORT |
| #define | WWDT_WDMOD_BITMASK ((uint32_t) 0x1F) |
| Watchdog Mode register definitions. | |
| #define | WWDT_WDMOD_WDEN ((uint32_t) (1 << 0)) |
| #define | WWDT_WDMOD_WDRESET ((uint32_t) (1 << 1)) |
| #define | WWDT_WDMOD_WDTOF ((uint32_t) (1 << 2)) |
| #define | WWDT_WDMOD_WDINT ((uint32_t) (1 << 3)) |
| #define | WWDT_WDMOD_WDPROTECT ((uint32_t) (1 << 4)) |
Functions | |
| void | IP_WWDT_Init (IP_WWDT_001_T *pWWDT) |
| Initialize the Watchdog Timer. | |
| STATIC INLINE void | IP_WWDT_DeInit (IP_WWDT_001_T *pWWDT) |
| De-initialize the Watchdog Timer. | |
| STATIC INLINE void | IP_WWDT_SetTimeOut (IP_WWDT_001_T *pWWDT, uint32_t timeout) |
| Set WDT timeout constant value used for feed. | |
| STATIC INLINE void | IP_WWDT_Feed (IP_WWDT_001_T *pWWDT) |
| Feed watchdog timer. | |
| STATIC INLINE void | IP_WWDT_SetWarning (IP_WWDT_001_T *pWWDT, uint32_t timeout) |
| Set WWDT warning interrupt. | |
| STATIC INLINE void | IP_WWDT_SetWindow (IP_WWDT_001_T *pWWDT, uint32_t timeout) |
| Set WWDT window time. | |
| STATIC INLINE void | IP_WWDT_SetOption (IP_WWDT_001_T *pWWDT, uint32_t options) |
| Enable watchdog timer options. | |
| STATIC INLINE void | IP_WWDT_UnsetOption (IP_WWDT_001_T *pWWDT, uint32_t options) |
| Disable/clear watchdog timer options. | |
| STATIC INLINE void | IP_WWDT_Start (IP_WWDT_001_T *pWWDT) |
| Enable WWDT activity. | |
| STATIC INLINE uint32_t | IP_WWDT_GetStatus (IP_WWDT_001_T *pWWDT) |
| Read WWDT status flag. | |
| void | IP_WWDT_ClearStatusFlag (IP_WWDT_001_T *pWWDT, uint32_t status) |
| Clear WWDT interrupt status flags. | |
| STATIC INLINE uint32_t | IP_WWDT_GetCurrentCount (IP_WWDT_001_T *pWWDT) |
| Get the current value of WDT. | |
| #define WATCHDOG_WINDOW_SUPPORT |
Definition at line 48 of file wwdt_001.h.
| #define WWDT_WDMOD_BITMASK ((uint32_t) 0x1F) |
| #define WWDT_WDMOD_WDEN ((uint32_t) (1 << 0)) |
WWDT interrupt enable bit
Definition at line 81 of file wwdt_001.h.
| #define WWDT_WDMOD_WDINT ((uint32_t) (1 << 3)) |
WDT Time Out flag bit
Definition at line 87 of file wwdt_001.h.
| #define WWDT_WDMOD_WDPROTECT ((uint32_t) (1 << 4)) |
WWDT Protect flag bit
Definition at line 90 of file wwdt_001.h.
| #define WWDT_WDMOD_WDRESET ((uint32_t) (1 << 1)) |
WWDT interrupt enable bit
Definition at line 83 of file wwdt_001.h.
| #define WWDT_WDMOD_WDTOF ((uint32_t) (1 << 2)) |
WWDT time out flag bit
Definition at line 85 of file wwdt_001.h.
| void IP_WWDT_ClearStatusFlag | ( | IP_WWDT_001_T * | pWWDT, |
| uint32_t | status | ||
| ) |
Clear WWDT interrupt status flags.
| pWWDT | : pointer to WWDT register block |
| status | : Or'ed value of status flag(s) that you want to clear, should be:
|
Definition at line 63 of file wwdt_001.c.
| STATIC INLINE void IP_WWDT_DeInit | ( | IP_WWDT_001_T * | pWWDT | ) |
De-initialize the Watchdog Timer.
| pWWDT | : pointer to WWDT register block |
Definition at line 116 of file wwdt_001.h.
| STATIC INLINE void IP_WWDT_Feed | ( | IP_WWDT_001_T * | pWWDT | ) |
Feed watchdog timer.
| pWWDT | : pointer to WWDT register block |
Definition at line 151 of file wwdt_001.h.
| STATIC INLINE uint32_t IP_WWDT_GetCurrentCount | ( | IP_WWDT_001_T * | pWWDT | ) |
Get the current value of WDT.
Definition at line 251 of file wwdt_001.h.
| STATIC INLINE uint32_t IP_WWDT_GetStatus | ( | IP_WWDT_001_T * | pWWDT | ) |
Read WWDT status flag.
| pWWDT | : pointer to WWDT register block |
Definition at line 232 of file wwdt_001.h.
| void IP_WWDT_Init | ( | IP_WWDT_001_T * | pWWDT | ) |
Initialize the Watchdog Timer.
| pWWDT | : pointer to WWDT register block |
Definition at line 51 of file wwdt_001.c.
| STATIC INLINE void IP_WWDT_SetOption | ( | IP_WWDT_001_T * | pWWDT, |
| uint32_t | options | ||
| ) |
Enable watchdog timer options.
| pWWDT | : pointer to WWDT register block |
| options | : An or'ed set of options of values WWDT_WDMOD_WDEN, WWDT_WDMOD_WDRESET, and WWDT_WDMOD_WDPROTECT |
Definition at line 197 of file wwdt_001.h.
| STATIC INLINE void IP_WWDT_SetTimeOut | ( | IP_WWDT_001_T * | pWWDT, |
| uint32_t | timeout | ||
| ) |
Set WDT timeout constant value used for feed.
| pWWDT | : pointer to WWDT register block |
| timeout | : WDT timeout in ticks |
Definition at line 125 of file wwdt_001.h.
| STATIC INLINE void IP_WWDT_SetWarning | ( | IP_WWDT_001_T * | pWWDT, |
| uint32_t | timeout | ||
| ) |
Set WWDT warning interrupt.
| pWWDT | : pointer to WWDT register block |
| timeout | : WDT warning in ticks, between 0 and 1023 |
Definition at line 166 of file wwdt_001.h.
| STATIC INLINE void IP_WWDT_SetWindow | ( | IP_WWDT_001_T * | pWWDT, |
| uint32_t | timeout | ||
| ) |
Set WWDT window time.
| pWWDT | : pointer to WWDT register block |
| timeout | : WDT timeout in ticks |
Definition at line 180 of file wwdt_001.h.
| STATIC INLINE void IP_WWDT_Start | ( | IP_WWDT_001_T * | pWWDT | ) |
Enable WWDT activity.
| pWWDT | : pointer to WWDT register block |
Definition at line 221 of file wwdt_001.h.
| STATIC INLINE void IP_WWDT_UnsetOption | ( | IP_WWDT_001_T * | pWWDT, |
| uint32_t | options | ||
| ) |
Disable/clear watchdog timer options.
| pWWDT | : pointer to WWDT register block |
| options | : An or'ed set of options of values WWDT_WDMOD_WDEN, WWDT_WDMOD_WDRESET, and WWDT_WDMOD_WDPROTECT |
Definition at line 211 of file wwdt_001.h.