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... | |
__STATIC_INLINE void ll_wdt_disable | ( | wdt_regs_t * | WDTx | ) |
Disable watchdog counter and interrupt event.
Register | BitsName |
---|---|
CTRL | INTEN |
WDTx | WDT instance. |
None |
__STATIC_INLINE void ll_wdt_disable_reset | ( | wdt_regs_t * | WDTx | ) |
Disable reset output.
Register | BitsName |
---|---|
CTRL | RSTEN |
WDTx | WDT instance. |
None |
__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 |
WDTx | WDT instance |
None |
__STATIC_INLINE void ll_wdt_enable | ( | wdt_regs_t * | WDTx | ) |
Enable watchdog counter and interrupt event.
Register | BitsName |
---|---|
CTRL | INTEN |
WDTx | WDT instance. |
None |
__STATIC_INLINE void ll_wdt_enable_reset | ( | wdt_regs_t * | WDTx | ) |
Enable reset output.
Register | BitsName |
---|---|
CTRL | RSTEN |
WDTx | WDT instance. |
None |
__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 |
WDTx | WDT instance |
None |
__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 |
WDTx | WDT instance |
Value | range between Min_Data=0 and Max_Data=0x0FFF |
__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 |
WDTx | WDT instance |
Value | range between Min_Data=0 and Max_Data=0x0FFF |
__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 |
WDTx | WDT instance. |
State | of bit (1 or 0). |
__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 |
WDTx | WDT instance. |
State | of bit (1 or 0). |
__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 |
WDTx | WDT instance |
None |
__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 |
WDTx | WDT instance |
counter | Value range between Min_Data=0 and Max_Data=0xFFFFFFFF |
None |