11 # define SNPRINTF sprintf_s    13 # define SNPRINTF snprintf    34 #if defined(MICROCONTROLLER) || defined(__DOXYGEN__) || defined(UNIT_TESTS)    37            BOOL b_isWriteable, 
char* psz_format, 
char* psz_name,
    44   ASSERTM(
"specifyVar:nullData", pv_data != NULL);
    46   ASSERTM(
"specifyVar:invalidSize", (u_size > 0) && (u_size <= (UINT8_MAX + 1)));
    61   u_len = strlen(psz_format) + strlen(psz_name) + strlen(psz_desc) + 3 - 1 + 1;
    64   outCharXfer(u_len <= UINT8_MAX ? u_len : UINT8_MAX);
    73     if (++u_len > UINT8_MAX) 
return;
    75   } 
while (*psz_format++);
    77     if (++u_len > UINT8_MAX) 
return;
    79   } 
while (*psz_name++);
    81     if (++u_len > UINT8_MAX) 
return;
    83   } 
while (*psz_desc++);
    99   pXferVar = 
xferVar + u_varIndex;
   102 #ifndef MICROCONTROLLER   130 #ifndef MICROCONTROLLER   145   pXferVar = 
xferVar + u_varIndex;
   150   u_size = pXferVar->
u8_size + 1;
   151   ASSERT(u_size <= 
sizeof(um_buf));
   152   memcpy(&um_buf, pXferVar->
pu8_data, u_size);
   156   i_ret = SNPRINTF(psz_buf, s_len, pXferVar->
psz_format, um_buf);
   161 #ifdef MICROCONTROLLER   174     uint32_t u32_count = 0;
   207                 uint64_t u64_timeMs, 
const char** psz_error) {
   209   static uint64_t u64_timeLastMs = 0;
   210   uint64_t u64_timeDeltaMs;
   214   u64_timeDeltaMs = u64_timeMs - u64_timeLastMs;
   215   u64_timeLastMs = u64_timeMs;
   216   if (u64_timeDeltaMs > 100)
 
unsigned int uint
An abbreviation for an unsigned integer. 
void resetReceiveMachine()
int formatVar(uint u_varIndex, char *psz_buf, size_t s_len)
#define CMD_SEND_RECEIVE_VAR
uint8_t isCharReady(void)
const char * getReceiveErrorString()
Returns an error string matching the last error code. 
Routines which implement the uC comm protocol. 
#define SHORT_VAR_MAX_LEN
Configures the system clock. 
uint getReceiveMachineIndex()
XFER_VAR xferVar[NUM_XFER_VARS]
A table to hold the state of transfer variables. 
void outString(const char *psz_s)
void clearReceiveStruct()
BOOL isReceiveMachineData()
char * psz_format
printf format string to use in displaying the variable. PC only. 
void specifyVar(uint u_varIndex, volatile void *pv_data, uint u_size, BOOL b_isWriteable, char *psz_format, char *psz_name, char *psz_desc)
void outChar(uint8_t u8_c)
A system-dependent macro to output one character. 
BOOL isReceiveMachineChar()
void assignBit(uint u_index, BOOL b_bitVal)
RECEIVE_ERROR stepReceiveMachine(char c_inChar)
#define CHAR_RECEIVED_INDEX
RECEIVE_ERROR notifyOfTimeout()
void sendVar(uint u_varIndex)
unsigned char uint8_t
An abbreviation for an 8-bit unsigned integer. 
uint8_t u8_size
Size of data in bytes - 1: 0 = 1 byte, etc. 
char getReceiveMachineOutChar()
BOOL isVarWriteable(uint u_index)
#define ASSERTM(msg, expr)
An assert with message macro; the msg isn't used in C.