PAN1080 Peripheral API
Modules | Macros | Functions
Wwdt Interface

Wwdt Interface. More...

Collaboration diagram for Wwdt Interface:

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...
 

Detailed Description

Wwdt Interface.

Macro Definition Documentation

◆ WWDT_RELOAD_WORD

#define WWDT_RELOAD_WORD

Fill this value to RLD register to reload WWDT counter

Function Documentation

◆ WWDT_ClearIntFlag()

__STATIC_INLINE void WWDT_ClearIntFlag ( void  )

This function clear WWDT compare match interrupt flag.

Returns
None

◆ WWDT_ClearResetFlag()

__STATIC_INLINE void WWDT_ClearResetFlag ( void  )

This function clear WWDT time-out reset system flag.

Returns
None

◆ WWDT_ClearWWDTFFlag()

__STATIC_INLINE void WWDT_ClearWWDTFFlag ( void  )

This function clear WWDT compare match event flag.

Returns
None

◆ WWDT_Close()

void WWDT_Close ( void  )

This function stops WWDT counting.

Returns
None

◆ WWDT_GetCompareValue()

__STATIC_INLINE uint32_t WWDT_GetCompareValue ( void  )

This function reflects current WWDT compare value (CMPDAT)

Returns
Return current WWDT compare value

◆ WWDT_GetCounter()

__STATIC_INLINE uint32_t WWDT_GetCounter ( void  )

This function to reflects current WWDT counter value.

Returns
Return current WWDT counter value

◆ WWDT_GetIntFlag()

__STATIC_INLINE bool WWDT_GetIntFlag ( void  )

This function is used to indicate WWDT compare match interrupt flag.

Returns
WWDT compare match interrupt occurred or not
Return values
falseWWDT compare match interrupt did not occur
trueWWDT compare match interrupt occurred

◆ WWDT_GetResetFlag()

__STATIC_INLINE bool WWDT_GetResetFlag ( void  )

This function is use to get WWDT time-out reset system flag.

Returns
WWDT reset system or not
Return values
falseWWDT did not cause system reset
trueWWDT caused system reset

◆ WWDT_GetWWDTFFlag()

__STATIC_INLINE bool WWDT_GetWWDTFFlag ( void  )

This function is used to indicate WWDT compare match event flag.

Returns
WWDT compare match interrupt occurred or not
Return values
falseWWDT compare match interrupt did not occur
trueWWDT compare match interrupt occurred

◆ WWDT_Open()

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.

Parameters
[in]preScalePrescale period for the WWDT counter period. Valid values are:
[in]u32CmpValueWindow compared value. Valid values are between 0x0 to 0x3F
[in]u32EnableIntEnable WWDT interrupt or not. Valid values are TRUE and FALSE
Returns
None
Note
Application can call this function can only once after boot up

◆ WWDT_ReloadCounter()

__STATIC_INLINE void WWDT_ReloadCounter ( void  )

This function is used to reload the WWDT counter value to 0x3F.

Returns
None

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.