CCAux  2.7.2.0
CCAux API reference
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Adc.h
Go to the documentation of this file.
1 /************************************************
2 *
3 * CROSSCONTROL AUX API
4 *
5 * Adc.h
6 *
7 * Version 2.7.2.0, 2014-08-25
8 *
9 * (c) maximatecc 2013
10 *
11 * File description:
12 * Get current voltages from the built-in ADC
13 *
14 * Use the function GetAdc() to get a handle to pass on to the other functions.
15 * Use the method Adc_release(ADCHANDLE) to return the handle.
16 *
17 * Example Usage:
18 * @include adc_example.cpp
19 *
20 ************************************************/
21 
22 #ifndef CC_ADC_H_
23 #define CC_ADC_H_
24 
25 #include "CCAuxErrors.h"
26 #include "CCPlatform.h"
27 #include "CCAuxTypes.h"
28 
29 #ifdef __cplusplus
30 namespace CrossControl {
31 #endif
32 
33  typedef void* ADCHANDLE;
34 
49  EXTERN_C
50  CCAUXDLL_API
51  ADCHANDLE
52  CCAUXDLL_CALLING_CONV
53  GetAdc(void);
54 
65  EXTERN_C
66  CCAUXDLL_API
67  void
68  CCAUXDLL_CALLING_CONV
70 
84  EXTERN_C
85  CCAUXDLL_API
86  eErr
87  CCAUXDLL_CALLING_CONV
88  Adc_getVoltage(ADCHANDLE, VoltageEnum selection, double* value);
89 
90 #ifdef __cplusplus
91 } /* namespace CrossControl */
92 #endif
93 
94 #endif /* CC_ADC_H_ */
95