static void show_valtable_list(valtable_list_t *valtable_list) { for(;valtable_list!=NULL;valtable_list=valtable_list->next) { printf("%s;\"%s\";", valtable_list->valtable->name, valtable_list->valtable->comment?valtable_list->valtable->comment:""); show_val_map(valtable_list->valtable->val_map); } }
static void show_signal(signal_list_t *sl) { printf("%s;" /* signal name */ "%s;" /* mux type */ "%ld;" /* mux value */ "%d;" /* bit start */ "%d;" /* bit len */ "%d;" /* endianess */ "%d;" /* signedness */ "%f;" /* scale */ "%f;" /* offset */ "%f;" /* min */ "%f;" /* max */ "%s;" /* signal val type */ "\"%s\";" /* unit */ , /* Signal */ sl->signal->name, decode_mux_type(sl->signal->mux_type), sl->signal->mux_value, sl->signal->bit_start, sl->signal->bit_len, sl->signal->endianess, sl->signal->signedness, sl->signal->scale, sl->signal->offset, sl->signal->min, sl->signal->max, decode_signal_val_type(sl->signal->signal_val_type), sl->signal->unit?sl->signal->unit:""); show_string_list(sl->signal->receiver_list); putchar(';'); //printf("\"%s\";",sl->signal->comment?sl->signal->comment:""); if(sl->signal->comment) { show_string(sl->signal->comment); putchar(';'); } else { putchar(';'); } show_attribute_list(sl->signal->attribute_list); putchar(';'); show_val_map(sl->signal->val_map); putchar('\n'); }
static void show_envvars(envvar_list_t *envvar_list) { envvar_list_t *el; for(el = envvar_list; el != NULL; el = el->next) { const char *string_from_et[] = { "INTEGER", "FLOAT", "STRING", "DATA", }; const char *string_from_at[] = { "UNRESTRICTED", "READONLY", "WRITEONLY", "READWRITE", }; printf("\"%s\";%s;%s;%ld;%ld;\"%s\";%ld;%ld;", el->envvar->name, string_from_et[(int)el->envvar->envtype], string_from_at[(int)el->envvar->access], el->envvar->min, el->envvar->max, el->envvar->unit, el->envvar->initial, el->envvar->index); /* print node list */ show_string_list(el->envvar->node_list); printf(";"); /* print value map */ show_val_map(el->envvar->val_map); printf("\n"); } }