|
| __STATIC_INLINE void | DL_COMP_enablePower (COMP_Regs *comp) |
| | Enables power on the comparator module. More...
|
| |
| __STATIC_INLINE void | DL_COMP_disablePower (COMP_Regs *comp) |
| | Disables power on the comparator module. More...
|
| |
| __STATIC_INLINE bool | DL_COMP_isPowerEnabled (COMP_Regs *comp) |
| | Returns if power is on for the comparator module. More...
|
| |
| __STATIC_INLINE void | DL_COMP_reset (COMP_Regs *comp) |
| | Resets comparator peripheral. More...
|
| |
| __STATIC_INLINE bool | DL_COMP_isReset (COMP_Regs *comp) |
| | Returns if comparator was reset. More...
|
| |
| __STATIC_INLINE void | DL_COMP_init (COMP_Regs *comp, DL_COMP_Config *config) |
| | Initialize the COMP peripheral. More...
|
| |
| __STATIC_INLINE void | DL_COMP_refVoltageInit (COMP_Regs *comp, DL_COMP_RefVoltageConfig *config) |
| | Initialize the comparator reference voltage generator. More...
|
| |
| __STATIC_INLINE void | DL_COMP_enable (COMP_Regs *comp) |
| | Enable the comparator peripheral. More...
|
| |
| __STATIC_INLINE bool | DL_COMP_isEnabled (COMP_Regs *comp) |
| | Checks if the comparator peripheral is enabled. More...
|
| |
| __STATIC_INLINE void | DL_COMP_disable (COMP_Regs *comp) |
| | Disable the comparator peripheral. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setCompMode (COMP_Regs *comp, DL_COMP_MODE mode) |
| | Set the comparator operating mode. More...
|
| |
| __STATIC_INLINE DL_COMP_MODE | DL_COMP_getCompMode (COMP_Regs *comp) |
| | Get the mode the comparator is set to. More...
|
| |
| __STATIC_INLINE void | DL_COMP_enableExchangeInputs (COMP_Regs *comp) |
| | Enable exchange of the comparator inputs, and invert output. More...
|
| |
| __STATIC_INLINE bool | DL_COMP_isExchangeInputsEnabled (COMP_Regs *comp) |
| | Checks if the inputs are exchanged and if output is inverted. More...
|
| |
| __STATIC_INLINE void | DL_COMP_disableExchangeInputs (COMP_Regs *comp) |
| | Disable input exchange and invert output. More...
|
| |
| __STATIC_INLINE void | DL_COMP_enableShortInputTerminals (COMP_Regs *comp) |
| | Enable shorting of the comparator inputs. More...
|
| |
| __STATIC_INLINE bool | DL_COMP_isInputTerminalsShorted (COMP_Regs *comp) |
| | Checks if the comparator inputs are shorted. More...
|
| |
| __STATIC_INLINE void | DL_COMP_disableShortInputTerminals (COMP_Regs *comp) |
| | Disable shorting the comparator inputs. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setOutputInterruptEdge (COMP_Regs *comp, DL_COMP_OUTPUT_INT_EDGE edge) |
| | Set the interrupt edge for the comparator output. More...
|
| |
| __STATIC_INLINE DL_COMP_OUTPUT_INT_EDGE | DL_COMP_getOutputInterruptEdge (COMP_Regs *comp) |
| | Get the interrupt edge for the comparator output. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setHysteresis (COMP_Regs *comp, DL_COMP_HYSTERESIS voltage) |
| | Set the hysteresis voltage. More...
|
| |
| __STATIC_INLINE DL_COMP_HYSTERESIS | DL_COMP_getHysteresis (COMP_Regs *comp) |
| | Get the hysteresis voltage. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setOutputPolarity (COMP_Regs *comp, DL_COMP_POLARITY polarity) |
| | Set the output polarity. More...
|
| |
| __STATIC_INLINE DL_COMP_POLARITY | DL_COMP_getOutputPolarity (COMP_Regs *comp) |
| | Get the output polarity. More...
|
| |
| __STATIC_INLINE void | DL_COMP_enableOutputFilter (COMP_Regs *comp, DL_COMP_FILTER_DELAY delay) |
| | Enable output filter. More...
|
| |
| __STATIC_INLINE bool | DL_COMP_isOutputFilterEnabled (COMP_Regs *comp) |
| | Checks if output filter is enabled. More...
|
| |
| __STATIC_INLINE void | DL_COMP_disableOutputFilter (COMP_Regs *comp) |
| | Disable output filter using on-chip analog filter. More...
|
| |
| __STATIC_INLINE DL_COMP_FILTER_DELAY | DL_COMP_getOutputFilterDelay (COMP_Regs *comp) |
| | Get the output filter delay. More...
|
| |
| __STATIC_INLINE void | DL_COMP_enableWindowComparator (COMP_Regs *comp) |
| | Enable the window comparator. More...
|
| |
| __STATIC_INLINE bool | DL_COMP_isWindowComparatorEnabled (COMP_Regs *comp) |
| | Checks if the window comparator is enabled. More...
|
| |
| __STATIC_INLINE void | DL_COMP_disableWindowComparator (COMP_Regs *comp) |
| | Disable the window comparator. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setEnabledInputChannels (COMP_Regs *comp, DL_COMP_ENABLE_CHANNEL channels) |
| | Set the enabled channels for the comparator terminals. More...
|
| |
| __STATIC_INLINE DL_COMP_ENABLE_CHANNEL | DL_COMP_getEnabledInputChannels (COMP_Regs *comp) |
| | Get the enabled input channels. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setPositiveChannelInput (COMP_Regs *comp, DL_COMP_IPSEL_CHANNEL input) |
| | Set the channel input for the positive terminal. More...
|
| |
| __STATIC_INLINE DL_COMP_IPSEL_CHANNEL | DL_COMP_getPositiveChannelInput (COMP_Regs *comp) |
| | Get the channel input for the positive terminal. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setNegativeChannelInput (COMP_Regs *comp, DL_COMP_IMSEL_CHANNEL input) |
| | Set the channel input for the negative terminal. More...
|
| |
| __STATIC_INLINE DL_COMP_IMSEL_CHANNEL | DL_COMP_getNegativeChannelInput (COMP_Regs *comp) |
| | Get the channel input for the negative terminal. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setReferenceMode (COMP_Regs *comp, DL_COMP_REF_MODE mode) |
| | Set the mode for the reference voltage. More...
|
| |
| __STATIC_INLINE DL_COMP_REF_MODE | DL_COMP_getReferenceMode (COMP_Regs *comp) |
| | Get the mode for the reference voltage. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setReferenceSource (COMP_Regs *comp, DL_COMP_REF_SOURCE source) |
| | Set the reference source for the comparator. More...
|
| |
| __STATIC_INLINE DL_COMP_REF_SOURCE | DL_COMP_getReferenceSource (COMP_Regs *comp) |
| | Get the reference source for the comparator. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setReferenceCompTerminal (COMP_Regs *comp, DL_COMP_REF_TERMINAL_SELECT terminal) |
| | Set the comparator terminal the reference voltage is applied to. More...
|
| |
| __STATIC_INLINE DL_COMP_REF_TERMINAL_SELECT | DL_COMP_getReferenceCompTerminal (COMP_Regs *comp) |
| | Get the comparator terminal the reference voltage is applied to. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setBlankingSource (COMP_Regs *comp, DL_COMP_BLANKING_SOURCE source) |
| | Set the blanking source for the comparator. More...
|
| |
| __STATIC_INLINE DL_COMP_BLANKING_SOURCE | DL_COMP_getBlankingSource (COMP_Regs *comp) |
| | Get the blanking source for the comparator. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setDACControl (COMP_Regs *comp, DL_COMP_DAC_CONTROL control) |
| | Select the source for COMP control. More...
|
| |
| __STATIC_INLINE DL_COMP_DAC_CONTROL | DL_COMP_getDACControl (COMP_Regs *comp) |
| | Get what controls the input to the COMP. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setDACInput (COMP_Regs *comp, DL_COMP_DAC_INPUT input) |
| | Set whether DACCODE0 or DACCODE1 is the input to the COMP. More...
|
| |
| __STATIC_INLINE DL_COMP_DAC_INPUT | DL_COMP_getDACInput (COMP_Regs *comp) |
| | Get whether DACCODE0 or DACCODE1 is the input to the COMP. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setDACCode0 (COMP_Regs *comp, uint32_t value) |
| | Set the 8-bit COMP input code through DACCODE0. More...
|
| |
| __STATIC_INLINE uint32_t | DL_COMP_getDACCode0 (COMP_Regs *comp) |
| | Get the code value of DACCODE0. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setDACCode1 (COMP_Regs *comp, uint32_t value) |
| | Set the 8-bit COMP input code through DACCODE1. More...
|
| |
| __STATIC_INLINE uint32_t | DL_COMP_getDACCode1 (COMP_Regs *comp) |
| | Get the code value of DACCODE1. More...
|
| |
| __STATIC_INLINE DL_COMP_OUTPUT | DL_COMP_getComparatorOutput (COMP_Regs *comp) |
| | Gets the comparator output. More...
|
| |
| __STATIC_INLINE void | DL_COMP_enableSampledMode (COMP_Regs *comp) |
| | Enable sampled mode of the comparator. More...
|
| |
| __STATIC_INLINE bool | DL_COMP_isSampledModeEnabled (COMP_Regs *comp) |
| | Checks if sampled mode is enabled. More...
|
| |
| __STATIC_INLINE void | DL_COMP_disableSampledMode (COMP_Regs *comp) |
| | Disable sampled mode. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setSubscriberChanID (COMP_Regs *comp, DL_COMP_SUBSCRIBER_INDEX index, uint8_t chanID) |
| | Sets the event subscriber channel id. More...
|
| |
| __STATIC_INLINE uint8_t | DL_COMP_getSubscriberChanID (COMP_Regs *comp, DL_COMP_SUBSCRIBER_INDEX index) |
| | Gets the event subscriber channel id. More...
|
| |
| __STATIC_INLINE void | DL_COMP_enableInterrupt (COMP_Regs *comp, uint32_t interruptMask) |
| | Enable COMP interrupts. More...
|
| |
| __STATIC_INLINE void | DL_COMP_disableInterrupt (COMP_Regs *comp, uint32_t interruptMask) |
| | Disable COMP interrupts. More...
|
| |
| __STATIC_INLINE uint32_t | DL_COMP_getEnabledInterrupts (COMP_Regs *comp, uint32_t interruptMask) |
| | Check which COMP interrupts are enabled. More...
|
| |
| __STATIC_INLINE uint32_t | DL_COMP_getEnabledInterruptStatus (COMP_Regs *comp, uint32_t interruptMask) |
| | Check interrupt flag of enabled COMP interrupts. More...
|
| |
| __STATIC_INLINE uint32_t | DL_COMP_getRawInterruptStatus (COMP_Regs *comp, uint32_t interruptMask) |
| | Check interrupt flag of any COMP interrupt. More...
|
| |
| __STATIC_INLINE DL_COMP_IIDX | DL_COMP_getPendingInterrupt (COMP_Regs *comp) |
| | Get highest priority pending COMP interrupt. More...
|
| |
| __STATIC_INLINE void | DL_COMP_clearInterruptStatus (COMP_Regs *comp, uint32_t interruptMask) |
| | Clear pending COMP interrupts. More...
|
| |
| __STATIC_INLINE void | DL_COMP_setPublisherChanID (COMP_Regs *comp, uint8_t chanID) |
| | Sets the COMP event publisher channel ID. More...
|
| |
| __STATIC_INLINE uint8_t | DL_COMP_getPublisherChanID (COMP_Regs *comp) |
| | Gets the event publisher channel ID. More...
|
| |
| __STATIC_INLINE void | DL_COMP_enableEvent (COMP_Regs *comp, uint32_t eventMask) |
| | Enable COMP event. More...
|
| |
| __STATIC_INLINE void | DL_COMP_disableEvent (COMP_Regs *comp, uint32_t eventMask) |
| | Disable COMP event. More...
|
| |
| __STATIC_INLINE uint32_t | DL_COMP_getEnabledEvents (COMP_Regs *comp, uint32_t eventMask) |
| | Check which COMP events are enabled. More...
|
| |
| __STATIC_INLINE uint32_t | DL_COMP_getEnabledEventStatus (COMP_Regs *comp, uint32_t eventMask) |
| | Check event flag of enabled COMP event. More...
|
| |
| __STATIC_INLINE uint32_t | DL_COMP_getRawEventsStatus (COMP_Regs *comp, uint32_t eventMask) |
| | Check interrupt flag of any COMP event. More...
|
| |
| __STATIC_INLINE void | DL_COMP_clearEventsStatus (COMP_Regs *comp, uint32_t eventMask) |
| | Clear pending COMP events. More...
|
| |