Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
adc_ctrl.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2019 Gunar Schorcht
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 ADC_CTRL_H
21
#define ADC_CTRL_H
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
#include "
periph/gpio.h
"
28
32
enum
{
33
ADC1_CTRL
,
34
ADC2_CTRL
35
};
36
40
enum
{
41
42
RTCIO_TOUCH0
= 0,
43
RTCIO_TOUCH1
,
44
RTCIO_TOUCH2
,
45
RTCIO_TOUCH3
,
46
RTCIO_TOUCH4
,
47
RTCIO_TOUCH5
,
48
RTCIO_TOUCH6
,
49
RTCIO_TOUCH7
,
50
RTCIO_TOUCH8
,
51
RTCIO_TOUCH9
,
53
RTCIO_ADC_ADC1
,
54
RTCIO_ADC_ADC2
,
56
RTCIO_SENSOR_SENSE1
,
57
RTCIO_SENSOR_SENSE2
,
58
RTCIO_SENSOR_SENSE3
,
59
RTCIO_SENSOR_SENSE4
,
61
RTCIO_DAC1
,
62
RTCIO_DAC2
,
64
RTCIO_NA
,
65
};
66
70
struct
_adc_hw_t
{
71
gpio_t
gpio
;
72
uint8_t
rtc_gpio
;
73
uint8_t
adc_ctrl
;
74
uint8_t
adc_channel
;
75
char
*
pad_name
;
76
};
77
84
extern
const
struct
_adc_hw_t
_adc_hw
[];
85
86
#ifdef __cplusplus
87
}
88
#endif
89
90
#endif
/* ADC_CTRL_H */
RTCIO_ADC_ADC2
@ RTCIO_ADC_ADC2
VDET_2.
Definition:
adc_ctrl.h:54
_adc_hw_t::rtc_gpio
uint8_t rtc_gpio
corresponding RTC GPIO
Definition:
adc_ctrl.h:72
_adc_hw_t::gpio
gpio_t gpio
GPIO.
Definition:
adc_ctrl.h:71
ADC2_CTRL
@ ADC2_CTRL
ADC2 controller.
Definition:
adc_ctrl.h:34
RTCIO_SENSOR_SENSE2
@ RTCIO_SENSOR_SENSE2
SENSOR_CAPP.
Definition:
adc_ctrl.h:57
RTCIO_TOUCH6
@ RTCIO_TOUCH6
touch sensor 6
Definition:
adc_ctrl.h:48
_adc_hw_t::pad_name
char * pad_name
symbolic name of pad
Definition:
adc_ctrl.h:75
RTCIO_TOUCH3
@ RTCIO_TOUCH3
touch sensor 3
Definition:
adc_ctrl.h:45
RTCIO_TOUCH4
@ RTCIO_TOUCH4
touch sensor 4
Definition:
adc_ctrl.h:46
RTCIO_TOUCH5
@ RTCIO_TOUCH5
touch sensor 5
Definition:
adc_ctrl.h:47
RTCIO_TOUCH2
@ RTCIO_TOUCH2
touch sensor 2
Definition:
adc_ctrl.h:44
RTCIO_DAC2
@ RTCIO_DAC2
DAC output.
Definition:
adc_ctrl.h:62
RTCIO_TOUCH9
@ RTCIO_TOUCH9
touch sensor 9, 32K_XN
Definition:
adc_ctrl.h:51
ADC1_CTRL
@ ADC1_CTRL
ADC1 controller.
Definition:
adc_ctrl.h:33
RTCIO_ADC_ADC1
@ RTCIO_ADC_ADC1
VDET_1.
Definition:
adc_ctrl.h:53
RTCIO_TOUCH1
@ RTCIO_TOUCH1
touch sensor 1
Definition:
adc_ctrl.h:43
_adc_hw_t
ADC pin hardware information type (for internal use only)
Definition:
adc_ctrl.h:70
RTCIO_TOUCH0
@ RTCIO_TOUCH0
touch sensor 0
Definition:
adc_ctrl.h:42
RTCIO_TOUCH8
@ RTCIO_TOUCH8
touch sensor 8, 32K_XP
Definition:
adc_ctrl.h:50
gpio.h
Low-level GPIO peripheral driver interface definitions.
RTCIO_NA
@ RTCIO_NA
RTC pad not available.
Definition:
adc_ctrl.h:64
_adc_hw
const struct _adc_hw_t _adc_hw[]
RTC hardware map.
RTCIO_DAC1
@ RTCIO_DAC1
DAC output.
Definition:
adc_ctrl.h:61
RTCIO_SENSOR_SENSE3
@ RTCIO_SENSOR_SENSE3
SENSOR_CAPN.
Definition:
adc_ctrl.h:58
_adc_hw_t::adc_channel
uint8_t adc_channel
channel of ADC controller
Definition:
adc_ctrl.h:74
RTCIO_TOUCH7
@ RTCIO_TOUCH7
touch sensor 7
Definition:
adc_ctrl.h:49
RTCIO_SENSOR_SENSE1
@ RTCIO_SENSOR_SENSE1
SENSOR_VP.
Definition:
adc_ctrl.h:56
RTCIO_SENSOR_SENSE4
@ RTCIO_SENSOR_SENSE4
SENSOR_VN.
Definition:
adc_ctrl.h:59
_adc_hw_t::adc_ctrl
uint8_t adc_ctrl
ADC controller.
Definition:
adc_ctrl.h:73
Generated on Tue Nov 24 2020 19:46:50 by
1.8.17