int datatype; int stat_signal,stat_att,stat_avglen; int input_i[INPUT_MAX_DATA],output_i[OUTPUT_MAX_DATA]; int att=1000,avg_len; struct utils_param params[] = { /** allowed types: * bitstream 0 * char 1 * short 2 * int 3 * float 4 */ {"datatype",STAT_TYPE_INT,1,&datatype}, {"avg_len",STAT_TYPE_INT,1,&avg_len}, {"att",STAT_TYPE_INT,1,&att}, {NULL, 0, 0, 0}}; struct utils_stat stats[] = { {"output_signal", STAT_TYPE_INT, 1024, &stat_signal, (void*)output_i, WRITE}, {"att", STAT_TYPE_INT, 1, &stat_att, (void*)&att, READ}, {"avg_len", STAT_TYPE_INT, 1, &stat_avglen, (void*)&avg_len, READ}, {NULL, 0, 0, 0, 0, 0}};