int stat_modulation,stat_outsignal_i,stat_outsignal_q; int mode,modulation,datatype; struct utils_param params[] = { /* 0 bpsk * 1 qpsk * 2 qam4 * 3 psk8 * 4 qam16 */ {"modulation",STAT_TYPE_INT,1,&modulation}, /** datatype is for output. Input is assumed to be a bitstream */ {"datatype",STAT_TYPE_INT,1,&datatype}, {NULL, 0, 0, 0}}; struct utils_stat stats[] = { {"modulation", STAT_TYPE_INT, 1, &stat_modulation, (void*)&modulation, READ}, {"out_signal_i", STAT_TYPE_FLOAT, 100, &stat_outsignal_i, (void*)output_data_i, WRITE}, {"out_signal_q", STAT_TYPE_FLOAT, 100, &stat_outsignal_q, (void*)output_data_q, WRITE}, {NULL, 0, 0, 0, 0, 0}};