PAN1080 Peripheral API
|
Wwdt Interface. More...
Modules | |
Wdt prescare | |
Wdt prescare definition. | |
Macros | |
#define | WWDT_RELOAD_WORD |
Functions | |
__STATIC_INLINE void | WWDT_ClearResetFlag (void) |
This function clear WWDT time-out reset system flag. More... | |
__STATIC_INLINE void | WWDT_ClearIntFlag (void) |
This function clear WWDT compare match interrupt flag. More... | |
__STATIC_INLINE void | WWDT_ClearWWDTFFlag (void) |
This function clear WWDT compare match event flag. More... | |
__STATIC_INLINE bool | WWDT_GetResetFlag (void) |
This function is use to get WWDT time-out reset system flag. More... | |
__STATIC_INLINE bool | WWDT_GetIntFlag (void) |
This function is used to indicate WWDT compare match interrupt flag. More... | |
__STATIC_INLINE bool | WWDT_GetWWDTFFlag (void) |
This function is used to indicate WWDT compare match event flag. More... | |
__STATIC_INLINE uint32_t | WWDT_GetCounter (void) |
This function to reflects current WWDT counter value. More... | |
__STATIC_INLINE uint32_t | WWDT_GetCompareValue (void) |
This function reflects current WWDT compare value (CMPDAT) More... | |
__STATIC_INLINE void | WWDT_ReloadCounter (void) |
This function is used to reload the WWDT counter value to 0x3F. More... | |
void | WWDT_Open (WWDT_PrescaleDef preScale, uint32_t u32CmpValue, uint32_t u32EnableInt) |
This function make WWDT module start counting with different counter period and compared window value. More... | |
void | WWDT_Close (void) |
This function stops WWDT counting. More... | |
Wwdt Interface.
#define WWDT_RELOAD_WORD |
Fill this value to RLD register to reload WWDT counter
__STATIC_INLINE void WWDT_ClearIntFlag | ( | void | ) |
This function clear WWDT compare match interrupt flag.
__STATIC_INLINE void WWDT_ClearResetFlag | ( | void | ) |
This function clear WWDT time-out reset system flag.
__STATIC_INLINE void WWDT_ClearWWDTFFlag | ( | void | ) |
This function clear WWDT compare match event flag.
void WWDT_Close | ( | void | ) |
This function stops WWDT counting.
__STATIC_INLINE uint32_t WWDT_GetCompareValue | ( | void | ) |
This function reflects current WWDT compare value (CMPDAT)
__STATIC_INLINE uint32_t WWDT_GetCounter | ( | void | ) |
This function to reflects current WWDT counter value.
__STATIC_INLINE bool WWDT_GetIntFlag | ( | void | ) |
This function is used to indicate WWDT compare match interrupt flag.
false | WWDT compare match interrupt did not occur |
true | WWDT compare match interrupt occurred |
__STATIC_INLINE bool WWDT_GetResetFlag | ( | void | ) |
This function is use to get WWDT time-out reset system flag.
false | WWDT did not cause system reset |
true | WWDT caused system reset |
__STATIC_INLINE bool WWDT_GetWWDTFFlag | ( | void | ) |
This function is used to indicate WWDT compare match event flag.
false | WWDT compare match interrupt did not occur |
true | WWDT compare match interrupt occurred |
void WWDT_Open | ( | WWDT_PrescaleDef | preScale, |
uint32_t | u32CmpValue, | ||
uint32_t | u32EnableInt | ||
) |
This function make WWDT module start counting with different counter period and compared window value.
[in] | preScale | Prescale period for the WWDT counter period. Valid values are: |
[in] | u32CmpValue | Window compared value. Valid values are between 0x0 to 0x3F |
[in] | u32EnableInt | Enable WWDT interrupt or not. Valid values are TRUE and FALSE |
__STATIC_INLINE void WWDT_ReloadCounter | ( | void | ) |
This function is used to reload the WWDT counter value to 0x3F.
After WWDT enabled, application must reload WWDT counter while current counter is less than compare value and larger than 0, otherwise WWDT will cause system reset.