cc2538_soc_adc.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Loci Controls Inc.
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef CC2538_SOC_ADC_H
21 #define CC2538_SOC_ADC_H
22 
23 #include "cc2538.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
32 typedef struct {
33 
37  union {
39  struct {
46  } ADCCON1bits;
47  } cc2538_adc_adccon1;
48 
55  cc2538_reg_t RESERVED[2];
58 
59 #define SOC_ADC ( (cc2538_soc_adc_t*)0x400d7000 )
61 #ifdef __cplusplus
62 } /* end extern "C" */
63 #endif
64 
65 #endif /* CC2538_SOC_ADC_H */
66 
cc2538_reg_t ADCCON1
ADC Control Register 1.
cc2538_reg_t ST
Start conversion.
cc2538_reg_t RESERVED2
Reserved bits.
cc2538_reg_t RNDH
Random-number-generator data; high byte.
SOC ADC component registers.
cc2538_reg_t CMPCTL
Analog comparator control and status register.
cc2538_reg_t ADCH
Most-significant part of ADC conversion result.
cc2538_reg_t RCTRL
Random number generator control.
cc2538_reg_t EOC
End of conversion.
CC2538 MCU interrupt and register definitions.
cc2538_reg_t RESERVED1
Reserved bits.
cc2538_reg_t STSEL
Start select.
cc2538_reg_t ADCCON2
ADC Control Register 2.
cc2538_reg_t RNDL
Random-number-generator data; low byte.
cc2538_reg_t ADCL
Least-significant part of ADC conversion result.
volatile uint32_t cc2538_reg_t
Least-significant 32 bits of the IEEE address.
Definition: cc2538.h:124
cc2538_reg_t ADCCON3
ADC Control Register 3.