27 *c_outChar = c_inChar;
52 *c_outChar = c_inChar;
80 *c_outChar = c_inChar;
123 #ifndef MICROCONTROLLER
127 #define B_IS_SPEC b_isSpec
153 #if !defined(MICROCONTROLLER) || defined(__DOXYGEN__)
173 #ifndef MICROCONTROLLER
179 if (xferVar[u_index].pu8_data != NULL) {
180 free(xferVar[u_index].pu8_data);
181 free(xferVar[u_index].psz_format);
182 free(xferVar[u_index].psz_name);
183 free(xferVar[u_index].psz_desc);
189 #ifndef MICROCONTROLLER
196 memset(xferVar, 0,
sizeof(xferVar));
212 #if !defined(MICROCONTROLLER) || defined(__DOXYGEN__)
248 if (pu8_data == NULL) {
255 #ifdef MICROCONTROLLER
269 uint u_byteIndex = u_index / 8;
271 uint8_t u8_mask = 1 << (u_index % 8);
281 uint u_byteIndex = u_index / 8;
283 uint8_t u8_mask = 1 << (u_index % 8);
295 if (xferVar[
u_index].u8_size != (u_varLength - 1)) {
304 #ifndef MICROCONTROLLER
338 st_len = strlen(psz_s) + 1;
339 pXferVar->
psz_format = (
char*) malloc(
sizeof(
char)*st_len);
345 st_len = strlen(psz_s) + 1;
346 pXferVar->
psz_name = (
char*) malloc(
sizeof(
char)*st_len);
352 st_len = strlen(psz_s) + 1;
353 pXferVar->
psz_desc = (
char*) malloc(
sizeof(
char)*st_len);
378 static uint u_varLength;
380 static uint8_t* pu8_data = NULL;
381 #ifndef MICROCONTROLLER
383 static char c_lastCommand;
474 #ifdef MICROCONTROLLER
496 #ifndef MICROCONTROLLER
502 if (pu8_data == NULL)
525 if (--u_varLength == 0) {
528 #ifndef MICROCONTROLLER
538 #ifndef MICROCONTROLLER
544 if (pu8_data == NULL)
550 #ifndef MICROCONTROLLER
578 #ifndef MICROCONTROLLER
604 "interrupted command",
607 "variable size mismatch",
608 "read only variable",
609 "illegal variable specification",