![]() |
![]() |
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <ti/drivers/dpl/HwiP.h>
#include <ti/drivers/gpio/GPIOMSP432E4.h>
#include <ti/devices/msp432e4/driverlib/comp.h>
Go to the source code of this file.
Data Structures | |
struct | ComparatorMSP432E4_HWAttrs |
ComparatorMSP432E4 Hardware attributes. More... | |
struct | ComparatorMSP432E4_Object |
ComparatorMSP432E4 Object. More... | |
Macros | |
#define | ComparatorMSP432E4_EVENT_RISING (Comparator_EVENT_RESERVED + 1) |
#define | ComparatorMSP432E4_EVENT_FALLING (Comparator_EVENT_RESERVED + 2) |
#define | ComparatorMSP432E4_EVENT_EDGE (Comparator_EVENT_RESERVED + 3) |
#define | ComparatorMSP432E4_EVENT_HIGH (Comparator_EVENT_RESERVED + 4) |
#define | ComparatorMSP432E4_EVENT_LOW (Comparator_EVENT_RESERVED + 5) |
#define | COMP0_OUTPUT_PIN_PD0 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTD, 0, 0) |
#define | COMP0_OUTPUT_PIN_PL2 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTL, 2, 0) |
#define | COMP1_OUTPUT_PIN_PD1 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTD, 1, 0) |
#define | COMP1_OUTPUT_PIN_PL3 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTL, 3, 0) |
#define | COMP2_OUTPUT_PIN_PD2 GPIOMSP432E4_pinConfigMask(GPIOMSP432E4_PORTD, 2, 0) |
#define | COMP_NO_OUTPUT (0) |
Enumerations | |
enum | ComparatorMSP432E4_ReferenceLevel { ComparatorMSP432E4_REF_OFF = COMP_REF_OFF, ComparatorMSP432E4_REF_0V = COMP_REF_0V, ComparatorMSP432E4_REF_0_1375V = COMP_REF_0_1375V, ComparatorMSP432E4_REF_0_275V = COMP_REF_0_275V, ComparatorMSP432E4_REF_0_4125V = COMP_REF_0_4125V, ComparatorMSP432E4_REF_0_55V = COMP_REF_0_55V, ComparatorMSP432E4_REF_0_6875V = COMP_REF_0_6875V, ComparatorMSP432E4_REF_0_825V = COMP_REF_0_825V, ComparatorMSP432E4_REF_0_928125V = COMP_REF_0_928125V, ComparatorMSP432E4_REF_0_9625V = COMP_REF_0_9625V, ComparatorMSP432E4_REF_1_03125V = COMP_REF_1_03125V, ComparatorMSP432E4_REF_1_134375V = COMP_REF_1_134375V, ComparatorMSP432E4_REF_1_1V = COMP_REF_1_1V, ComparatorMSP432E4_REF_1_2375V = COMP_REF_1_2375V, ComparatorMSP432E4_REF_1_340625V = COMP_REF_1_340625V, ComparatorMSP432E4_REF_1_375V = COMP_REF_1_375V, ComparatorMSP432E4_REF_1_44375V = COMP_REF_1_44375V, ComparatorMSP432E4_REF_1_5125V = COMP_REF_1_5125V, ComparatorMSP432E4_REF_1_546875V = COMP_REF_1_546875V, ComparatorMSP432E4_REF_1_65V = COMP_REF_1_65V, ComparatorMSP432E4_REF_1_753125V = COMP_REF_1_753125V, ComparatorMSP432E4_REF_1_7875V = COMP_REF_1_7875V, ComparatorMSP432E4_REF_1_85625V = COMP_REF_1_85625V, ComparatorMSP432E4_REF_1_925V = COMP_REF_1_925V, ComparatorMSP432E4_REF_1_959375V = COMP_REF_1_959375V, ComparatorMSP432E4_REF_2_0625V = COMP_REF_2_0625V, ComparatorMSP432E4_REF_2_165625V = COMP_REF_2_165625V, ComparatorMSP432E4_REF_2_26875V = COMP_REF_2_26875V, ComparatorMSP432E4_REF_2_371875V = COMP_REF_2_371875V } |
ComparatorMSP432E4 Reference Level These fields are used by MSP432E4 HWAttrs to specify the voltage output of the shared internal reference. More... | |
enum | ComparatorMSP432E4_ADCTriggerLevel { ComparatorMSP432E4_TRIG_NONE = COMP_TRIG_NONE, ComparatorMSP432E4_TRIG_HIGH = COMP_TRIG_HIGH, ComparatorMSP432E4_TRIG_LOW = COMP_TRIG_LOW, ComparatorMSP432E4_TRIG_RISE = COMP_TRIG_RISE, ComparatorMSP432E4_TRIG_FALL = COMP_TRIG_FALL, ComparatorMSP432E4_TRIG_BOTH = COMP_TRIG_BOTH } |
ComparatorMSP432E4 Trigger Level These fields are used by ComparatorMSP432E4_HWAttrs to specify the comparator output conditions to trigger an ADC conversion on each device. Check the ADC section of the TRM for a full description of ADC trigger options. More... | |
enum | ComparatorMSP432E4_PositiveInputChannel { ComparatorMSP432E4_INPUT_PIN = COMP_ASRCP_PIN, ComparatorMSP432E4_INPUT_PIN0 = COMP_ASRCP_PIN0, ComparatorMSP432E4_INPUT_REF = COMP_ASRCP_REF } |
ComparatorMSP432E4 Positive Input Channel These fields are intended to serve as the options for the Comparator.h API Positive Terminal inputs. More... | |
Variables | |
const Comparator_FxnTable | ComparatorMSP432E4_fxnTable |
ComparatorMSP432E4 Reference Level These fields are used by MSP432E4 HWAttrs to specify the voltage output of the shared internal reference.
ComparatorMSP432E4 Trigger Level These fields are used by ComparatorMSP432E4_HWAttrs to specify the comparator output conditions to trigger an ADC conversion on each device. Check the ADC section of the TRM for a full description of ADC trigger options.
Enumerator | |
---|---|
ComparatorMSP432E4_TRIG_NONE | |
ComparatorMSP432E4_TRIG_HIGH | |
ComparatorMSP432E4_TRIG_LOW | |
ComparatorMSP432E4_TRIG_RISE | |
ComparatorMSP432E4_TRIG_FALL | |
ComparatorMSP432E4_TRIG_BOTH |
ComparatorMSP432E4 Positive Input Channel These fields are intended to serve as the options for the Comparator.h API Positive Terminal inputs.
The comparators on the MSP432E4 support three positive input sources: the module-specific input pin, all sharing the input pin of Comparator 0, and using a (shared) internal reference.
Enumerator | |
---|---|
ComparatorMSP432E4_INPUT_PIN | |
ComparatorMSP432E4_INPUT_PIN0 | |
ComparatorMSP432E4_INPUT_REF |
const Comparator_FxnTable ComparatorMSP432E4_fxnTable |