adc14.h
Go to the documentation of this file.
1 /* --COPYRIGHT--,BSD
2  * Copyright (c) 2017, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  *
16  * * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  * --/COPYRIGHT--*/
32 #ifndef ADC14_H_
33 #define ADC14_H_
34 
35 //*****************************************************************************
36 //
40 //
41 //*****************************************************************************
42 
43 //*****************************************************************************
44 //
45 // If building with a C++ compiler, make all of the definitions in this header
46 // have a C binding.
47 //
48 //*****************************************************************************
49 #ifdef __cplusplus
50 extern "C"
51 {
52 #endif
53 
54 #include <stdint.h>
55 #include <stdbool.h>
56 #include <ti/devices/msp432p4xx/inc/msp.h>
57 
58 //*****************************************************************************
59 //
60 // Control specific variables
61 //
62 //*****************************************************************************
63 
64 //*****************************************************************************
65 //
66 //The following are values that can be passed to ADC14_initModule
67 //
68 //*****************************************************************************
69 #define ADC_CLOCKSOURCE_ADCOSC (ADC14_CTL0_SSEL_0)
70 #define ADC_CLOCKSOURCE_SYSOSC (ADC14_CTL0_SSEL_1)
71 #define ADC_CLOCKSOURCE_ACLK (ADC14_CTL0_SSEL_2)
72 #define ADC_CLOCKSOURCE_MCLK (ADC14_CTL0_SSEL_3)
73 #define ADC_CLOCKSOURCE_SMCLK (ADC14_CTL0_SSEL_4)
74 #define ADC_CLOCKSOURCE_HSMCLK (ADC14_CTL0_SSEL_5)
75 
76 #define ADC_PREDIVIDER_1 (ADC14_CTL0_PDIV_0)
77 #define ADC_PREDIVIDER_4 (ADC14_CTL0_PDIV_1)
78 #define ADC_PREDIVIDER_32 (ADC14_CTL0_PDIV_2)
79 #define ADC_PREDIVIDER_64 (ADC14_CTL0_PDIV_3)
80 
81 #define ADC_DIVIDER_1 (ADC14_CTL0_DIV_0)
82 #define ADC_DIVIDER_2 (ADC14_CTL0_DIV_1)
83 #define ADC_DIVIDER_3 (ADC14_CTL0_DIV_2)
84 #define ADC_DIVIDER_4 (ADC14_CTL0_DIV_3)
85 #define ADC_DIVIDER_5 (ADC14_CTL0_DIV_4)
86 #define ADC_DIVIDER_6 (ADC14_CTL0_DIV_5)
87 #define ADC_DIVIDER_7 (ADC14_CTL0_DIV_6)
88 #define ADC_DIVIDER_8 (ADC14_CTL0_DIV_7)
89 
90 #define ADC_MAPINTCH3 (ADC14_CTL1_CH3MAP)
91 #define ADC_MAPINTCH2 (ADC14_CTL1_CH2MAP)
92 #define ADC_MAPINTCH1 (ADC14_CTL1_CH1MAP)
93 #define ADC_MAPINTCH0 (ADC14_CTL1_CH0MAP)
94 #define ADC_TEMPSENSEMAP (ADC14_CTL1_TCMAP)
95 #define ADC_BATTMAP (ADC14_CTL1_BATMAP)
96 #define ADC_NOROUTE 0
97 
98 #define ADC_8BIT ADC14_CTL1_RES_0
99 #define ADC_10BIT ADC14_CTL1_RES_1
100 #define ADC_12BIT ADC14_CTL1_RES_2
101 #define ADC_14BIT ADC14_CTL1_RES_3
102 
103 #define ADC_TRIGGER_ADCSC ADC14_CTL0_SHS_0
104 #define ADC_TRIGGER_SOURCE1 ADC14_CTL0_SHS_1
105 #define ADC_TRIGGER_SOURCE2 ADC14_CTL0_SHS_2
106 #define ADC_TRIGGER_SOURCE3 ADC14_CTL0_SHS_3
107 #define ADC_TRIGGER_SOURCE4 ADC14_CTL0_SHS_4
108 #define ADC_TRIGGER_SOURCE5 ADC14_CTL0_SHS_5
109 #define ADC_TRIGGER_SOURCE6 ADC14_CTL0_SHS_6
110 #define ADC_TRIGGER_SOURCE7 ADC14_CTL0_SHS_7
111 
112 #define ADC_PULSE_WIDTH_4 ADC14_CTL0_SHT1_0
113 #define ADC_PULSE_WIDTH_8 ADC14_CTL0_SHT1_1
114 #define ADC_PULSE_WIDTH_16 ADC14_CTL0_SHT1_2
115 #define ADC_PULSE_WIDTH_32 ADC14_CTL0_SHT1_3
116 #define ADC_PULSE_WIDTH_64 ADC14_CTL0_SHT1_4
117 #define ADC_PULSE_WIDTH_96 ADC14_CTL0_SHT1_5
118 #define ADC_PULSE_WIDTH_128 ADC14_CTL0_SHT1_6
119 #define ADC_PULSE_WIDTH_192 ADC14_CTL0_SHT1_7
120 
121 #define ADC_NONDIFFERENTIAL_INPUTS false
122 #define ADC_DIFFERENTIAL_INPUTS true
123 
124 #define ADC_MEM0 0x00000001
125 #define ADC_MEM1 0x00000002
126 #define ADC_MEM2 0x00000004
127 #define ADC_MEM3 0x00000008
128 #define ADC_MEM4 0x00000010
129 #define ADC_MEM5 0x00000020
130 #define ADC_MEM6 0x00000040
131 #define ADC_MEM7 0x00000080
132 #define ADC_MEM8 0x00000100
133 #define ADC_MEM9 0x00000200
134 #define ADC_MEM10 0x00000400
135 #define ADC_MEM11 0x00000800
136 #define ADC_MEM12 0x00001000
137 #define ADC_MEM13 0x00002000
138 #define ADC_MEM14 0x00004000
139 #define ADC_MEM15 0x00008000
140 #define ADC_MEM16 0x00010000
141 #define ADC_MEM17 0x00020000
142 #define ADC_MEM18 0x00040000
143 #define ADC_MEM19 0x00080000
144 #define ADC_MEM20 0x00100000
145 #define ADC_MEM21 0x00200000
146 #define ADC_MEM22 0x00400000
147 #define ADC_MEM23 0x00800000
148 #define ADC_MEM24 0x01000000
149 #define ADC_MEM25 0x02000000
150 #define ADC_MEM26 0x04000000
151 #define ADC_MEM27 0x08000000
152 #define ADC_MEM28 0x10000000
153 #define ADC_MEM29 0x20000000
154 #define ADC_MEM30 0x40000000
155 #define ADC_MEM31 0x80000000
156 
157 #define ADC_VREFPOS_AVCC_VREFNEG_VSS (ADC14_MCTLN_VRSEL_0)
158 #define ADC_VREFPOS_INTBUF_VREFNEG_VSS (ADC14_MCTLN_VRSEL_1)
159 #define ADC_VREFPOS_EXTPOS_VREFNEG_EXTNEG (ADC14_MCTLN_VRSEL_14)
160 #define ADC_VREFPOS_EXTBUF_VREFNEG_EXTNEG (ADC14_MCTLN_VRSEL_15)
161 
162 #define ADC_INPUT_A0 (ADC14_MCTLN_INCH_0)
163 #define ADC_INPUT_A1 (ADC14_MCTLN_INCH_1)
164 #define ADC_INPUT_A2 (ADC14_MCTLN_INCH_2)
165 #define ADC_INPUT_A3 (ADC14_MCTLN_INCH_3)
166 #define ADC_INPUT_A4 (ADC14_MCTLN_INCH_4)
167 #define ADC_INPUT_A5 (ADC14_MCTLN_INCH_5)
168 #define ADC_INPUT_A6 (ADC14_MCTLN_INCH_6)
169 #define ADC_INPUT_A7 (ADC14_MCTLN_INCH_7)
170 #define ADC_INPUT_A8 (ADC14_MCTLN_INCH_8)
171 #define ADC_INPUT_A9 (ADC14_MCTLN_INCH_9)
172 #define ADC_INPUT_A10 (ADC14_MCTLN_INCH_10)
173 #define ADC_INPUT_A11 (ADC14_MCTLN_INCH_11)
174 #define ADC_INPUT_A12 (ADC14_MCTLN_INCH_12)
175 #define ADC_INPUT_A13 (ADC14_MCTLN_INCH_13)
176 #define ADC_INPUT_A14 (ADC14_MCTLN_INCH_14)
177 #define ADC_INPUT_A15 (ADC14_MCTLN_INCH_15)
178 #define ADC_INPUT_A16 (ADC14_MCTLN_INCH_16)
179 #define ADC_INPUT_A17 (ADC14_MCTLN_INCH_17)
180 #define ADC_INPUT_A18 (ADC14_MCTLN_INCH_18)
181 #define ADC_INPUT_A19 (ADC14_MCTLN_INCH_19)
182 #define ADC_INPUT_A20 (ADC14_MCTLN_INCH_20)
183 #define ADC_INPUT_A21 (ADC14_MCTLN_INCH_21)
184 #define ADC_INPUT_A22 (ADC14_MCTLN_INCH_22)
185 #define ADC_INPUT_A23 (ADC14_MCTLN_INCH_23)
186 #define ADC_INPUT_A24 (ADC14_MCTLN_INCH_24)
187 #define ADC_INPUT_A25 (ADC14_MCTLN_INCH_25)
188 #define ADC_INPUT_A26 (ADC14_MCTLN_INCH_26)
189 #define ADC_INPUT_A27 (ADC14_MCTLN_INCH_27)
190 #define ADC_INPUT_A28 (ADC14_MCTLN_INCH_28)
191 #define ADC_INPUT_A29 (ADC14_MCTLN_INCH_29)
192 #define ADC_INPUT_A30 (ADC14_MCTLN_INCH_30)
193 #define ADC_INPUT_A31 (ADC14_MCTLN_INCH_31)
194 
195 #define ADC_COMP_WINDOW0 0x00
196 #define ADC_COMP_WINDOW1 0x01
197 
198 #define ADC_SIGNED_BINARY 0x00
199 #define ADC_UNSIGNED_BINARY 0x01
200 
201 #define ADC_MANUAL_ITERATION 0x00
202 #define ADC_AUTOMATIC_ITERATION ADC14_CTL0_MSC
203 
204 #define ADC_UNRESTRICTED_POWER_MODE ADC14_CTL1_PWRMD_0
205 #define ADC_ULTRA_LOW_POWER_MODE ADC14_CTL1_PWRMD_2
206 
207 
208 #define ADC_INT0 ADC14_IER0_IE0
209 #define ADC_INT1 ADC14_IER0_IE1
210 #define ADC_INT2 ADC14_IER0_IE2
211 #define ADC_INT3 ADC14_IER0_IE3
212 #define ADC_INT4 ADC14_IER0_IE4
213 #define ADC_INT5 ADC14_IER0_IE5
214 #define ADC_INT6 ADC14_IER0_IE6
215 #define ADC_INT7 ADC14_IER0_IE7
216 #define ADC_INT8 ADC14_IER0_IE8
217 #define ADC_INT9 ADC14_IER0_IE9
218 #define ADC_INT10 ADC14_IER0_IE10
219 #define ADC_INT11 ADC14_IER0_IE11
220 #define ADC_INT12 ADC14_IER0_IE12
221 #define ADC_INT13 ADC14_IER0_IE13
222 #define ADC_INT14 ADC14_IER0_IE14
223 #define ADC_INT15 ADC14_IER0_IE15
224 #define ADC_INT16 ADC14_IER0_IE16
225 #define ADC_INT17 ADC14_IER0_IE17
226 #define ADC_INT18 ADC14_IER0_IE18
227 #define ADC_INT19 ADC14_IER0_IE19
228 #define ADC_INT20 ADC14_IER0_IE20
229 #define ADC_INT21 ADC14_IER0_IE21
230 #define ADC_INT22 ADC14_IER0_IE22
231 #define ADC_INT23 ADC14_IER0_IE23
232 #define ADC_INT24 ADC14_IER0_IE24
233 #define ADC_INT25 ADC14_IER0_IE25
234 #define ADC_INT26 ADC14_IER0_IE26
235 #define ADC_INT27 ADC14_IER0_IE27
236 #define ADC_INT28 ADC14_IER0_IE28
237 #define ADC_INT29 ADC14_IER0_IE29
238 #define ADC_INT30 ADC14_IER0_IE30
239 #define ADC_INT31 ADC14_IER0_IE31
240 #define ADC_IN_INT 0x0000000200000000
241 #define ADC_LO_INT 0x0000000400000000
242 #define ADC_HI_INT 0x0000000800000000
243 #define ADC_OV_INT 0x0000001000000000
244 #define ADC_TOV_INT 0x0000002000000000
245 #define ADC_RDY_INT 0x0000004000000000
246 
247 #define ADC_INVALID_MEM 32
248 
249 //*****************************************************************************
250 //
251 //Prototypes for the APIs.
252 //
253 //*****************************************************************************
254 
255 //*****************************************************************************
256 //
263 //
264 //*****************************************************************************
265 extern void ADC14_enableModule(void);
266 
267 //*****************************************************************************
268 //
275 //
276 //*****************************************************************************
277 extern bool ADC14_disableModule(void);
278 
279 //*****************************************************************************
280 //
337 //
338 //*****************************************************************************
339 extern bool ADC14_initModule(uint32_t clockSource, uint32_t clockPredivider,
340  uint32_t clockDivider, uint32_t internalChannelMask);
341 
342 //*****************************************************************************
343 //
356 //
357 //*****************************************************************************
358 extern void ADC14_setResolution(uint32_t resolution);
359 
360 //*****************************************************************************
361 //
370 //
371 //*****************************************************************************
372 extern uint_fast32_t ADC14_getResolution(void);
373 
374 //*****************************************************************************
375 //
396 //
397 //*****************************************************************************
398 extern bool ADC14_setSampleHoldTrigger(uint32_t source, bool invertSignal);
399 
400 //*****************************************************************************
401 //
434 //
435 //*****************************************************************************
436 extern bool ADC14_setSampleHoldTime(uint32_t firstPulseWidth,
437  uint32_t secondPulseWidth);
438 
439 //*****************************************************************************
440 //
465 //
466 //*****************************************************************************
467 extern bool ADC14_configureMultiSequenceMode(uint32_t memoryStart,
468  uint32_t memoryEnd, bool repeatMode);
469 
470 //*****************************************************************************
471 //
481 
490 //
491 //*****************************************************************************
492 extern bool ADC14_configureSingleSampleMode(uint32_t memoryDestination,
493  bool repeatMode);
494 
495 //*****************************************************************************
496 //
504 //
505 //*****************************************************************************
506 extern bool ADC14_enableConversion(void);
507 
508 //*****************************************************************************
509 //
518 //
519 //*****************************************************************************
520 extern void ADC14_disableConversion(void);
521 
522 //*****************************************************************************
523 //
531 //
532 //*****************************************************************************
533 extern bool ADC14_toggleConversionTrigger(void);
534 
535 //*****************************************************************************
536 //
541 //
542 //*****************************************************************************
543 extern bool ADC14_isBusy(void);
544 
545 //*****************************************************************************
546 //
581 //
582 //*****************************************************************************
583 extern bool ADC14_configureConversionMemory(uint32_t memorySelect,
584  uint32_t refSelect, uint32_t channelSelect, bool differntialMode);
585 
586 //*****************************************************************************
587 //
603 //
604 //*****************************************************************************
605 extern bool ADC14_enableComparatorWindow(uint32_t memorySelect,
606  uint32_t windowSelect);
607 
608 //*****************************************************************************
609 //
619 //
620 //*****************************************************************************
621 extern bool ADC14_disableComparatorWindow(uint32_t memorySelect);
622 
623 //*****************************************************************************
624 //
646 //
647 //*****************************************************************************
648 extern bool ADC14_setComparatorWindowValue(uint32_t window, int16_t low,
649  int16_t high);
650 
651 //*****************************************************************************
652 //
664 //
665 //*****************************************************************************
666 extern bool ADC14_setResultFormat(uint32_t resultFormat);
667 
668 //*****************************************************************************
669 //
679 //
680 //*****************************************************************************
681 extern uint_fast16_t ADC14_getResult(uint32_t memorySelect);
682 
683 //*****************************************************************************
684 //
698 //
699 //*****************************************************************************
700 extern void ADC14_getMultiSequenceResult(uint16_t* res);
701 
702 //*****************************************************************************
703 //
723 //
724 //*****************************************************************************
725 extern void ADC14_getResultArray(uint32_t memoryStart, uint32_t memoryEnd,
726  uint16_t* res);
727 
728 //*****************************************************************************
729 //
738 //
739 //*****************************************************************************
740 extern bool ADC14_enableReferenceBurst(void);
741 
742 //*****************************************************************************
743 //
749 //
750 //*****************************************************************************
751 extern bool ADC14_disableReferenceBurst(void);
752 
753 //*****************************************************************************
754 //
770 //
771 //*****************************************************************************
772 extern bool ADC14_setPowerMode(uint32_t powerMode);
773 
774 //*****************************************************************************
775 //
788 //
789 //*****************************************************************************
790 extern bool ADC14_enableSampleTimer(uint32_t multiSampleConvert);
791 
792 //*****************************************************************************
793 //
798 //
799 //*****************************************************************************
800 extern bool ADC14_disableSampleTimer(void);
801 
802 //*****************************************************************************
803 //
833 //
834 //*****************************************************************************
835 extern void ADC14_enableInterrupt(uint_fast64_t mask);
836 
837 //*****************************************************************************
838 //
870 //
871 //*****************************************************************************
872 extern void ADC14_disableInterrupt(uint_fast64_t mask);
873 
874 //*****************************************************************************
875 //
903 //
904 //*****************************************************************************
905 extern uint_fast64_t ADC14_getInterruptStatus(void);
906 
907 //*****************************************************************************
908 //
916 // !interrupt will be set.
939 //
940 //*****************************************************************************
941 extern uint_fast64_t ADC14_getEnabledInterruptStatus(void);
942 
943 //*****************************************************************************
944 //
974 //
975 //*****************************************************************************
976 extern void ADC14_clearInterruptFlag(uint_fast64_t mask);
977 
978 //*****************************************************************************
979 //
996 //
997 //*****************************************************************************
998 extern void ADC14_registerInterrupt(void (*intHandler)(void));
999 
1000 //*****************************************************************************
1001 //
1013 //
1014 //*****************************************************************************
1015 extern void ADC14_unregisterInterrupt(void);
1016 
1017 /* Defines for future devices that might have multiple instances */
1018 #define ADC14_enableModuleMultipleInstance(a) ADC14_enableModule()
1019 #define ADC14_disableModuleMultipleInstance(a) ADC14_disableModule()
1020 #define ADC14_initModuleMultipleInstance(a,b,c,d,e) ADC14_initModule(b,c,d,e)
1021 #define ADC14_setResolutionMultipleInstance(a,b) ADC14_setResolution(b)
1022 #define ADC14_getResolutionMultipleInstance(a) ADC14_getResolution()
1023 #define ADC14_setSampleHoldTriggerMultipleInstance(a,b,c) ADC14_setSampleHoldTrigger(b,c)
1024 #define ADC14_setSampleHoldTimeMultipleInstance(a,b,c) ADC14_setSampleHoldTime(b,c)
1025 #define ADC14_configureMultiSequenceModeMultipleInstance(a,b,c,d) ADC14_configureMultiSequenceMode(b,c,d)
1026 #define ADC14_configureSingleSampleModeMultipleInstance(a,b,c) ADC14_configureSingleSampleMode(b,c)
1027 #define ADC14_enableConversionMultipleInstance(a,b) ADC14_enableConversion(b)
1028 #define ADC14_disableConversionMultipleInstance(a) ADC14_disableConversion()
1029 #define ADC14_toggleConversionTriggerMultipleInstance(a) ADC14_toggleConversionTrigger()
1030 #define ADC14_isBusyMultipleInstance(a) ADC14_isBusy()
1031 #define ADC14_configureConversionMemoryMultipleInstance(a,b,c,d,e) ADC14_configureConversionMemory(b,c,d,e)
1032 #define ADC14_enableComparatorWindowMultipleInstance(a,b,c) ADC14_enableComparatorWindow(b,c)
1033 #define ADC14_disableComparatorWindowMultipleInstance(a,b) ADC14_disableComparatorWindow(b)
1034 #define ADC14_setComparatorWindowValueMultipleInstance(a,b,c,d) ADC14_setComparatorWindowValue(b,c,d)
1035 #define ADC14_setResultFormatMultipleInstance(a,b) ADC14_setResultFormat(b)
1036 #define ADC14_getResultMultipleInstance(a,b) ADC14_getResult(b)
1037 #define ADC14_getMultiSequenceResultMultipleInstance(a,b) ADC14_getMultiSequenceResult(b)
1038 #define ADC14_getResultArrayMultipleInstance(a,b,c,d) ADC14_getResultArray(b,c,d)
1039 #define ADC14_enableReferenceBurstMultipleInstance(a) ADC14_enableReferenceBurst()
1040 #define ADC14_disableReferenceBurstMultipleInstance(a) ADC14_disableReferenceBurst()
1041 #define ADC14_setPowerModeMultipleInstance(a,b) ADC14_setPowerMode(b)
1042 #define ADC14_enableSampleTimerMultipleInstance(a,b) ADC14_enableSampleTimer(b)
1043 #define ADC14_disableSampleTimerMultipleInstance(a) ADC14_disableSampleTimer()
1044 #define ADC14_enableInterruptMultipleInstance(a,b) ADC14_enableInterrupt(b)
1045 #define ADC14_disableInterruptMultipleInstance(a,b) ADC14_disableInterrupt(b)
1046 #define ADC14_getInterruptStatusMultipleInstance(a) ADC14_getInterruptStatus()
1047 #define ADC14_getEnabledInterruptStatusMultipleInstance(a) ADC14_getEnabledInterruptStatus()
1048 #define ADC14_clearInterruptFlagMultipleInstance(a,b) ADC14_clearInterruptFlag(b)
1049 #define ADC14_registerInterruptMultipleInstance(a,b) ADC14_registerInterrupt(b)
1050 #define ADC14_unregisterInterruptMultipleInstance(a) ADC14_unregisterInterrupt()
1051 
1052 //*****************************************************************************
1053 //
1054 // Mark the end of the C bindings section for C++ compilers.
1055 //
1056 //*****************************************************************************
1057 #ifdef __cplusplus
1058 }
1059 #endif
1060 
1061 //*****************************************************************************
1062 //
1063 // Close the Doxygen group.
1065 //
1066 //*****************************************************************************
1067 
1068 #endif /* ADC14_H_ */
bool ADC14_disableReferenceBurst(void)
Definition: adc14.c:682
void ADC14_getMultiSequenceResult(uint16_t *res)
Definition: adc14.c:616
bool ADC14_enableComparatorWindow(uint32_t memorySelect, uint32_t windowSelect)
Definition: adc14.c:472
void ADC14_getResultArray(uint32_t memoryStart, uint32_t memoryEnd, uint16_t *res)
Definition: adc14.c:634
bool ADC14_enableReferenceBurst(void)
Definition: adc14.c:672
bool ADC14_setSampleHoldTrigger(uint32_t source, bool invertSignal)
Definition: adc14.c:248
bool ADC14_toggleConversionTrigger(void)
Definition: adc14.c:394
bool ADC14_initModule(uint32_t clockSource, uint32_t clockPredivider, uint32_t clockDivider, uint32_t internalChannelMask)
Definition: adc14.c:189
void ADC14_disableConversion(void)
Definition: adc14.c:410
bool ADC14_enableSampleTimer(uint32_t multiSampleConvert)
Definition: adc14.c:161
void ADC14_unregisterInterrupt(void)
Definition: adc14.c:769
void ADC14_enableInterrupt(uint_fast64_t mask)
Definition: adc14.c:715
bool ADC14_disableSampleTimer(void)
Definition: adc14.c:179
void ADC14_enableModule(void)
Definition: adc14.c:146
bool ADC14_setComparatorWindowValue(uint32_t window, int16_t low, int16_t high)
Definition: adc14.c:553
bool ADC14_configureConversionMemory(uint32_t memorySelect, uint32_t refSelect, uint32_t channelSelect, bool differntialMode)
Definition: adc14.c:420
bool ADC14_setResultFormat(uint32_t resultFormat)
Definition: adc14.c:583
bool ADC14_configureMultiSequenceMode(uint32_t memoryStart, uint32_t memoryEnd, bool repeatMode)
Definition: adc14.c:310
uint_fast64_t ADC14_getInterruptStatus(void)
Definition: adc14.c:733
bool ADC14_isBusy(void)
Definition: adc14.c:415
bool ADC14_disableModule(void)
Definition: adc14.c:151
uint_fast16_t ADC14_getResult(uint32_t memorySelect)
Definition: adc14.c:602
bool ADC14_enableConversion(void)
Definition: adc14.c:384
void ADC14_disableInterrupt(uint_fast64_t mask)
Definition: adc14.c:724
bool ADC14_configureSingleSampleMode(uint32_t memoryDestination, bool repeatMode)
Definition: adc14.c:358
bool ADC14_disableComparatorWindow(uint32_t memorySelect)
Definition: adc14.c:522
void ADC14_clearInterruptFlag(uint_fast64_t mask)
Definition: adc14.c:747
bool ADC14_setSampleHoldTime(uint32_t firstPulseWidth, uint32_t secondPulseWidth)
Definition: adc14.c:277
uint_fast32_t ADC14_getResolution(void)
Definition: adc14.c:243
uint_fast64_t ADC14_getEnabledInterruptStatus(void)
Definition: adc14.c:739
bool ADC14_setPowerMode(uint32_t powerMode)
Definition: adc14.c:692
void ADC14_setResolution(uint32_t resolution)
Definition: adc14.c:234
void ADC14_registerInterrupt(void(*intHandler)(void))
Definition: adc14.c:756

Copyright 2019, Texas Instruments Incorporated