|
#define | INIT_MAPPED_VAR(name, fmt, len) { 0, 0, name, fmt, len, 0} |
| Convenience macro to define an initialization record for a MappedVarRecord structure. More...
|
|
#define | INIT_MAPPED_INT_VAR(name) INIT_MAPPED_VAR(name, "=%d", sizeof(int)) |
| Convenience macro to define an initialization record for a MappedVarRecord representing an integer variable using text output. The output format used is "=%d", yielding output lines like "varName=NNNN". More...
|
|
#define | MAPPED_TYPE_VAR(t, tbl, id) ((t *)(tbl[id].address)) |
| Get the address of a MappedVarRecords value. More...
|
|
#define | MAPPED_INT_VAR(tbl, id) MAPPED_TYPE_VAR(int32_t, tbl,id) |
| Get the address of a MappedVarRecords value representing an integer. More...
|
|
#define | UPDATE_MAPPED_TYPE_VAR(t, tbl, id) { int _l = sprintf((char *) tbl[id].outputAddress, tbl[id].formatPattern, *MAPPED_TYPE_VAR(t, tbl, id)); tbl[id].outputAddress[_l] = ' '; } |
| Update (format) the output value of a MappedVarRecord element. More...
|
|
#define | RELOAD_MAPPED_TYPE_VAR(t, tbl, id) { int _l = sscanf((char *) tbl[id].outputAddress, tbl[id].formatPattern, MAPPED_TYPE_VAR(t, tbl, id)); } |
| Reload the value represented by the formatted text into the native format held by a MappedVarRecord. More...
|
|
#define | UPDATE_MAPPED_INT_VAR(tbl, id) { uint32_t workBfr[6]; uint32_t _l; uint64_t _v = *MAPPED_INT_VAR(tbl, id); char *_r = int_to_ascii(workBfr, sizeof(workBfr), _v, &_l); int _i = 0; while (tbl[id].formatPattern[_i] != '%') { tbl[id].outputAddress[_i] = tbl[id].formatPattern[_i]; _i+=1; } memcpy(tbl[id].outputAddress+_i, _r, _l); } |
|