CCAux  2.7.2.0
CCAux API reference
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator
CCAuxTypes.h
Go to the documentation of this file.
1 /************************************************
2 *
3 * CROSSCONTROL AUX API
4 *
5 * CCAuxTypes.h
6 *
7 * Version 2.7.2.0, 2014-08-25
8 *
9 * (c) maximatecc 2013
10 *
11 * File description: Common types
12 *
13 ************************************************/
14 
15 #ifndef CCAUXTYPES_H_
16 #define CCAUXTYPES_H_
17 
18 #ifdef __cplusplus
19 namespace CrossControl
20 {
21 #endif
22 
23 #ifndef __cplusplus
24 #define bool int
25 #endif
26 
27 
32 {
57 };
58 
60 typedef enum
61 {
65 
67 typedef enum
68 {
74 
78 typedef enum
79 {
80  Disabled = 0,
81  Enabled = 1
82 } CCStatus;
83 
87 typedef enum
88 {
107  ERR_EEPROM = 18,
123 } eErr;
124 
125 
127 {
131 };
132 
137 {
138  Analog_Channel_1 = 0, /* Analog video channel 1 */
139  Analog_Channel_2 = 1, /* Analog video channel 2 */
140  Analog_Channel_3 = 2, /* Analog video channel 3 */
141  Analog_Channel_4 = 3 /* Analog video channel 4 */
142 };
143 
144 
145 /* Struct used for received video */
147 {
148  unsigned short received_width;
149  unsigned short received_height;
150  unsigned char received_framerate;
151 };
152 
153 /* Struct used for I2c-accesses to decoder */
155 {
156  unsigned char decoder_register;
157  unsigned char register_value;
158 };
159 
160 
161 /* Version info struct */
163 {
164  unsigned char major;
165  unsigned char minor;
166  unsigned char release;
167  unsigned char build;
168 };
169 
170 /* Video standard */
171 /* The video decoder auto detect the video standard */
172 typedef enum
173 {
176  STD_M_PAL = 2,
177  STD_PAL = 3,
178  STD_NTSC = 4,
180 } videoStandard;
181 
183 {
184  RotNone = 0,
188 };
189 
190 typedef struct version_info VersionType;
191 
192 /* Buzzer setup struct */
193 typedef struct
194 {
195  unsigned short frequency;
196  unsigned short volume;
197 } BuzzerSetup;
198 
199 /* Led timing setup struct */
200 typedef struct
201 {
202  unsigned char onTime;
203  unsigned char offTime;
204  unsigned char idleTime;
205  unsigned char nrOfPulses;
206 } LedTimingType;
207 
208 /* For FPGA leds */
209 typedef struct
210 {
211  unsigned char ledNbr;
212  unsigned char onTime;
213  unsigned char offTime;
214  unsigned char idleTime;
215  unsigned char nrOfPulses;
217 
218 /* Led color struct */
219 typedef struct
220 {
221  unsigned char red;
222  unsigned char green;
223  unsigned char blue;
225 
229 typedef enum
230 {
234 } CanFrameType;
235 
245 typedef enum
246 {
261  All_Events = 15,
263 } TriggerConf;
264 
268 typedef enum
269 {
270  NoAction = 0,
273 } PowerAction;
274 
281 typedef enum
282 {
291 
295 typedef enum
296 {
297  OCD_OK = 0,
298  OCD_OC = 1,
300 } OCDStatus;
301 
305 struct TimerType
306 {
307  unsigned long TotRunTime;
308  unsigned long TotSuspTime;
309  unsigned long TotHeatTime;
310  unsigned long RunTime40_60;
311  unsigned long RunTime60_70;
312  unsigned long RunTime70_80;
313  unsigned long Above80RunTime;
314 };
315 
320 {
321  TEMP_CPU = 0,
322  TEMP_BOX = 1,
323  TEMP_ENV = 2,
329 };
330 
331 
336 {
345 };
346 
351 {
353  unsigned char percent;
355 };
356 
360 typedef enum
361 {
362  RED = 0,
369 } CCAuxColor;
370 
374 typedef enum
375 {
380 } RS4XXPort;
381 
385 typedef enum
386 {
396 } CfgInModeEnum;
397 
401 typedef enum
402 {
412 
413 
414 #ifdef __cplusplus
415 }
416 #endif
417 
418 #endif /*CCAUXTYPES_H_*/
419