MSP432E4 DriverLib API Guide  1.11.00.03
Macros | Functions
comp.h File Reference
#include <stdint.h>
#include <stdbool.h>
Include dependency graph for comp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COMP_TRIG_NONE   0x00000000
 
#define COMP_TRIG_HIGH   0x00000880
 
#define COMP_TRIG_LOW   0x00000800
 
#define COMP_TRIG_FALL   0x00000820
 
#define COMP_TRIG_RISE   0x00000840
 
#define COMP_TRIG_BOTH   0x00000860
 
#define COMP_INT_HIGH   0x00000010
 
#define COMP_INT_LOW   0x00000000
 
#define COMP_INT_FALL   0x00000004
 
#define COMP_INT_RISE   0x00000008
 
#define COMP_INT_BOTH   0x0000000C
 
#define COMP_ASRCP_PIN   0x00000000
 
#define COMP_ASRCP_PIN0   0x00000200
 
#define COMP_ASRCP_REF   0x00000400
 
#define COMP_OUTPUT_NORMAL   0x00000000
 
#define COMP_OUTPUT_INVERT   0x00000002
 
#define COMP_REF_OFF   0x00000000
 
#define COMP_REF_0V   0x00000300
 
#define COMP_REF_0_1375V   0x00000301
 
#define COMP_REF_0_275V   0x00000302
 
#define COMP_REF_0_4125V   0x00000303
 
#define COMP_REF_0_55V   0x00000304
 
#define COMP_REF_0_6875V   0x00000305
 
#define COMP_REF_0_825V   0x00000306
 
#define COMP_REF_0_928125V   0x00000201
 
#define COMP_REF_0_9625V   0x00000307
 
#define COMP_REF_1_03125V   0x00000202
 
#define COMP_REF_1_134375V   0x00000203
 
#define COMP_REF_1_1V   0x00000308
 
#define COMP_REF_1_2375V   0x00000309
 
#define COMP_REF_1_340625V   0x00000205
 
#define COMP_REF_1_375V   0x0000030A
 
#define COMP_REF_1_44375V   0x00000206
 
#define COMP_REF_1_5125V   0x0000030B
 
#define COMP_REF_1_546875V   0x00000207
 
#define COMP_REF_1_65V   0x0000030C
 
#define COMP_REF_1_753125V   0x00000209
 
#define COMP_REF_1_7875V   0x0000030D
 
#define COMP_REF_1_85625V   0x0000020A
 
#define COMP_REF_1_925V   0x0000030E
 
#define COMP_REF_1_959375V   0x0000020B
 
#define COMP_REF_2_0625V   0x0000030F
 
#define COMP_REF_2_165625V   0x0000020D
 
#define COMP_REF_2_26875V   0x0000020E
 
#define COMP_REF_2_371875V   0x0000020F
 

Functions

void ComparatorConfigure (uint32_t ui32Base, uint32_t ui32Comp, uint32_t ui32Config)
 
void ComparatorRefSet (uint32_t ui32Base, uint32_t ui32Ref)
 
bool ComparatorValueGet (uint32_t ui32Base, uint32_t ui32Comp)
 
void ComparatorIntRegister (uint32_t ui32Base, uint32_t ui32Comp, void(*pfnHandler)(void))
 
void ComparatorIntUnregister (uint32_t ui32Base, uint32_t ui32Comp)
 
void ComparatorIntEnable (uint32_t ui32Base, uint32_t ui32Comp)
 
void ComparatorIntDisable (uint32_t ui32Base, uint32_t ui32Comp)
 
bool ComparatorIntStatus (uint32_t ui32Base, uint32_t ui32Comp, bool bMasked)
 
void ComparatorIntClear (uint32_t ui32Base, uint32_t ui32Comp)
 

Macro Definition Documentation

§ COMP_TRIG_NONE

#define COMP_TRIG_NONE   0x00000000

§ COMP_TRIG_HIGH

