Commit 3f16eb1a authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

monitor: show status of multiple aux inputs in the GUI

parent 779c3bc9
...@@ -116,13 +116,16 @@ void wrc_mon_gui(void) ...@@ -116,13 +116,16 @@ void wrc_mon_gui(void)
cprintf(C_GREY, "Aux clock status: "); cprintf(C_GREY, "Aux clock status: ");
aux_stat = spll_get_aux_status(0); int n_ref, n_out, i;
spll_get_num_channels(&n_ref, &n_out);
if (aux_stat & SPLL_AUX_ENABLED) for(i = 0; i<n_out - 1; i++)
cprintf(C_GREEN, "enabled"); {
const char *aux_stat = spll_get_aux_status_string(i);
if (aux_stat & SPLL_AUX_LOCKED) cprintf(C_GREY,"%d:", i);
cprintf(C_GREEN, ", locked"); cprintf(C_GREEN,"%s ", aux_stat);
}
mprintf("\n"); mprintf("\n");
cprintf(C_BLUE, "\nTiming parameters:\n\n"); cprintf(C_BLUE, "\nTiming parameters:\n\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment