CCAux  2.7.2.0
CCAux API reference
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator
CfgIn.h
Go to the documentation of this file.
1 /************************************************
2 *
3 * CROSSCONTROL AUX API
4 *
5 * CfgIn.h
6 *
7 * Version 2.7.2.0, 2014-08-25
8 *
9 * (c) maximatecc 2013
10 *
11 * File description:
12 * Configurable inputs
13 *
14 * Use the function GetCfgIn() to get a handle to pass on to the other functions.
15 * Use the method CfgIn_release(CFGINHANDLE) to return the handle.
16 *
17 * Example Usage:
18 * @include cfgin_example.cpp
19 *
20 ************************************************/
21 #ifndef CC_CFGIN_H
22 #define CC_CFGIN_H
23 
24 #include "CCAuxErrors.h"
25 #include "CCPlatform.h"
26 
27 #ifdef __cplusplus
28 namespace CrossControl {
29 #endif
30 
31  typedef void* CFGINHANDLE;
32 
46  EXTERN_C
47  CCAUXDLL_API
49  CCAUXDLL_CALLING_CONV
50  GetCfgIn(void);
51 
62  EXTERN_C
63  CCAUXDLL_API
64  void
65  CCAUXDLL_CALLING_CONV
67 
68 
83  EXTERN_C
84  CCAUXDLL_API
85  eErr
86  CCAUXDLL_CALLING_CONV
87  CfgIn_setCfgInMode (CFGINHANDLE, unsigned char channel, CfgInModeEnum set_mode);
88 
89 
104  EXTERN_C
105  CCAUXDLL_API
106  eErr
107  CCAUXDLL_CALLING_CONV
108  CfgIn_getCfgInMode (CFGINHANDLE, unsigned char channel, CfgInModeEnum* get_mode);
109 
129  EXTERN_C
130  CCAUXDLL_API
131  eErr
132  CCAUXDLL_CALLING_CONV
133  CfgIn_getValue (CFGINHANDLE, unsigned char channel, unsigned short* sample_value);
134 
135 
151  EXTERN_C
152  CCAUXDLL_API
153  eErr
154  CCAUXDLL_CALLING_CONV
155  CfgIn_getPwmValue (CFGINHANDLE, unsigned char channel, float* frequency, unsigned char* duty_cycle);
156 
157 
158 #ifdef __cplusplus
159 } /* namespace CrossControl */
160 #endif
161 
162 #endif /* CC_CFGIN_H */
163