#define COMP_TRIG_HIGH   0x00000880

§ COMP_TRIG_LOW

#define COMP_TRIG_LOW   0x00000800

§ COMP_TRIG_FALL

#define COMP_TRIG_FALL   0x00000820

§ COMP_TRIG_RISE

#define COMP_TRIG_RISE   0x00000840

§ COMP_TRIG_BOTH

#define COMP_TRIG_BOTH   0x00000860

§ COMP_INT_HIGH

#define COMP_INT_HIGH   0x00000010

§ COMP_INT_LOW

#define COMP_INT_LOW   0x00000000

§ COMP_INT_FALL

#define COMP_INT_FALL   0x00000004

§ COMP_INT_RISE

#define COMP_INT_RISE   0x00000008

§ COMP_INT_BOTH

#define COMP_INT_BOTH   0x0000000C

§ COMP_ASRCP_PIN

#define COMP_ASRCP_PIN   0x00000000

§ COMP_ASRCP_PIN0

#define COMP_ASRCP_PIN0   0x00000200

§ COMP_ASRCP_REF

#define COMP_ASRCP_REF   0x00000400

§ COMP_OUTPUT_NORMAL

#define COMP_OUTPUT_NORMAL   0x00000000

§ COMP_OUTPUT_INVERT

#define COMP_OUTPUT_INVERT   0x00000002

§ COMP_REF_OFF

#define COMP_REF_OFF   0x00000000

§ COMP_REF_0V

#define COMP_REF_0V   0x00000300

§ COMP_REF_0_1375V

#define COMP_REF_0_1375V   0x00000301

§ COMP_REF_0_275V

#define COMP_REF_0_275V   0x00000302

§ COMP_REF_0_4125V

#define COMP_REF_0_4125V   0x00000303

§ COMP_REF_0_55V

#define COMP_REF_0_55V   0x00000304

§ COMP_REF_0_6875V

#define COMP_REF_0_6875V   0x00000305

§ COMP_REF_0_825V

#define COMP_REF_0_825V   0x00000306

§ COMP_REF_0_928125V

#define COMP_REF_0_928125V   0x00000201

§ COMP_REF_0_9625V

#define COMP_REF_0_9625V   0x00000307

§ COMP_REF_1_03125V

#define COMP_REF_1_03125V   0x00000202

§ COMP_REF_1_134375V

#define COMP_REF_1_134375V   0x00000203

§ COMP_REF_1_1V

#define COMP_REF_1_1V   0x00000308

§ COMP_REF_1_2375V

#define COMP_REF_1_2375V   0x00000309

§ COMP_REF_1_340625V

#define COMP_REF_1_340625V   0x00000205

§ COMP_REF_1_375V

#define COMP_REF_1_375V   0x0000030A

§ COMP_REF_1_44375V

#define COMP_REF_1_44375V   0x00000206

§ COMP_REF_1_5125V

#define COMP_REF_1_5125V   0x0000030B

§ COMP_REF_1_546875V

#define COMP_REF_1_546875V   0x00000207

§ COMP_REF_1_65V

#define COMP_REF_1_65V   0x0000030C

§ COMP_REF_1_753125V

#define COMP_REF_1_753125V   0x00000209

§ COMP_REF_1_7875V

#define COMP_REF_1_7875V   0x0000030D

§ COMP_REF_1_85625V

#define COMP_REF_1_85625V   0x0000020A

§ COMP_REF_1_925V

#define COMP_REF_1_925V   0x0000030E

§ COMP_REF_1_959375V

#define COMP_REF_1_959375V   0x0000020B

§ COMP_REF_2_0625V

#define COMP_REF_2_0625V   0x0000030F

§ COMP_REF_2_165625V

#define COMP_REF_2_165625V   0x0000020D

§ COMP_REF_2_26875V

#define COMP_REF_2_26875V   0x0000020E

§ COMP_REF_2_371875V

#define COMP_REF_2_371875V   0x0000020F
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale