|  |  | 
#include <stdint.h>#include <stdbool.h>#include <ti/devices/msp432p4xx/inc/msp.h>Go to the source code of this file.
| Data Structures | |
| struct | _COMP_E_Config | 
| Type definition for _COMP_E_Config structure.  More... | |
| Macros | |
| #define | COMP_E_CMSIS(x) ((COMP_E_Type *) x) | 
| #define | COMP_E_FILTEROUTPUT_OFF 0x00 | 
| #define | COMP_E_FILTEROUTPUT_DLYLVL1 (COMP_E_CTL1_F + COMP_E_CTL1_FDLY_0) | 
| #define | COMP_E_FILTEROUTPUT_DLYLVL2 (COMP_E_CTL1_F + COMP_E_CTL1_FDLY_1) | 
| #define | COMP_E_FILTEROUTPUT_DLYLVL3 (COMP_E_CTL1_F + COMP_E_CTL1_FDLY_2) | 
| #define | COMP_E_FILTEROUTPUT_DLYLVL4 (COMP_E_CTL1_F + COMP_E_CTL1_FDLY_3) | 
| #define | COMP_E_INPUT0 (0x01) | 
| #define | COMP_E_INPUT1 (0x02) | 
| #define | COMP_E_INPUT2 (0x04) | 
| #define | COMP_E_INPUT3 (0x08) | 
| #define | COMP_E_INPUT4 (0x10) | 
| #define | COMP_E_INPUT5 (0x20) | 
| #define | COMP_E_INPUT6 (0x40) | 
| #define | COMP_E_INPUT7 (0x80) | 
| #define | COMP_E_INPUT8 (0x100) | 
| #define | COMP_E_INPUT9 (0x200) | 
| #define | COMP_E_INPUT10 (0x400) | 
| #define | COMP_E_INPUT11 (0x800) | 
| #define | COMP_E_INPUT12 (0x1000) | 
| #define | COMP_E_INPUT13 (0x2000) | 
| #define | COMP_E_INPUT14 (0x4000) | 
| #define | COMP_E_INPUT15 (0x8000) | 
| #define | COMP_E_VREF (0x9F) | 
| #define | COMP_E_NORMALOUTPUTPOLARITY (!(COMP_E_CTL1_OUTPOL)) | 
| #define | COMP_E_INVERTEDOUTPUTPOLARITY (COMP_E_CTL1_OUTPOL) | 
| #define | COMP_E_REFERENCE_AMPLIFIER_DISABLED (COMP_E_CTL2_CEREFL_0) | 
| #define | COMP_E_VREFBASE1_2V (COMP_E_CTL2_CEREFL_1) | 
| #define | COMP_E_VREFBASE2_0V (COMP_E_CTL2_CEREFL_2) | 
| #define | COMP_E_VREFBASE2_5V (COMP_E_CTL2_CEREFL_3) | 
| #define | COMP_E_ACCURACY_STATIC (!COMP_E_CTL2_REFACC) | 
| #define | COMP_E_ACCURACY_CLOCKED (COMP_E_CTL2_REFACC) | 
| #define | COMP_E_HIGH_SPEED_MODE (COMP_E_CTL1_PWRMD_0) | 
| #define | COMP_E_NORMAL_MODE (COMP_E_CTL1_PWRMD_1) | 
| #define | COMP_E_ULTRA_LOW_POWER_MODE (COMP_E_CTL1_PWRMD_2) | 
| #define | COMP_E_OUTPUT_INTERRUPT (COMP_E_INT_IE) | 
| #define | COMP_E_INVERTED_POLARITY_INTERRUPT (COMP_E_INT_IIE) | 
| #define | COMP_E_READY_INTERRUPT (COMP_E_INT_RDYIE) | 
| #define | COMP_E_OUTPUT_INTERRUPT_FLAG (COMP_E_INT_IFG) | 
| #define | COMP_E_INTERRUPT_FLAG_INVERTED_POLARITY (COMP_E_INT_IIFG) | 
| #define | COMP_E_INTERRUPT_FLAG_READY (COMP_E_INT_RDYIFG) | 
| #define | COMP_E_FALLINGEDGE (COMP_E_CTL1_IES) | 
| #define | COMP_E_RISINGEDGE (!(COMP_E_CTL1_IES)) | 
| #define | COMP_E_LOW (0x0) | 
| #define | COMP_E_HIGH (COMP_E_CTL1_OUT) | 
| #define | COMP_E_enable(a) COMP_E_enableModule(a) | 
| #define | COMP_E_disable(a) COMP_E_disableModule(a) | 
| #define | COMP_E_IOSwap(a) COMP_E_swapIO(a) | 
| #define | COMP_E_interruptToggleEdgeDirection(a) COMP_E_toggleInterruptEdgeDirection(a) | 
| #define | COMP_E_clearInterrupt(a, b) COMP_E_clearInterruptFlag(a,b) | 
| Typedefs | |
| typedef struct _COMP_E_Config | COMP_E_Config | 
| Functions | |
| bool | COMP_E_initModule (uint32_t comparator, const COMP_E_Config *config) | 
| void | COMP_E_setReferenceVoltage (uint32_t comparator, uint_fast16_t supplyVoltageReferenceBase, uint_fast16_t lowerLimitSupplyVoltageFractionOf32, uint_fast16_t upperLimitSupplyVoltageFractionOf32) | 
| void | COMP_E_setReferenceAccuracy (uint32_t comparator, uint_fast16_t referenceAccuracy) | 
| void | COMP_E_setPowerMode (uint32_t comparator, uint_fast16_t powerMode) | 
| void | COMP_E_enableModule (uint32_t comparator) | 
| void | COMP_E_disableModule (uint32_t comparator) | 
| void | COMP_E_shortInputs (uint32_t comparator) | 
| void | COMP_E_unshortInputs (uint32_t comparator) | 
| void | COMP_E_disableInputBuffer (uint32_t comparator, uint_fast16_t inputPort) | 
| void | COMP_E_enableInputBuffer (uint32_t comparator, uint_fast16_t inputPort) | 
| void | COMP_E_swapIO (uint32_t comparator) | 
| uint8_t | COMP_E_outputValue (uint32_t comparator) | 
| void | COMP_E_enableInterrupt (uint32_t comparator, uint_fast16_t mask) | 
| void | COMP_E_disableInterrupt (uint32_t comparator, uint_fast16_t mask) | 
| void | COMP_E_clearInterruptFlag (uint32_t comparator, uint_fast16_t mask) | 
| uint_fast16_t | COMP_E_getInterruptStatus (uint32_t comparator) | 
| uint_fast16_t | COMP_E_getEnabledInterruptStatus (uint32_t comparator) | 
| void | COMP_E_setInterruptEdgeDirection (uint32_t comparator, uint_fast8_t edgeDirection) | 
| void | COMP_E_toggleInterruptEdgeDirection (uint32_t comparator) | 
| void | COMP_E_registerInterrupt (uint32_t comparator, void(*intHandler)(void)) | 
| void | COMP_E_unregisterInterrupt (uint32_t comparator) |