![]() |
![]() |
|
MSPM0C1105_C1106 Driver Library
2.05.01.00
|
|
Modules | |
| DL_LFSS_TAMPERIO_INTERRUPT | |
| DL_LFSS_TAMPERIO_EVENT | |
Macros | |
| #define | LFSS_TAMPER_IO_PIN_ENABLE 0x1 |
| Individual Tamper IO pin enable. | |
| #define | LFSS_TAMPER_IO_PIN_MASK 0x1 |
| Individual Tamper IO pin mask. | |
Functions | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_enableOutputInversion (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Enable output inversion for the specified Tamper IO. More... | |
| __STATIC_INLINE bool | DL_LFSS_TamperIO_isOutputInversionEnabled (const LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Checks if output inversion is enabled for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_disableOutputInversion (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Disable output inversion for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_setOutputSource (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO, DL_LFSS_TAMPERIO_OUTPUT_SOURCE source) |
| Selects the source for the tamper output (TOUT) control for the specified Tamper IO. More... | |
| __STATIC_INLINE DL_LFSS_TAMPERIO_OUTPUT_SOURCE | DL_LFSS_TamperIO_getOutputSource (const LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Gets the source for the tamper output (TOUT) control for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_setGlitchFilterWidth (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO, DL_LFSS_TAMPERIO_GLITCH_FILTER_WIDTH width) |
| Selects the filter width for the digital glitch filter for the specified Tamper IO. More... | |
| __STATIC_INLINE DL_LFSS_TAMPERIO_GLITCH_FILTER_WIDTH | DL_LFSS_TamperIO_getGlitchFilterWidth (const LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Gets the filter width for the digital glitch filter for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_setEdgeDetectionPolarity (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO, DL_LFSS_TAMPERIO_EDGE_DETECTION_POLARITY polarity) |
| Selects the edge detection polarity for the specified Tamper IO. More... | |
| __STATIC_INLINE DL_LFSS_TAMPERIO_EDGE_DETECTION_POLARITY | DL_LFSS_TamperIO_getEdgeDetectionPolarity (const LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Gets the edge detection polarity for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_enableInternalPullUp (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Enable internal pull-up resistor for the specified Tamper IO. More... | |
| __STATIC_INLINE bool | DL_LFSS_TamperIO_isInternalPullUpEnabled (const LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Checks if internal pull-up resistor is enabled for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_disableInternalPullUp (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Disable internal pull-up resistor for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_enableInternalPullDown (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Enable internal pull-down resistor for the specified Tamper IO. More... | |
| __STATIC_INLINE bool | DL_LFSS_TamperIO_isInternalPullDownEnabled (const LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Checks if internal pull-down resistor is enabled for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_disableInternalPullDown (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Disable internal pull-down resistor for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_enableInput (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Enable input path for the specified Tamper IO. More... | |
| __STATIC_INLINE bool | DL_LFSS_TamperIO_isInputEnabled (const LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Checks if input is enabled for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_disableInput (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Disable input path for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_setMode (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO, DL_LFSS_TAMPERIO_MODE mode) |
| Selects the mode for the specified Tamper IO. More... | |
| __STATIC_INLINE DL_LFSS_TAMPERIO_MODE | DL_LFSS_TamperIO_getMode (const LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Gets the mode for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_enableOutput (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Enable data output for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_disableOutput (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Disable data output for the specified Tamper IO. More... | |
| __STATIC_INLINE uint32_t | DL_LFSS_TamperIO_isOutputEnabled (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Checks if data output for the specified Tamper IO is enabled. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_setOutputValue (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO, DL_LFSS_TAMPERIO_VALUE outVal) |
| Enable data output value as zero for the specified Tamper IO. More... | |
| __STATIC_INLINE DL_LFSS_TAMPERIO_VALUE | DL_LFSS_TamperIO_getOutputValue (LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Gets the output data value for the specified Tamper IO. More... | |
| __STATIC_INLINE DL_LFSS_TAMPERIO_VALUE | DL_LFSS_TamperIO_getInputValue (const LFSS_Regs *lfss, DL_LFSS_TAMPERIO tamperIO) |
| Gets the input data value for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_setHeartBeatInterval (LFSS_Regs *lfss, DL_LFSS_HEARTBEAT_INTERVAL interval) |
| Sets the interval for the heart beat generator. More... | |
| __STATIC_INLINE DL_LFSS_HEARTBEAT_INTERVAL | DL_LFSS_TamperIO_getHeartBeatInterval (const LFSS_Regs *lfss) |
| Gets the interval for the heart beat generator. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_setHeartBeatPulseWidth (LFSS_Regs *lfss, DL_LFSS_HEARTBEAT_PULSE_WIDTH width) |
| Sets the pulse width for the heart beat generator. More... | |
| __STATIC_INLINE DL_LFSS_HEARTBEAT_PULSE_WIDTH | DL_LFSS_TamperIO_getHeartBeatPulseWidth (const LFSS_Regs *lfss) |
| Gets the pulse width for the heart beat generator. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_setHeartBeatMode (LFSS_Regs *lfss, DL_LFSS_HEARTBEAT_MODE mode) |
| Sets the mode for the heart beat generator. More... | |
| __STATIC_INLINE DL_LFSS_HEARTBEAT_MODE | DL_LFSS_TamperIO_getHeartBeatMode (const LFSS_Regs *lfss) |
| Gets the pulse mode for the heart beat generator. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_enableWriteProtectLock (LFSS_Regs *lfss) |
| Enable write protection lock of the TIOCTL and HEARTBEAT registers from accidental updates. More... | |
| __STATIC_INLINE bool | DL_LFSS_TamperIO_isWriteProtectLockEnabled (const LFSS_Regs *lfss) |
| Checks if write protection lock of the TIOCTL and HEARTBEAT registers is enabled for the specified Tamper IO. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_disableWriteProtectLock (LFSS_Regs *lfss) |
| Disable write protection lock of the TIOCTL and HEARTBEAT registers. More... | |
| __STATIC_INLINE void | DL_LFSS_IWDT_enableModule (LFSS_Regs *lfss) |
| Enables the Watchdog module. More... | |
| __STATIC_INLINE void | DL_LFSS_IWDT_disableModule (LFSS_Regs *lfss) |
| Disables the Watchdog module. More... | |
| __STATIC_INLINE bool | DL_LFSS_IWDT_isModuleEnabled (const LFSS_Regs *lfss) |
| Returns if Watchdog module is on. More... | |
| __STATIC_INLINE void | DL_LFSS_IWDT_enableFreeRun (LFSS_Regs *lfss) |
| Enables the Watchdog free run control. More... | |
| __STATIC_INLINE void | DL_LFSS_IWDT_disableFreeRun (LFSS_Regs *lfss) |
| Disables the Watchdog free run control. More... | |
| __STATIC_INLINE bool | DL_LFSS_IWDT_isFreeRunEnabled (const LFSS_Regs *lfss) |
| Returns if Watchdog free run control is enabled. More... | |
| __STATIC_INLINE void | DL_LFSS_IWDT_setClockDivider (LFSS_Regs *lfss, DL_LFSS_IWDT_CLOCK_DIVIDE divider) |
| Sets the clock divider for the WDT module. More... | |
| __STATIC_INLINE DL_LFSS_IWDT_CLOCK_DIVIDE | DL_LFSS_IWDT_getClockDivider (const LFSS_Regs *lfss) |
| Gets the clock divider for the WDT module. More... | |
| __STATIC_INLINE void | DL_LFSS_IWDT_setTimerPeriod (LFSS_Regs *lfss, DL_LFSS_IWDT_TIMER_PERIOD period) |
| Sets the timer period for the WDT module. More... | |
| __STATIC_INLINE DL_LFSS_IWDT_TIMER_PERIOD | DL_LFSS_IWDT_getTimerPeriod (const LFSS_Regs *lfss) |
| Get the timer period for the WDT module. More... | |
| __STATIC_INLINE void | DL_LFSS_IWDT_restart (LFSS_Regs *lfss) |
| Restarts the Watchdog. More... | |
| __STATIC_INLINE bool | DL_LFSS_IWDT_isWatchdogRunning (const LFSS_Regs *lfss) |
| Returns if Watchdog module is running. More... | |
| __STATIC_INLINE void | DL_LFSS_IWDT_enableWriteProtect (LFSS_Regs *lfss) |
| Enable write protection lock of the WDTEN and WDTCTL registers from accidental updates. More... | |
| __STATIC_INLINE bool | DL_LFSS_IWDT_isWriteProtectEnabled (const LFSS_Regs *lfss) |
| Checks if write protection lock of the WDTEN and WDTCTL registers is enabled. More... | |
| __STATIC_INLINE void | DL_LFSS_IWDT_disableWriteProtect (LFSS_Regs *lfss) |
| Disable write protection lock of the WDTEN and WDTCTL registers. More... | |
| __STATIC_INLINE void | DL_LFSS_writeScratchPadData32 (LFSS_Regs *lfss, DL_LFSS_SCRATCHPAD_MEM_WORD memIndex, uint32_t data) |
| Write a word in scratch pad memory. More... | |
| __STATIC_INLINE void | DL_LFSS_writeScratchPadData8 (LFSS_Regs *lfss, DL_LFSS_SCRATCHPAD_MEM_WORD memIndex, DL_LFSS_SCRATCHPAD_MEM_BYTE byteIndex, uint32_t data) |
| Write to a single byte in scratch pad memory. More... | |
| __STATIC_INLINE uint32_t | DL_LFSS_readScratchPadDataWord (const LFSS_Regs *lfss, DL_LFSS_SCRATCHPAD_MEM_WORD memIndex) |
| Read the specified word in scratch pad memory. More... | |
| __STATIC_INLINE uint8_t | DL_LFSS_readScratchPadDataByte (LFSS_Regs *lfss, DL_LFSS_SCRATCHPAD_MEM_WORD memIndex, DL_LFSS_SCRATCHPAD_MEM_BYTE byteIndex) |
| Read the specified byte in scratch pad memory. More... | |
| __STATIC_INLINE void | DL_LFSS_enableScratchPadWriteProtectByte (LFSS_Regs *lfss, DL_LFSS_SCRATCHPAD_MEM_WORD memIndex, DL_LFSS_SCRATCHPAD_MEM_BYTE byteIndex) |
| Enable write protection lock of the specified byte in scratch pad memory from accidental updates. More... | |
| __STATIC_INLINE bool | DL_LFSS_isScratchPadWriteProtectByteEnabled (LFSS_Regs *lfss, DL_LFSS_SCRATCHPAD_MEM_WORD memIndex, DL_LFSS_SCRATCHPAD_MEM_BYTE byteIndex) |
| Checks if write protection is enabled for the specified byte in scratch pad memory. More... | |
| __STATIC_INLINE void | DL_LFSS_disableScratchPadWriteProtectByte (LFSS_Regs *lfss, DL_LFSS_SCRATCHPAD_MEM_WORD memIndex, DL_LFSS_SCRATCHPAD_MEM_BYTE byteIndex) |
| Disable write protection lock of the specified byte in scratch pad memory. More... | |
| __STATIC_INLINE void | DL_LFSS_enableScratchPadTamperEraseByte (LFSS_Regs *lfss, DL_LFSS_SCRATCHPAD_MEM_WORD memIndex, DL_LFSS_SCRATCHPAD_MEM_BYTE byteIndex) |
| Enable tamper erase of the specified byte in scratch pad memory. More... | |
| __STATIC_INLINE bool | DL_LFSS_isScratchPadTamperEraseByteEnabled (LFSS_Regs *lfss, DL_LFSS_SCRATCHPAD_MEM_WORD memIndex, DL_LFSS_SCRATCHPAD_MEM_BYTE byteIndex) |
| Checks if tamper erase is enabled for the specified byte in scratch pad memory. More... | |
| __STATIC_INLINE void | DL_LFSS_disableScratchPadTamperEraseByte (LFSS_Regs *lfss, DL_LFSS_SCRATCHPAD_MEM_WORD memIndex, DL_LFSS_SCRATCHPAD_MEM_BYTE byteIndex) |
| Disable tamper erase of the specified byte in scratch pad memory. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_enableInterrupt (LFSS_Regs *lfss, uint32_t interruptMask) |
| Enable LFSS Tamper Interrupts. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_disableInterrupt (LFSS_Regs *lfss, uint32_t interruptMask) |
| Disable LFSS Tamper interrupts. More... | |
| __STATIC_INLINE uint32_t | DL_LFSS_TamperIO_getEnabledInterrupts (const LFSS_Regs *lfss, uint32_t interruptMask) |
| Check which LFSS Tamper interrupts are enabled. More... | |
| __STATIC_INLINE uint32_t | DL_LFSS_TamperIO_getEnabledInterruptStatus (const LFSS_Regs *lfss, uint32_t interruptMask) |
| Check interrupt flag of enabled LFSS Tamper interrupts. More... | |
| __STATIC_INLINE uint32_t | DL_LFSS_TamperIO_getRawInterruptStatus (const LFSS_Regs *lfss, uint32_t interruptMask) |
| Check interrupt flag of any LFSS Tamper interrupt. More... | |
| __STATIC_INLINE DL_LFSS_TAMPERIO_IIDX | DL_LFSS_TamperIO_getPendingInterrupt (const LFSS_Regs *lfss) |
| Get highest priority pending LFSS interrupt. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_clearInterruptStatus (LFSS_Regs *lfss, uint32_t interruptMask) |
| Clear pending LFSS Tamper interrupts. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_enableEvent (LFSS_Regs *lfss, uint32_t eventMask) |
| Enable LFSS Tamper event. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_disableEvent (LFSS_Regs *lfss, uint32_t eventMask) |
| Disable LFSS Tamper event. More... | |
| __STATIC_INLINE uint32_t | DL_LFSS_TamperIO_getEnabledEvents (const LFSS_Regs *lfss, uint32_t eventMask) |
| Check which LFSS Tamper events are enabled. More... | |
| __STATIC_INLINE uint32_t | DL_LFSS_TamperIO_getEnabledEventStatus (const LFSS_Regs *lfss, uint32_t eventMask) |
| Check event flag of enabled LFSS Tamper event. More... | |
| __STATIC_INLINE uint32_t | DL_LFSS_TamperIO_getRawEventsStatus (const LFSS_Regs *lfss, uint32_t eventMask) |
| Check interrupt flag of any LFSS Tamper event. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_clearEventsStatus (LFSS_Regs *lfss, uint32_t eventMask) |
| Clear pending LFSS Tamper events. More... | |
| __STATIC_INLINE void | DL_LFSS_TamperIO_setPublisherChanID (LFSS_Regs *lfss, uint8_t chanID) |
| Sets the LFSS Tamper event publisher channel ID. More... | |
| __STATIC_INLINE uint8_t | DL_LFSS_TamperIO_getPublisherChanID (const LFSS_Regs *lfss) |
| Gets the event publisher channel ID. More... | |
| __STATIC_INLINE void | DL_LFSS_reset (LFSS_Regs *lfss) |
| Requests a reset to the LFSS module. More... | |
The Low Frequency Sub-System (LFSS) Driver Library allows full configuration of the MSPM0 LFSS module. The LFSS IP enables a separate, dedicated battery supply used for maintaining continuous operation of real time clock (RTC), tamper detection input / output (TIO) module, an independent asynchronous watchdog timer (IWDT) and a small scratchpad memory storage (SPM).
| enum DL_LFSS_TAMPERIO |
| __STATIC_INLINE void DL_LFSS_TamperIO_enableOutputInversion | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Enable output inversion for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO. |
| __STATIC_INLINE bool DL_LFSS_TamperIO_isOutputInversionEnabled | ( | const LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Checks if output inversion is enabled for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO |
| true | Output inversion for the Tamper I/O is enabled |
| false | Output inversion for the Tamper I/O is disabled |
| __STATIC_INLINE void DL_LFSS_TamperIO_disableOutputInversion | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Disable output inversion for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO |
| __STATIC_INLINE void DL_LFSS_TamperIO_setOutputSource | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO, | ||
| DL_LFSS_TAMPERIO_OUTPUT_SOURCE | source | ||
| ) |
Selects the source for the tamper output (TOUT) control for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO |
| [in] | source | The source for the tamper output control. One of DL_LFSS_TAMPERIO_OUTPUT_SOURCE. |
References DL_Common_updateReg().
| __STATIC_INLINE DL_LFSS_TAMPERIO_OUTPUT_SOURCE DL_LFSS_TamperIO_getOutputSource | ( | const LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Gets the source for the tamper output (TOUT) control for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO. One of DL_LFSS_TAMPERIO |
| One | of DL_LFSS_TAMPERIO_OUTPUT_SOURCE |
| __STATIC_INLINE void DL_LFSS_TamperIO_setGlitchFilterWidth | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO, | ||
| DL_LFSS_TAMPERIO_GLITCH_FILTER_WIDTH | width | ||
| ) |
Selects the filter width for the digital glitch filter for the specified Tamper IO.
The tamper event detection allows to configure one or more tamper IO’s to trigger a timestamp event and to generate an interrupt to the CPU. To minimize false triggers, a digital filter circuit is inserted into the IO path. Only pulses that are longer than the configured filter width will be registered as a tamper event.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO |
| [in] | width | The width of the digital glitch filter. Pulses smaller than this width will be filtered. One of DL_LFSS_TAMPERIO_GLITCH_FILTER_WIDTH. |
References DL_Common_updateReg().
| __STATIC_INLINE DL_LFSS_TAMPERIO_GLITCH_FILTER_WIDTH DL_LFSS_TamperIO_getGlitchFilterWidth | ( | const LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Gets the filter width for the digital glitch filter for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO. One of DL_LFSS_TAMPERIO |
| One | of DL_LFSS_TAMPERIO_GLITCH_FILTER_WIDTH |
| __STATIC_INLINE void DL_LFSS_TamperIO_setEdgeDetectionPolarity | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO, | ||
| DL_LFSS_TAMPERIO_EDGE_DETECTION_POLARITY | polarity | ||
| ) |
Selects the edge detection polarity for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO |
| [in] | polarity | The edge detection polarity. One of DL_LFSS_TAMPERIO_EDGE_DETECTION_POLARITY. |
References DL_Common_updateReg().
| __STATIC_INLINE DL_LFSS_TAMPERIO_EDGE_DETECTION_POLARITY DL_LFSS_TamperIO_getEdgeDetectionPolarity | ( | const LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Gets the edge detection polarity for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO. One of DL_LFSS_TAMPERIO |
| One | of DL_LFSS_TAMPERIO_EDGE_DETECTION_POLARITY |
| __STATIC_INLINE void DL_LFSS_TamperIO_enableInternalPullUp | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Enable internal pull-up resistor for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO. |
| __STATIC_INLINE bool DL_LFSS_TamperIO_isInternalPullUpEnabled | ( | const LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Checks if internal pull-up resistor is enabled for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO |
| true | Internal pull-up resistor for the Tamper I/O is enabled |
| false | Internal pull-up resistor for the Tamper I/O is disabled |
| __STATIC_INLINE void DL_LFSS_TamperIO_disableInternalPullUp | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Disable internal pull-up resistor for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO |
| __STATIC_INLINE void DL_LFSS_TamperIO_enableInternalPullDown | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Enable internal pull-down resistor for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO. |
| __STATIC_INLINE bool DL_LFSS_TamperIO_isInternalPullDownEnabled | ( | const LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Checks if internal pull-down resistor is enabled for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO |
| true | Internal pull-down resistor for the Tamper I/O is enabled |
| false | Internal pull-down resistor for the Tamper I/O is disabled |
| __STATIC_INLINE void DL_LFSS_TamperIO_disableInternalPullDown | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Disable internal pull-down resistor for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO |
| __STATIC_INLINE void DL_LFSS_TamperIO_enableInput | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Enable input path for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO. |
| __STATIC_INLINE bool DL_LFSS_TamperIO_isInputEnabled | ( | const LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Checks if input is enabled for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO |
| true | Input for the Tamper I/O is enabled |
| false | Input for the Tamper I/O is disabled |
| __STATIC_INLINE void DL_LFSS_TamperIO_disableInput | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Disable input path for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO |
| __STATIC_INLINE void DL_LFSS_TamperIO_setMode | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO, | ||
| DL_LFSS_TAMPERIO_MODE | mode | ||
| ) |
Selects the mode for the specified Tamper IO.
The tamper IOs have two modes of operation:
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO |
| [in] | mode | The mode for the specified tamper IO. One of DL_LFSS_TAMPERIO_MODE. |
References DL_Common_updateReg().
| __STATIC_INLINE DL_LFSS_TAMPERIO_MODE DL_LFSS_TamperIO_getMode | ( | const LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Gets the mode for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO. One of DL_LFSS_TAMPERIO |
| One | of DL_LFSS_TAMPERIO_MODE |
| __STATIC_INLINE void DL_LFSS_TamperIO_enableOutput | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Enable data output for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO. |
References LFSS_TAMPER_IO_PIN_ENABLE.
| __STATIC_INLINE void DL_LFSS_TamperIO_disableOutput | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Disable data output for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO. |
References LFSS_TAMPER_IO_PIN_ENABLE.
| __STATIC_INLINE uint32_t DL_LFSS_TamperIO_isOutputEnabled | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Checks if data output for the specified Tamper IO is enabled.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO. One of DL_LFSS_TAMPERIO |
| true | Data output for the tamper IO is enabled |
| false | Data output for the tamper IO is disabled |
References LFSS_TAMPER_IO_PIN_ENABLE, and LFSS_TAMPER_IO_PIN_MASK.
| __STATIC_INLINE void DL_LFSS_TamperIO_setOutputValue | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO, | ||
| DL_LFSS_TAMPERIO_VALUE | outVal | ||
| ) |
Enable data output value as zero for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO to configure. One of DL_LFSS_TAMPERIO. |
| [in] | outVal | The data value to set the tamper IO output to. One of DL_LFSS_TAMPERIO_VALUE. |
References DL_Common_updateReg(), and LFSS_TAMPER_IO_PIN_MASK.
| __STATIC_INLINE DL_LFSS_TAMPERIO_VALUE DL_LFSS_TamperIO_getOutputValue | ( | LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Gets the output data value for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO. One of DL_LFSS_TAMPERIO |
| One | of DL_LFSS_TAMPERIO_VALUE |
References LFSS_TAMPER_IO_PIN_MASK.
| __STATIC_INLINE DL_LFSS_TAMPERIO_VALUE DL_LFSS_TamperIO_getInputValue | ( | const LFSS_Regs * | lfss, |
| DL_LFSS_TAMPERIO | tamperIO | ||
| ) |
Gets the input data value for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | tamperIO | Specifies the tamper IO. One of DL_LFSS_TAMPERIO |
| One | of DL_LFSS_TAMPERIO_VALUE |
References LFSS_TAMPER_IO_PIN_MASK.
| __STATIC_INLINE void DL_LFSS_TamperIO_setHeartBeatInterval | ( | LFSS_Regs * | lfss, |
| DL_LFSS_HEARTBEAT_INTERVAL | interval | ||
| ) |
Sets the interval for the heart beat generator.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | interval | The interval of the heart beat generator. One of DL_LFSS_HEARTBEAT_INTERVAL |
References DL_Common_updateReg().
| __STATIC_INLINE DL_LFSS_HEARTBEAT_INTERVAL DL_LFSS_TamperIO_getHeartBeatInterval | ( | const LFSS_Regs * | lfss | ) |
Gets the interval for the heart beat generator.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| One | of DL_LFSS_HEARTBEAT_INTERVAL |
| __STATIC_INLINE void DL_LFSS_TamperIO_setHeartBeatPulseWidth | ( | LFSS_Regs * | lfss, |
| DL_LFSS_HEARTBEAT_PULSE_WIDTH | width | ||
| ) |
Sets the pulse width for the heart beat generator.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | width | The pulse width of the heart beat generator. One of DL_LFSS_HEARTBEAT_PULSE_WIDTH |
References DL_Common_updateReg().
| __STATIC_INLINE DL_LFSS_HEARTBEAT_PULSE_WIDTH DL_LFSS_TamperIO_getHeartBeatPulseWidth | ( | const LFSS_Regs * | lfss | ) |
Gets the pulse width for the heart beat generator.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| One | of DL_LFSS_HEARTBEAT_PULSE_WIDTH |
| __STATIC_INLINE void DL_LFSS_TamperIO_setHeartBeatMode | ( | LFSS_Regs * | lfss, |
| DL_LFSS_HEARTBEAT_MODE | mode | ||
| ) |
Sets the mode for the heart beat generator.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | mode | The mode of the heart beat generator. One of DL_LFSS_HEARTBEAT_MODE |
References DL_Common_updateReg().
| __STATIC_INLINE DL_LFSS_HEARTBEAT_MODE DL_LFSS_TamperIO_getHeartBeatMode | ( | const LFSS_Regs * | lfss | ) |
Gets the pulse mode for the heart beat generator.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| One | of DL_LFSS_HEARTBEAT_MODE |
| __STATIC_INLINE void DL_LFSS_TamperIO_enableWriteProtectLock | ( | LFSS_Regs * | lfss | ) |
Enable write protection lock of the TIOCTL and HEARTBEAT registers from accidental updates.
When enabled, the TIOCTL and HEARTBEAT registers will have read-only access.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| __STATIC_INLINE bool DL_LFSS_TamperIO_isWriteProtectLockEnabled | ( | const LFSS_Regs * | lfss | ) |
Checks if write protection lock of the TIOCTL and HEARTBEAT registers is enabled for the specified Tamper IO.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| true | Write protection lock is enabled |
| false | Write protection lock is disabled |
| __STATIC_INLINE void DL_LFSS_TamperIO_disableWriteProtectLock | ( | LFSS_Regs * | lfss | ) |
Disable write protection lock of the TIOCTL and HEARTBEAT registers.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| __STATIC_INLINE void DL_LFSS_IWDT_enableModule | ( | LFSS_Regs * | lfss | ) |
Enables the Watchdog module.
| lfss | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_LFSS_IWDT_disableModule | ( | LFSS_Regs * | lfss | ) |
Disables the Watchdog module.
| lfss | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE bool DL_LFSS_IWDT_isModuleEnabled | ( | const LFSS_Regs * | lfss | ) |
Returns if Watchdog module is on.
| lfss | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_LFSS_IWDT_enableFreeRun | ( | LFSS_Regs * | lfss | ) |
Enables the Watchdog free run control.
When enabled, the Watchdog will continue to free run and ignores the state of the CPU halted debug state
| lfss | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_LFSS_IWDT_disableFreeRun | ( | LFSS_Regs * | lfss | ) |
Disables the Watchdog free run control.
| lfss | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE bool DL_LFSS_IWDT_isFreeRunEnabled | ( | const LFSS_Regs * | lfss | ) |
Returns if Watchdog free run control is enabled.
| lfss | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_LFSS_IWDT_setClockDivider | ( | LFSS_Regs * | lfss, |
| DL_LFSS_IWDT_CLOCK_DIVIDE | divider | ||
| ) |
Sets the clock divider for the WDT module.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | divider | The WDT clock divider to set. One of DL_LFSS_IWDT_CLOCK_DIVIDE. |
References DL_Common_updateReg().
| __STATIC_INLINE DL_LFSS_IWDT_CLOCK_DIVIDE DL_LFSS_IWDT_getClockDivider | ( | const LFSS_Regs * | lfss | ) |
Gets the clock divider for the WDT module.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| One | of DL_LFSS_IWDT_CLOCK_DIVIDE |
| __STATIC_INLINE void DL_LFSS_IWDT_setTimerPeriod | ( | LFSS_Regs * | lfss, |
| DL_LFSS_IWDT_TIMER_PERIOD | period | ||
| ) |
Sets the timer period for the WDT module.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | period | The WDT timer period to set. One of DL_LFSS_IWDT_TIMER_PERIOD. |
References DL_Common_updateReg().
| __STATIC_INLINE DL_LFSS_IWDT_TIMER_PERIOD DL_LFSS_IWDT_getTimerPeriod | ( | const LFSS_Regs * | lfss | ) |
Get the timer period for the WDT module.
| [in] | lfss | Pointer to the register overlay for peripheral |
| One | of DL_LFSS_IWDT_TIMER_PERIOD |
| __STATIC_INLINE void DL_LFSS_IWDT_restart | ( | LFSS_Regs * | lfss | ) |
Restarts the Watchdog.
| [in] | lfss | Pointer to the register overlay for peripheral |
| __STATIC_INLINE bool DL_LFSS_IWDT_isWatchdogRunning | ( | const LFSS_Regs * | lfss | ) |
Returns if Watchdog module is running.
| lfss | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_LFSS_IWDT_enableWriteProtect | ( | LFSS_Regs * | lfss | ) |
Enable write protection lock of the WDTEN and WDTCTL registers from accidental updates.
When enabled, the WDTEN and WDTCTL registers will have read-only access.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| __STATIC_INLINE bool DL_LFSS_IWDT_isWriteProtectEnabled | ( | const LFSS_Regs * | lfss | ) |
Checks if write protection lock of the WDTEN and WDTCTL registers is enabled.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| true | Write protection lock is enabled |
| false | Write protection lock is disabled |
| __STATIC_INLINE void DL_LFSS_IWDT_disableWriteProtect | ( | LFSS_Regs * | lfss | ) |
Disable write protection lock of the WDTEN and WDTCTL registers.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| __STATIC_INLINE void DL_LFSS_writeScratchPadData32 | ( | LFSS_Regs * | lfss, |
| DL_LFSS_SCRATCHPAD_MEM_WORD | memIndex, | ||
| uint32_t | data | ||
| ) |
Write a word in scratch pad memory.
The VBAT scratch pad memory is register based memory that will retain data as long as VBAT is supplied. Refer to the device TRM for details on the specific size and implementation of the scratch pad memory.
This API wil write 32-bit data to the selected word in the scratch pad memory.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | memIndex | The specified scratch pad memory word to write to. One of DL_LFSS_SCRATCHPAD_MEM_WORD |
| [in] | data | The 32-bit data to write to the specified scratch pad memory word. Value in range of [0x0, 0xFFFFFFF]. |
| __STATIC_INLINE void DL_LFSS_writeScratchPadData8 | ( | LFSS_Regs * | lfss, |
| DL_LFSS_SCRATCHPAD_MEM_WORD | memIndex, | ||
| DL_LFSS_SCRATCHPAD_MEM_BYTE | byteIndex, | ||
| uint32_t | data | ||
| ) |
Write to a single byte in scratch pad memory.
The VBAT scratch pad memory is register based memory that will retain data as long as VBAT is supplied. Refer to the device TRM for details on the specific size and implementation of the scratch pad memory.
This API will write 8-bit data to the selected byte in the scratch pad memory. The byte to write to is given in context of the scratch pad memory word that contains that byte. For example, to write to BYTE5 of scratch pad memory, the user will call this API with parameters DL_LFSS_SCRATCHPAD_MEM_WORD_1 and DL_LFSS_SCRATCHPAD_MEM_BYTE_1.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | memIndex | The specified scratch pad memory word to write to. One of DL_LFSS_SCRATCHPAD_MEM_WORD |
| [in] | byteIndex | The specified scratch pad memory byte to write to. One of DL_LFSS_SCRATCHPAD_MEM_BYTE |
| [in] | data | The 8-bit data to write to the specified scratch pad memory byte. Value in range of [0x0, 0xFF]. |
References DL_Common_updateReg().
| __STATIC_INLINE uint32_t DL_LFSS_readScratchPadDataWord | ( | const LFSS_Regs * | lfss, |
| DL_LFSS_SCRATCHPAD_MEM_WORD | memIndex | ||
| ) |
Read the specified word in scratch pad memory.
The VBAT scratch pad memory is register based memory that will retain data as long as VBAT is supplied. Refer to the device TRM for details on the specific size and implementation of the scratch pad memory.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | memIndex | The specified scratch pad memory word to read. One of DL_LFSS_SCRATCHPAD_MEM_WORD |
| __STATIC_INLINE uint8_t DL_LFSS_readScratchPadDataByte | ( | LFSS_Regs * | lfss, |
| DL_LFSS_SCRATCHPAD_MEM_WORD | memIndex, | ||
| DL_LFSS_SCRATCHPAD_MEM_BYTE | byteIndex | ||
| ) |
Read the specified byte in scratch pad memory.
The VBAT scratch pad memory is register based memory that will retain data as long as VBAT is supplied. Refer to the device TRM for details on the specific size and implementation of the scratch pad memory.
This API will read 8-bit data from the selected byte in the scratch pad memory. The byte to read to is given in context of the scratch pad memory word that contains that byte. For example, to read BYTE5 of scratch pad memory, the user will call this API with parameters DL_LFSS_SCRATCHPAD_MEM_WORD_1 and DL_LFSS_SCRATCHPAD_MEM_BYTE_1.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | memIndex | The specified scratch pad memory word to read. One of DL_LFSS_SCRATCHPAD_MEM_WORD |
| [in] | byteIndex | The specified scratch pad memory byte to read. One of DL_LFSS_SCRATCHPAD_MEM_BYTE |
| __STATIC_INLINE void DL_LFSS_enableScratchPadWriteProtectByte | ( | LFSS_Regs * | lfss, |
| DL_LFSS_SCRATCHPAD_MEM_WORD | memIndex, | ||
| DL_LFSS_SCRATCHPAD_MEM_BYTE | byteIndex | ||
| ) |
Enable write protection lock of the specified byte in scratch pad memory from accidental updates.
When enabled, the specified byte in scratch pad memory will have read-only access.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | memIndex | The specified scratch pad memory word. One of DL_LFSS_SCRATCHPAD_MEM_WORD |
| [in] | byteIndex | The specified byte in scratch pad memory word to enable write protection for |
| __STATIC_INLINE bool DL_LFSS_isScratchPadWriteProtectByteEnabled | ( | LFSS_Regs * | lfss, |
| DL_LFSS_SCRATCHPAD_MEM_WORD | memIndex, | ||
| DL_LFSS_SCRATCHPAD_MEM_BYTE | byteIndex | ||
| ) |
Checks if write protection is enabled for the specified byte in scratch pad memory.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | memIndex | The specified scratch pad memory word. One of DL_LFSS_SCRATCHPAD_MEM_WORD |
| [in] | byteIndex | The specified scratch pad memory byte. One of DL_LFSS_SCRATCHPAD_MEM_BYTE |
| true | Write protection for the specified byte is enabled |
| false | Write protection for the specified byte is disabled |
| __STATIC_INLINE void DL_LFSS_disableScratchPadWriteProtectByte | ( | LFSS_Regs * | lfss, |
| DL_LFSS_SCRATCHPAD_MEM_WORD | memIndex, | ||
| DL_LFSS_SCRATCHPAD_MEM_BYTE | byteIndex | ||
| ) |
Disable write protection lock of the specified byte in scratch pad memory.
When disables, the specified byte in scratch pad memory will have read-only access.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | memIndex | The specified scratch pad memory word. One of DL_LFSS_SCRATCHPAD_MEM_WORD |
| [in] | byteIndex | The specified byte in scratch pad memory word to disable write protection for. One of DL_LFSS_SCRATCHPAD_MEM_BYTE |
| __STATIC_INLINE void DL_LFSS_enableScratchPadTamperEraseByte | ( | LFSS_Regs * | lfss, |
| DL_LFSS_SCRATCHPAD_MEM_WORD | memIndex, | ||
| DL_LFSS_SCRATCHPAD_MEM_BYTE | byteIndex | ||
| ) |
Enable tamper erase of the specified byte in scratch pad memory.
When enabled, the specified byte in scratch pad memory will be erased in the event of a tamper detect.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | memIndex | The specified scratch pad memory word. One of DL_LFSS_SCRATCHPAD_MEM_WORD |
| [in] | byteIndex | The specified byte in scratch pad memory word to enable tamper erase for. One of DL_LFSS_SCRATCHPAD_MEM_BYTE |
| __STATIC_INLINE bool DL_LFSS_isScratchPadTamperEraseByteEnabled | ( | LFSS_Regs * | lfss, |
| DL_LFSS_SCRATCHPAD_MEM_WORD | memIndex, | ||
| DL_LFSS_SCRATCHPAD_MEM_BYTE | byteIndex | ||
| ) |
Checks if tamper erase is enabled for the specified byte in scratch pad memory.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | memIndex | The specified scratch pad memory word. One of DL_LFSS_SCRATCHPAD_MEM_WORD |
| [in] | byteIndex | The specified byte in scratch pad memory byte. One of DL_LFSS_SCRATCHPAD_MEM_BYTE |
| true | Tamper erase for the specified byte is enabled |
| false | tamper erase for the specified byte is disabled |
| __STATIC_INLINE void DL_LFSS_disableScratchPadTamperEraseByte | ( | LFSS_Regs * | lfss, |
| DL_LFSS_SCRATCHPAD_MEM_WORD | memIndex, | ||
| DL_LFSS_SCRATCHPAD_MEM_BYTE | byteIndex | ||
| ) |
Disable tamper erase of the specified byte in scratch pad memory.
The specified byte in scratch pad memory will not be erased in the event of a tamper detect.
| [in] | lfss | Pointer to the register overlay for the LFSS peripheral |
| [in] | memIndex | The specified scratch pad memory word to write to. One of DL_LFSS_SCRATCHPAD_MEM_WORD |
| [in] | byteIndex | The specified byte in scratch pad memory word to disable tamper erase for. One of DL_LFSS_SCRATCHPAD_MEM_BYTE |
| __STATIC_INLINE void DL_LFSS_TamperIO_enableInterrupt | ( | LFSS_Regs * | lfss, |
| uint32_t | interruptMask | ||
| ) |
Enable LFSS Tamper Interrupts.
| [in] | lfss | Pointer to the register overlay for the LFSS Tamper peripheral |
| [in] | interruptMask | Bit mask of interrupts to enable. Logical OR of DL_LFSS_TAMPERIO_INTERRUPT. |
| __STATIC_INLINE void DL_LFSS_TamperIO_disableInterrupt | ( | LFSS_Regs * | lfss, |
| uint32_t | interruptMask | ||
| ) |
Disable LFSS Tamper interrupts.
| [in] | lfss | Pointer to the register overlay for the LFSS Tamper peripheral |
| [in] | interruptMask | Bit mask of interrupts to enable. Logical OR of DL_LFSS_TAMPERIO_INTERRUPT |
| __STATIC_INLINE uint32_t DL_LFSS_TamperIO_getEnabledInterrupts | ( | const LFSS_Regs * | lfss, |
| uint32_t | interruptMask | ||
| ) |
Check which LFSS Tamper interrupts are enabled.
| [in] | lfss | Pointer to the register overlay for the LFSS Tamper peripheral |
| [in] | interruptMask | Bit mask of interrupts to check. Logical OR of DL_LFSS_TAMPERIO_INTERRUPT |
| Logical | OR of DL_LFSS_TAMPERIO_INTERRUPT values |
| __STATIC_INLINE uint32_t DL_LFSS_TamperIO_getEnabledInterruptStatus | ( | const LFSS_Regs * | lfss, |
| uint32_t | interruptMask | ||
| ) |
Check interrupt flag of enabled LFSS Tamper interrupts.
Checks if any of the LFSS Tamper interrupts that were previously enabled are pending.
| [in] | lfss | Pointer to the register overlay for the LFSS Tamper peripheral |
| [in] | interruptMask | Bit mask of interrupts to check. Logical OR of DL_LFSS_TAMPERIO_INTERRUPT |
| Logical | OR of DL_LFSS_TAMPERIO_INTERRUPT values |
| __STATIC_INLINE uint32_t DL_LFSS_TamperIO_getRawInterruptStatus | ( | const LFSS_Regs * | lfss, |
| uint32_t | interruptMask | ||
| ) |
Check interrupt flag of any LFSS Tamper interrupt.
Checks if any of the LFSS Tamper interrupts are pending. Interrupts do not have to be previously enabled.
| [in] | lfss | Pointer to the register overlay for the LFSS Tamper peripheral |
| [in] | interruptMask | Bit mask of interrupts to check. Logical OR of DL_LFSS_TAMPERIO_INTERRUPT |
| Logical | OR of DL_LFSS_TAMPERIO_INTERRUPT values |
| __STATIC_INLINE DL_LFSS_TAMPERIO_IIDX DL_LFSS_TamperIO_getPendingInterrupt | ( | const LFSS_Regs * | lfss | ) |
Get highest priority pending LFSS interrupt.
Checks if any of the LFSS interrupts are pending. Interrupts do not have to be previously enabled.
| [in] | lfss | Pointer to the register overlay for the LFSS Tamper peripheral |
| One | of DL_LFSS_TAMPERIO_IIDX |
| __STATIC_INLINE void DL_LFSS_TamperIO_clearInterruptStatus | ( | LFSS_Regs * | lfss, |
| uint32_t | interruptMask | ||
| ) |
Clear pending LFSS Tamper interrupts.
| [in] | lfss | Pointer to the register overlay for the LFSS Tamper peripheral |
| [in] | interruptMask | Bit mask of interrupts to check. Logical OR of DL_LFSS_TAMPERIO_INTERRUPT |
| __STATIC_INLINE void DL_LFSS_TamperIO_enableEvent | ( | LFSS_Regs * | lfss, |
| uint32_t | eventMask | ||
| ) |
Enable LFSS Tamper event.
| [in] | lfss | Pointer to the register overlay for the peripheral |
| [in] | eventMask | Bit mask of interrupts to enable. Bitwise OR of DL_LFSS_TAMPERIO_EVENT. |
| __STATIC_INLINE void DL_LFSS_TamperIO_disableEvent | ( | LFSS_Regs * | lfss, |
| uint32_t | eventMask | ||
| ) |
Disable LFSS Tamper event.
| [in] | lfss | Pointer to the register overlay for the peripheral |
| [in] | eventMask | Bit mask of interrupts to enable. Bitwise OR of DL_LFSS_TAMPERIO_EVENT. |
| __STATIC_INLINE uint32_t DL_LFSS_TamperIO_getEnabledEvents | ( | const LFSS_Regs * | lfss, |
| uint32_t | eventMask | ||
| ) |
Check which LFSS Tamper events are enabled.
| [in] | lfss | Pointer to the register overlay for the peripheral |
| [in] | eventMask | Bit mask of interrupts to check. Bitwise OR of DL_LFSS_TAMPERIO_EVENT. |
| Bitwise | OR of DL_LFSS_TAMPERIO_EVENT values |
| __STATIC_INLINE uint32_t DL_LFSS_TamperIO_getEnabledEventStatus | ( | const LFSS_Regs * | lfss, |
| uint32_t | eventMask | ||
| ) |
Check event flag of enabled LFSS Tamper event.
Checks if any of the LFSS Tamper events that were previously enabled are pending.
| [in] | lfss | Pointer to the register overlay for the peripheral |
| [in] | eventMask | Bit mask of interrupts to check. Bitwise OR of DL_LFSS_TAMPERIO_EVENT. |
| Bitwise | OR of DL_LFSS_TAMPERIO_EVENT values |
| __STATIC_INLINE uint32_t DL_LFSS_TamperIO_getRawEventsStatus | ( | const LFSS_Regs * | lfss, |
| uint32_t | eventMask | ||
| ) |
Check interrupt flag of any LFSS Tamper event.
Checks if any events are pending. Events do not have to be previously enabled.
| [in] | lfss | Pointer to the register overlay for the peripheral |
| [in] | eventMask | Bit mask of interrupts to check. Bitwise OR of DL_LFSS_TAMPERIO_EVENT. |
| Bitwise | OR of DL_LFSS_TAMPERIO_EVENT values |
| __STATIC_INLINE void DL_LFSS_TamperIO_clearEventsStatus | ( | LFSS_Regs * | lfss, |
| uint32_t | eventMask | ||
| ) |
Clear pending LFSS Tamper events.
| [in] | lfss | Pointer to the register overlay for the peripheral |
| [in] | eventMask | Bit mask of interrupts to clear. Bitwise OR of DL_LFSS_TAMPERIO_EVENT. |
| __STATIC_INLINE void DL_LFSS_TamperIO_setPublisherChanID | ( | LFSS_Regs * | lfss, |
| uint8_t | chanID | ||
| ) |
Sets the LFSS Tamper event publisher channel ID.
| [in] | lfss | Pointer to the register overlay for the peripheral |
| [in] | chanID | Channel ID number. Valid range 0-15. If ChanID == 0 publisher is disconnected. |
| __STATIC_INLINE uint8_t DL_LFSS_TamperIO_getPublisherChanID | ( | const LFSS_Regs * | lfss | ) |
Gets the event publisher channel ID.
| [in] | lfss | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_LFSS_reset | ( | LFSS_Regs * | lfss | ) |
Requests a reset to the LFSS module.
| [in] | lfss | Pointer to the register overlay for the peripheral |