![]() |
![]() |
MSPM0C110X Driver Library
2.05.00.05
|
Window Watchdog Timer (WWDT) Driver Library.
#include <stdbool.h>
#include <stdint.h>
#include <ti/devices/msp/msp.h>
Go to the source code of this file.
Enumerations | |
enum | DL_WWDT_CLOCK_DIVIDE { DL_WWDT_CLOCK_DIVIDE_1 = 0x00000000, DL_WWDT_CLOCK_DIVIDE_2 = 0x00000001, DL_WWDT_CLOCK_DIVIDE_3 = 0x00000002, DL_WWDT_CLOCK_DIVIDE_4 = 0x00000003, DL_WWDT_CLOCK_DIVIDE_5 = 0x00000004, DL_WWDT_CLOCK_DIVIDE_6 = 0x00000005, DL_WWDT_CLOCK_DIVIDE_7 = 0x00000006, DL_WWDT_CLOCK_DIVIDE_8 = 0x00000007 } |
enum | DL_WWDT_WINDOW { DL_WWDT_WINDOW0 = WWDT_WWDTCTL1_WINSEL_WIN0, DL_WWDT_WINDOW1 = WWDT_WWDTCTL1_WINSEL_WIN1 } |
enum | DL_WWDT_WINDOW_PERIOD { DL_WWDT_WINDOW_PERIOD_0 = WWDT_WWDTCTL0_WINDOW0_SIZE_0, DL_WWDT_WINDOW_PERIOD_12 = WWDT_WWDTCTL0_WINDOW0_SIZE_12, DL_WWDT_WINDOW_PERIOD_18 = WWDT_WWDTCTL0_WINDOW0_SIZE_18, DL_WWDT_WINDOW_PERIOD_25 = WWDT_WWDTCTL0_WINDOW0_SIZE_25, DL_WWDT_WINDOW_PERIOD_50 = WWDT_WWDTCTL0_WINDOW0_SIZE_50, DL_WWDT_WINDOW_PERIOD_75 = WWDT_WWDTCTL0_WINDOW0_SIZE_75, DL_WWDT_WINDOW_PERIOD_81 = WWDT_WWDTCTL0_WINDOW0_SIZE_81, DL_WWDT_WINDOW_PERIOD_87 = WWDT_WWDTCTL0_WINDOW0_SIZE_87 } |
enum | DL_WWDT_TIMER_PERIOD { DL_WWDT_TIMER_PERIOD_6_BITS = WWDT_WWDTCTL0_PER_EN_6, DL_WWDT_TIMER_PERIOD_8_BITS = WWDT_WWDTCTL0_PER_EN_8, DL_WWDT_TIMER_PERIOD_10_BITS = WWDT_WWDTCTL0_PER_EN_10, DL_WWDT_TIMER_PERIOD_12_BITS = WWDT_WWDTCTL0_PER_EN_12, DL_WWDT_TIMER_PERIOD_15_BITS = WWDT_WWDTCTL0_PER_EN_15, DL_WWDT_TIMER_PERIOD_18_BITS = WWDT_WWDTCTL0_PER_EN_18, DL_WWDT_TIMER_PERIOD_21_BITS = WWDT_WWDTCTL0_PER_EN_21, DL_WWDT_TIMER_PERIOD_25_BITS = WWDT_WWDTCTL0_PER_EN_25 } |
enum | DL_WWDT_SLEEP_MODE { DL_WWDT_STOP_IN_SLEEP = WWDT_WWDTCTL0_STISM_STOP, DL_WWDT_RUN_IN_SLEEP = WWDT_WWDTCTL0_STISM_CONT } |
enum | DL_WWDT_MODE { DL_WWDT_WATCHDOG_MODE = 0x0, DL_WWDT_INTERVAL_TIMER_MODE = WWDT_WWDTCTL0_MODE_INTERVAL } |
enum | DL_WWDT_IIDX { DL_WWDT_IIDX_NO_INT = WWDT_IIDX_STAT_NO_INTR, DL_WWDT_IIDX_INTERVAL_TIMER = WWDT_IIDX_STAT_INTTIM } |
enum | DL_WWDT_CORE_HALT { DL_WWDT_CORE_HALT_STOP = WWDT_PDBGCTL_FREE_STOP, DL_WWDT_CORE_HALT_FREE_RUN = WWDT_PDBGCTL_FREE_RUN } |
Functions | |
__STATIC_INLINE void | DL_WWDT_initWatchdogMode (WWDT_Regs *wwdt, DL_WWDT_CLOCK_DIVIDE divider, DL_WWDT_TIMER_PERIOD period, DL_WWDT_SLEEP_MODE sleepMode, DL_WWDT_WINDOW_PERIOD window0ClosedPeriod, DL_WWDT_WINDOW_PERIOD window1ClosedPeriod) |
Initializes the Window Watchdog Timer in watchdog mode. More... | |
__STATIC_INLINE void | DL_WWDT_initIntervalTimerMode (WWDT_Regs *wwdt, DL_WWDT_CLOCK_DIVIDE divider, DL_WWDT_TIMER_PERIOD period, DL_WWDT_SLEEP_MODE sleepMode) |
Initializes the Window Watchdog Timer in interval timer mode. More... | |
__STATIC_INLINE void | DL_WWDT_enablePower (WWDT_Regs *wwdt) |
Enables the Peripheral Write Enable (PWREN) register for the WWDT. More... | |
__STATIC_INLINE void | DL_WWDT_disablePower (WWDT_Regs *wwdt) |
Disables the Peripheral Write Enable (PWREN) register for the WWDT. More... | |
__STATIC_INLINE bool | DL_WWDT_isPowerEnabled (WWDT_Regs *wwdt) |
Returns if the Peripheral Write Enable (PWREN) register for the WWDT is enabled. More... | |
__STATIC_INLINE void | DL_WWDT_reset (WWDT_Regs *wwdt) |
Resets wwdt peripheral. More... | |
__STATIC_INLINE bool | DL_WWDT_isReset (WWDT_Regs *wwdt) |
Returns if wwdt peripheral was reset. More... | |
__STATIC_INLINE void | DL_WWDT_restart (WWDT_Regs *wwdt) |
Restarts the Window Watchdog. More... | |
__STATIC_INLINE bool | DL_WWDT_isRunning (WWDT_Regs *wwdt) |
Checks if the Window Watchdog Timer is actively running. More... | |
__STATIC_INLINE void | DL_WWDT_setActiveWindow (WWDT_Regs *wwdt, DL_WWDT_WINDOW window) |
Set the active window being used. More... | |
__STATIC_INLINE DL_WWDT_WINDOW | DL_WWDT_getActiveWindow (WWDT_Regs *wwdt) |
Get the active window being used. More... | |
__STATIC_INLINE DL_WWDT_SLEEP_MODE | DL_WWDT_getSleepMode (WWDT_Regs *wwdt) |
Get the sleep mode being used. More... | |
__STATIC_INLINE DL_WWDT_MODE | DL_WWDT_getMode (WWDT_Regs *wwdt) |
Get the mode the watchdog is running in. More... | |
__STATIC_INLINE DL_WWDT_WINDOW_PERIOD | DL_WWDT_getWindowPeriod (WWDT_Regs *wwdt, DL_WWDT_WINDOW window) |
Get the window closed percentage for a watchdog window. More... | |
__STATIC_INLINE DL_WWDT_TIMER_PERIOD | DL_WWDT_getTimerPeriod (WWDT_Regs *wwdt) |
Get the timer period for the watchdog. More... | |
__STATIC_INLINE DL_WWDT_CLOCK_DIVIDE | DL_WWDT_getClockDivider (WWDT_Regs *wwdt) |
Get the clock divider for the watchdog. More... | |
__STATIC_INLINE void | DL_WWDT_enableInterrupt (WWDT_Regs *wwdt) |
Enable WWDT interrupt. More... | |
__STATIC_INLINE void | DL_WWDT_disableInterrupt (WWDT_Regs *wwdt) |
Disable WWDT interrupt. More... | |
__STATIC_INLINE bool | DL_WWDT_isInterruptEnabled (WWDT_Regs *wwdt) |
Check if WWDT interrupt is enabled. More... | |
__STATIC_INLINE bool | DL_WWDT_getEnabledInterruptStatus (WWDT_Regs *wwdt) |
Check interrupt flag of enabled WWDT interrupt. More... | |
__STATIC_INLINE uint32_t | DL_WWDT_getRawInterruptStatus (WWDT_Regs *wwdt) |
Check interrupt flag of any WWDT interrupt. More... | |
__STATIC_INLINE DL_WWDT_IIDX | DL_WWDT_getPendingInterrupt (WWDT_Regs *wwdt) |
Get highest priority pending WWDT interrupt. More... | |
__STATIC_INLINE void | DL_WWDT_clearInterruptStatus (WWDT_Regs *wwdt) |
Clear pending WWDT interrupt. More... | |
__STATIC_INLINE void | DL_WWDT_setCoreHaltBehavior (WWDT_Regs *wwdt, DL_WWDT_CORE_HALT haltMode) |
Configures WWDT behavior when the core is halted. More... | |
__STATIC_INLINE DL_WWDT_CORE_HALT | DL_WWDT_getCoreHaltBehavior (WWDT_Regs *wwdt) |
Get WWDT behavior when the core is halted. More... | |