int stat_signal,stat_snr,stat_dataout,stat_gain; float snr=100.0; float gain; int datatype; int datatype_in; float inputf[INPUT_MAX_DATA*8]; struct utils_param params[] = { /** allowed types: * bitstream 0 * char 1 * short 2 * int 3 * float 4 */ {"output_datatype",STAT_TYPE_INT,1,&datatype}, {"input_datatype",STAT_TYPE_INT,1,&datatype_in}, {"gain",STAT_TYPE_FLOAT,1,&gain}, {"EbNo",STAT_TYPE_FLOAT,1,&snr}, {NULL, 0, 0, 0}}; struct utils_stat stats[] = { {"EbNo_dB", STAT_TYPE_FLOAT, 1, &stat_snr, (void*)&snr, READ}, {"Gain", STAT_TYPE_FLOAT, 1, &stat_gain, (void*)&gain, READ}, {"Signal_Amplitude", STAT_TYPE_FLOAT, 128, &stat_dataout, (void*)inputf, WRITE}, {NULL, 0, 0, 0, 0, 0}};