int datatype; int stat_man,stat_off,stat_en,stat_ko,stat_offset_f,stat_fd,stat_offset,stat_sampled,stat_outputsignal,stat_inputder,stat_preatt; int sampled[INPUT_MAX_DATA]; int offset_vec[INPUT_MAX_DATA]; float offset_f_vec[INPUT_MAX_DATA]; int input_i[INPUT_MAX_DATA],output_i[OUTPUT_MAX_DATA]; int long_sq=16; int Ko,preatt; int enable=1; int symbol_rate,fir_delay; int input_der[INPUT_MAX_DATA]; int manual=0,off=0; struct utils_param params[] = { /** allowed types: * bitstream 0 * char 1 * short 2 * int 3 * float 4 */ {"datatype",STAT_TYPE_INT,1,&datatype}, {"symbol_rate",STAT_TYPE_INT,1,&symbol_rate}, {"fir_delay",STAT_TYPE_INT,1,&fir_delay}, {"Ko",STAT_TYPE_INT,1,&Ko}, {"preatt",STAT_TYPE_INT,1,&preatt}, {"manual",STAT_TYPE_INT,1,&manual}, {"off",STAT_TYPE_INT,1,&off}, /** set here your parameters */ {NULL, 0, 0, 0}}; struct utils_stat stats[] = { {"output_signal", STAT_TYPE_INT, 64, &stat_outputsignal, (void*)output_i, WRITE}, {"sampled", STAT_TYPE_INT, 64, &stat_sampled, (void*)sampled, WRITE}, {"input_der", STAT_TYPE_INT, 512, &stat_inputder, (void*)input_der, WRITE}, {"offset", STAT_TYPE_INT, 64, &stat_offset, (void*)offset_vec, WRITE}, {"offset_f", STAT_TYPE_FLOAT, 64, &stat_offset_f, (void*)offset_f_vec, WRITE}, {"fir_delay", STAT_TYPE_INT, 1, &stat_fd, (void*)&fir_delay, READ}, {"Ko", STAT_TYPE_INT, 1, &stat_ko, (void*)&Ko, READ}, {"enable", STAT_TYPE_INT, 1, &stat_en, (void*)&enable, READ}, {"preatt", STAT_TYPE_INT, 1, &stat_preatt, (void*)&preatt, READ}, {"manual_offset", STAT_TYPE_INT, 1, &stat_off, (void*)&off, READ}, {"manual_operation", STAT_TYPE_INT, 1, &stat_man, (void*)&manual, READ}, /** place here other statistics */ {NULL, 0, 0, 0, 0, 0}};