27 #ifndef __SUBTEC_CONNECTOR_H__
28 #define __SUBTEC_CONNECTOR_H__
33 #define GSW_CC_EMBEDDED_COLOR (0xff000000)
34 #define GSW_CC_COLOR(r,g,b) ( (((r) & 0xFF) << 16) | (((g) & 0xFF) << 8) | ((b) & 0xFF) )
36 #define GSW_MAX_CC_COLOR_NAME_LENGTH 32
45 char name[GSW_MAX_CC_COLOR_NAME_LENGTH];
48 #define GSW_CC_COLOR_MAX 32
67 GSW_CC_OPACITY_EMBEDDED = -1,
69 GSW_CC_OPACITY_FLASHING,
70 GSW_CC_OPACITY_TRANSLUCENT,
71 GSW_CC_OPACITY_TRANSPARENT,
80 GSW_CC_FONT_SIZE_EMBEDDED = -1,
81 GSW_CC_FONT_SIZE_SMALL,
82 GSW_CC_FONT_SIZE_STANDARD,
83 GSW_CC_FONT_SIZE_LARGE,
84 GSW_CC_FONT_SIZE_EXTRALARGE,
89 static const char *CCSupportedColors_strings[] = {
101 static unsigned long CCSupportedColors[] = {
115 #define GSW_CC_MAX_FONT_NAME_LENGTH 128
117 typedef char gsw_CcFontStyle[GSW_CC_MAX_FONT_NAME_LENGTH];
119 #define GSW_CC_FONT_STYLE_EMBEDDED "embedded" //"EMBEDDED"
120 #define GSW_CC_FONT_STYLE_DEFAULT "Default" //"DEFAULT"
121 #define GSW_CC_FONT_STYLE_MONOSPACED_SERIF "MonospacedSerif" //"MONOSPACED_SERIF"
122 #define GSW_CC_FONT_STYLE_PROPORTIONAL_SERIF "ProportionalSerif" //"PROPORTIONAL_SERIF"
123 #define GSW_CC_FONT_STYLE_MONOSPACED_SANSSERIF "MonospacedSansSerif" //"MONOSPACED_SANSSERIF"
124 #define GSW_CC_FONT_STYLE_PROPORTIONAL_SANSSERIF "ProportionalSansSerif" //"PROPORTIONAL_SANSSERIF"
125 #define GSW_CC_FONT_STYLE_CASUAL "Casual" //"CASUAL"
126 #define GSW_CC_FONT_STYLE_CURSIVE "Cursive" //"CURSIVE"
127 #define GSW_CC_FONT_STYLE_SMALL_CAPITALS "SmallCapital" //"SMALL_CAPITALS"
135 GSW_CC_TEXT_STYLE_EMBEDDED_TEXT = -1,
136 GSW_CC_TEXT_STYLE_FALSE,
137 GSW_CC_TEXT_STYLE_TRUE,
138 GSW_CC_TEXT_STYLE_MAX
147 GSW_CC_BORDER_TYPE_EMBEDDED = -1,
148 GSW_CC_BORDER_TYPE_NONE,
149 GSW_CC_BORDER_TYPE_RAISED,
150 GSW_CC_BORDER_TYPE_DEPRESSED,
151 GSW_CC_BORDER_TYPE_UNIFORM,
152 GSW_CC_BORDER_TYPE_SHADOW_LEFT,
153 GSW_CC_BORDER_TYPE_SHADOW_RIGHT,
154 GSW_CC_BORDER_TYPE_MAX
162 GSW_CC_EDGE_TYPE_EMBEDDED = -1,
163 GSW_CC_EDGE_TYPE_NONE,
164 GSW_CC_EDGE_TYPE_RAISED,
165 GSW_CC_EDGE_TYPE_DEPRESSED,
166 GSW_CC_EDGE_TYPE_UNIFORM,
167 GSW_CC_EDGE_TYPE_SHADOW_LEFT,
168 GSW_CC_EDGE_TYPE_SHADOW_RIGHT,
199 GSW_CC_ATTRIB_FONT_COLOR = 0x0001,
200 GSW_CC_ATTRIB_BACKGROUND_COLOR = 0x0002,
201 GSW_CC_ATTRIB_FONT_OPACITY = 0x0004,
202 GSW_CC_ATTRIB_BACKGROUND_OPACITY = 0x0008,
203 GSW_CC_ATTRIB_FONT_STYLE = 0x0010,
204 GSW_CC_ATTRIB_FONT_SIZE = 0x0020,
205 GSW_CC_ATTRIB_FONT_ITALIC = 0x0040,
206 GSW_CC_ATTRIB_FONT_UNDERLINE = 0x0080,
207 GSW_CC_ATTRIB_BORDER_TYPE = 0x0100,
208 GSW_CC_ATTRIB_BORDER_COLOR = 0x0200,
209 GSW_CC_ATTRIB_WIN_COLOR = 0x0400,
210 GSW_CC_ATTRIB_WIN_OPACITY = 0x0800,
211 GSW_CC_ATTRIB_EDGE_TYPE = 0x1000,
212 GSW_CC_ATTRIB_EDGE_COLOR = 0x2000,
221 CC_VL_OS_API_RESULT_SUCCESS = 0x0,
222 CC_VL_OS_API_RESULT_FAILED = 0x1000000,
223 CC_VL_OS_API_RESULT_CHECK_ERRNO = 0x1000001,
224 CC_VL_OS_API_RESULT_UNSPECIFIED_ERROR = 0x1000002,
225 CC_VL_OS_API_RESULT_ACCESS_DENIED = 0x1000003,
226 CC_VL_OS_API_RESULT_NOT_IMPLEMENTED = 0x1000004,
227 CC_VL_OS_API_RESULT_NOT_EXISTING = 0x1000005,
228 CC_VL_OS_API_RESULT_NULL_PARAM = 0x1000006,
229 CC_VL_OS_API_RESULT_INVALID_PARAM = 0x1000007,
230 CC_VL_OS_API_RESULT_OUT_OF_RANGE = 0x1000008,
231 CC_VL_OS_API_RESULT_OPEN_FAILED = 0x1000009,
232 CC_VL_OS_API_RESULT_READ_FAILED = 0x1000010,
233 CC_VL_OS_API_RESULT_WRITE_FAILED = 0x1000011,
234 CC_VL_OS_API_RESULT_MALLOC_FAILED = 0x1000012,
235 CC_VL_OS_API_RESULT_TIMEOUT = 0x1000013,
236 CC_VL_OS_API_RESULT_INFINITE_LOOP = 0x1000014,
237 CC_VL_OS_API_RESULT_BUFFER_OVERFLOW = 0x1000015,
239 } CC_VL_OS_API_RESULT;
276 GSW_CC_ANALOG_SERVICE_NONE = 0,
293 CCDigitalChannel_INCLUSIVE_MINIMUM = 0,
372 CCStatus_EXCLUSIVE_MAXIMUM
375 typedef int mrcc_Error;
376 namespace subtecConnector
381 mrcc_Error initHal();
382 mrcc_Error initPacketSender();
386 mrcc_Error ccShow(
void);
387 mrcc_Error ccHide(
void);
389 mrcc_Error ccSetDigitalChannel(
unsigned int channel);
391 mrcc_Error ccSetAnalogChannel(
unsigned int channel);
404 #endif //__SUBTEC_CONNECTOR_H__