MotorWare f2806x Driver API Documentation
adc_obj.h
Go to the documentation of this file.
1 /* --COPYRIGHT--,BSD
2  * Copyright (c) 2012, 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 _ADC_OBJ_H_
33 #define _ADC_OBJ_H_
34 
40 
41 
42 // modules
43 #include "sw/modules/math/src/32b/math.h"
44 #include "sw/modules/types/src/types.h"
45 
46 
47 
50 typedef struct _ADC_Obj_
51 {
52  volatile uint16_t ADCRESULT[16];
53  volatile uint16_t resvd_1[26096];
54  volatile uint16_t ADCCTL1;
55  volatile uint16_t rsvd_2[3];
56  volatile uint16_t ADCINTFLG;
57  volatile uint16_t ADCINTFLGCLR;
58  volatile uint16_t ADCINTOVF;
59  volatile uint16_t ADCINTOVFCLR;
60  volatile uint16_t INTSELxNy[5];
61  volatile uint16_t rsvd_3[3];
62  volatile uint16_t SOCPRICTRL;
63  volatile uint16_t rsvd_4;
64  volatile uint16_t ADCSAMPLEMODE;
65  volatile uint16_t rsvd_5;
66  volatile uint16_t ADCINTSOCSEL1;
67  volatile uint16_t ADCINTSOCSEL2;
68  volatile uint16_t rsvd_6[2];
69  volatile uint16_t ADCSOCFLG1;
70  volatile uint16_t rsvd_7;
71  volatile uint16_t ADCSOCFRC1;
72  volatile uint16_t rsvd_8;
73  volatile uint16_t ADCSOCOVF1;
74  volatile uint16_t rsvd_9;
75  volatile uint16_t ADCSOCOVFCLR1;
76  volatile uint16_t rsvd_10;
77  volatile uint16_t ADCSOCxCTL[16];
78  volatile uint16_t rsvd_11[16];
79  volatile uint16_t ADCREFTRIM;
80  volatile uint16_t ADCOFFTRIM;
81  volatile uint16_t resvd_12[13];
82  volatile uint16_t ADCREV;
83 } ADC_Obj;
84 
85 
88 typedef struct _ADC_Obj_ *ADC_Handle;
89 
90 
91 
92 #ifdef __cplusplus
93 }
94 #endif // extern "C"
95 
97 #endif // end of _ADC_OBJ_H_ definition
volatile uint16_t ADCSOCOVFCLR1
ADC SOC Overflow Clear 1 Register.
Definition: adc_obj.h:75
volatile uint16_t ADCINTSOCSEL2
ADC Interrupt Trigger SOC Select 2 Register.
Definition: adc_obj.h:67
volatile uint16_t rsvd_8
Reserved.
Definition: adc_obj.h:72
volatile uint16_t ADCINTFLGCLR
ADC Interrupt Flag Clear Register.
Definition: adc_obj.h:57
volatile uint16_t ADCINTFLG
ADC Interrupt Flag Register.
Definition: adc_obj.h:56
volatile uint16_t ADCINTOVF
ADC Interrupt Overflow Register.
Definition: adc_obj.h:58
volatile uint16_t ADCSOCFRC1
ADC SOC Force 1 Register.
Definition: adc_obj.h:71
volatile uint16_t ADCSAMPLEMODE
ADC Sample Mode Register.
Definition: adc_obj.h:64
volatile uint16_t rsvd_10
Reserved.
Definition: adc_obj.h:76
volatile uint16_t rsvd_2[3]
Reserved.
Definition: adc_obj.h:55
volatile uint16_t resvd_1[26096]
Reserved.
Definition: adc_obj.h:53
volatile uint16_t rsvd_6[2]
Reserved.
Definition: adc_obj.h:68
volatile uint16_t rsvd_3[3]
Reserved.
Definition: adc_obj.h:61
volatile uint16_t ADCSOCxCTL[16]
ADC SOCx Control Registers.
Definition: adc_obj.h:77
volatile uint16_t ADCCTL1
ADC Control Register 1.
Definition: adc_obj.h:54
volatile uint16_t ADCINTOVFCLR
ADC Interrupt Overflow Clear Register.
Definition: adc_obj.h:59
volatile uint16_t resvd_12[13]
Reserved.
Definition: adc_obj.h:81
volatile uint16_t ADCINTSOCSEL1
ADC Interrupt Trigger SOC Select 1 Register.
Definition: adc_obj.h:66
Defines the analog-to-digital converter (ADC) object.
Definition: adc_obj.h:50
struct _ADC_Obj_ * ADC_Handle
Defines the analog-to-digital converter (ADC) handle.
Definition: adc_obj.h:88
struct _ADC_Obj_ ADC_Obj
Defines the analog-to-digital converter (ADC) object.
volatile uint16_t SOCPRICTRL
ADC Start Of Conversion Priority Control Register.
Definition: adc_obj.h:62
volatile uint16_t ADCREFTRIM
ADC Reference/Gain Trim Register.
Definition: adc_obj.h:79
volatile uint16_t INTSELxNy[5]
ADC Interrupt Select x and y Register.
Definition: adc_obj.h:60
volatile uint16_t ADCREV
ADC Revision Register.
Definition: adc_obj.h:82
volatile uint16_t rsvd_11[16]
Reserved.
Definition: adc_obj.h:78
volatile uint16_t rsvd_9
Reserved.
Definition: adc_obj.h:74
volatile uint16_t ADCSOCFLG1
ADC SOC Flag 1 Register.
Definition: adc_obj.h:69
volatile uint16_t rsvd_5
Reserved.
Definition: adc_obj.h:65
volatile uint16_t rsvd_4
Reserved.
Definition: adc_obj.h:63
volatile uint16_t ADCOFFTRIM
ADC Offset Trim Register.
Definition: adc_obj.h:80
volatile uint16_t ADCSOCOVF1
ADC SOC Overflow 1 Register.
Definition: adc_obj.h:73
volatile uint16_t rsvd_7
Reserved.
Definition: adc_obj.h:70
volatile uint16_t ADCRESULT[16]
ADC result registers.
Definition: adc_obj.h:52