MiraOS  v1.0 2016-02-20
mira_adc.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (C) 2016 LumenRadio AB *
3  * *
4  * This file is part of MiraOS. *
5  * *
6  * MiraOS contains software components that are patented by LumenRadio. *
7  * Use of this software is under the terms of the LumenRadio MiraOS *
8  * license.
9  * *
10  * You should have received a copy of the MiraOS license from your *
11  * LumenRadio representative. If not, email to <licenses@lumenradio.com> *
12  ****************************************************************************/
13 
25 #ifndef LIBMIRA_ADC_H_
26 #define LIBMIRA_ADC_H_
27 
28 
29 #include <stdint.h>
30 
36 typedef enum {
37  MIRA_ADC_CHANNEL_AIN0 = 0,
38  MIRA_ADC_CHANNEL_AIN1 = 1,
39  MIRA_ADC_CHANNEL_AIN2 = 2,
40  MIRA_ADC_CHANNEL_AIN3 = 3,
41  MIRA_ADC_CHANNEL_AIN4 = 4,
42  MIRA_ADC_CHANNEL_AIN5 = 5,
43  MIRA_ADC_CHANNEL_AIN6 = 6,
44  MIRA_ADC_CHANNEL_AIN7 = 7
46 
47 
55 void mira_adc_init(MiraAdcChannel channel);
56 
57 
65 int16_t mira_adc_read(MiraAdcChannel channel);
66 
67 #endif /* LIBMIRA_ADC_H_ */
void mira_adc_init(MiraAdcChannel channel)
Init analog input.
MiraAdcChannel
Analog input channels.
Definition: mira_adc.h:36
int16_t mira_adc_read(MiraAdcChannel channel)
Init analog input.