Configuration functions

Functions

__STATIC_INLINE void ll_wdt_enable_write_access (wdt_regs_t *WDTx)
 Enable write access to WDT_LOAD, WDT_CTRL and WDT_INTCLR registers. More...
 
__STATIC_INLINE void ll_wdt_disable_write_access (wdt_regs_t *WDTx)
 Disable write access to WDT_LOAD, WDT_CTRL and WDT_INTCLR registers. More...
 
__STATIC_INLINE void ll_wdt_enable (wdt_regs_t *WDTx)
 Enable watchdog counter and interrupt event. More...
 
__STATIC_INLINE void ll_wdt_disable (wdt_regs_t *WDTx)
 Disable watchdog counter and interrupt event. More...
 
__STATIC_INLINE uint32_t ll_wdt_is_enabled (wdt_regs_t *WDTx)
 Check if the WDT peripheral is enabled or disabled. More...
 
__STATIC_INLINE void ll_wdt_enable_reset (wdt_regs_t *WDTx)
 Enable reset output. More...
 
__STATIC_INLINE void ll_wdt_disable_reset (wdt_regs_t *WDTx)
 Disable reset output. More...
 
__STATIC_INLINE uint32_t ll_wdt_is_enabled_reset (wdt_regs_t *WDTx)
 Check if the WDT reset is enabled or disabled. More...
 
__STATIC_INLINE void ll_wdt_set_counter_load (wdt_regs_t *WDTx, uint32_t counter)
 Specify the WDT down-counter reload value. More...
 
__STATIC_INLINE uint32_t ll_wdt_get_counter_load (wdt_regs_t *WDTx)
 Get the specified WDT down-counter reload value. More...
 
__STATIC_INLINE uint32_t ll_wdt_get_counter_value (wdt_regs_t *WDTx)
 Get current value of the specified WDT decrementing down-counter. More...
 
__STATIC_INLINE void ll_wdt_reload_counter (wdt_regs_t *WDTx)
 Reloads WDT counter with value defined in the reload register. More...
 

Detailed Description

Function Documentation

◆ ll_wdt_disable()

__STATIC_INLINE void ll_wdt_disable ( wdt_regs_t *  WDTx)

Disable watchdog counter and interrupt event.

Register BitsName
CTRL INTEN
Parameters
WDTxWDT instance.
Return values
None

◆ ll_wdt_disable_reset()

__STATIC_INLINE void ll_wdt_disable_reset ( wdt_regs_t *  WDTx)

Disable reset output.

Register BitsName
CTRL RSTEN
Parameters
WDTxWDT instance.
Return values
None

◆ ll_wdt_disable_write_access()

__STATIC_INLINE void ll_wdt_disable_write_access ( wdt_regs_t *  WDTx)

Disable write access to WDT_LOAD, WDT_CTRL and WDT_INTCLR registers.

Register BitsName
LOCK ENRW
Parameters
WDTxWDT instance
Return values
None

◆ ll_wdt_enable()

__STATIC_INLINE void ll_wdt_enable ( wdt_regs_t *  WDTx)

Enable watchdog counter and interrupt event.

Register BitsName
CTRL INTEN
Parameters
WDTxWDT instance.
Return values
None

◆ ll_wdt_enable_reset()

__STATIC_INLINE void ll_wdt_enable_reset ( wdt_regs_t *  WDTx)

Enable reset output.

Note
RSTEN acts as a mask for the reset output.
Register BitsName
CTRL RSTEN
Parameters
WDTxWDT instance.
Return values
None

◆ ll_wdt_enable_write_access()

__STATIC_INLINE void ll_wdt_enable_write_access ( wdt_regs_t *  WDTx)

Enable write access to WDT_LOAD, WDT_CTRL and WDT_INTCLR registers.

Register BitsName
LOCK ENRW
Parameters
WDTxWDT instance
Return values
None

◆ ll_wdt_get_counter_load()

__STATIC_INLINE uint32_t ll_wdt_get_counter_load ( wdt_regs_t *  WDTx)

Get the specified WDT down-counter reload value.

Register BitsName
LOAD LOAD
Parameters
WDTxWDT instance
Return values
Valuerange between Min_Data=0 and Max_Data=0x0FFF

◆ ll_wdt_get_counter_value()

__STATIC_INLINE uint32_t ll_wdt_get_counter_value ( wdt_regs_t *  WDTx)

Get current value of the specified WDT decrementing down-counter.

Register BitsName
VALUE VALUE
Parameters
WDTxWDT instance
Return values
Valuerange between Min_Data=0 and Max_Data=0x0FFF

◆ ll_wdt_is_enabled()

__STATIC_INLINE uint32_t ll_wdt_is_enabled ( wdt_regs_t *  WDTx)

Check if the WDT peripheral is enabled or disabled.

Register BitsName
CTRL INTEN
Parameters
WDTxWDT instance.
Return values
Stateof bit (1 or 0).

◆ ll_wdt_is_enabled_reset()

__STATIC_INLINE uint32_t ll_wdt_is_enabled_reset ( wdt_regs_t *  WDTx)

Check if the WDT reset is enabled or disabled.

Register BitsName
CTRL RSTEN
Parameters
WDTxWDT instance.
Return values
Stateof bit (1 or 0).

◆ ll_wdt_reload_counter()

__STATIC_INLINE void ll_wdt_reload_counter ( wdt_regs_t *  WDTx)

Reloads WDT counter with value defined in the reload register.

Register BitsName
INTCLR INTCLR
Parameters
WDTxWDT instance
Return values
None

◆ ll_wdt_set_counter_load()

__STATIC_INLINE void ll_wdt_set_counter_load ( wdt_regs_t *  WDTx,
uint32_t  counter 
)

Specify the WDT down-counter reload value.

Register BitsName
LOAD LOAD
Parameters
WDTxWDT instance
counterValue range between Min_Data=0 and Max_Data=0xFFFFFFFF
Return values
None