CCAux  2.17.0.0
CCAux API reference
Adc.h
Go to the documentation of this file.
1 /************************************************
2 *
3 * CROSSCONTROL AUX API
4 *
5 * Adc.h
6 *
7 * Version 2.17.0.0", 2019-10-22
8 *
9 * (c) CrossControl 2010-2019
10 *
11 
12  * File description:
13  * Get current voltages from the built-in ADC
14  *
15  * Use the function GetAdc() to get a handle to pass on to the other functions.
16  * Use the method Adc_release(ADCHANDLE) to return the handle.
17  *
18  * Example Usage:
19  * @include adc_example.cpp
20  *
21  ************************************************/
22 
23 #ifndef CC_ADC_H_
24 #define CC_ADC_H_
25 
26 #include "CCAuxErrors.h"
27 #include "CCPlatform.h"
28 #include "CCAuxTypes.h"
29 
30 #ifdef __cplusplus
31 namespace CrossControl {
32 #endif
33 
34  typedef void* ADCHANDLE;
35 
56  EXTERN_C
57  CCAUXDLL_API
58  ADCHANDLE
59  CCAUXDLL_CALLING_CONV
60  GetAdc(void);
61 
72  EXTERN_C
73  CCAUXDLL_API
74  void
75  CCAUXDLL_CALLING_CONV
77 
91  EXTERN_C
92  CCAUXDLL_API
93  eErr
94  CCAUXDLL_CALLING_CONV
95  Adc_getVoltage(ADCHANDLE, VoltageEnum selection, float64_t* value);
96 
98 #ifdef __cplusplus
99 } /* namespace CrossControl */
100 #endif
101 
102 #endif /* CC_ADC_H_ */
103 
eErr
Definition: CCAuxTypes.h:159
double float64_t
Definition: CCAuxTypes.h:26
Definition: About.h:30
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV Adc_release(ADCHANDLE)
VoltageEnum
Definition: CCAuxTypes.h:95
EXTERN_C CCAUXDLL_API ADCHANDLE CCAUXDLL_CALLING_CONV GetAdc(void)
void * ADCHANDLE
Definition: Adc.h:34
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Adc_getVoltage(ADCHANDLE, VoltageEnum selection, float64_t *value)