#ifndef _STATS_H #define _STATS_H int stat_fer,stat_print; float fer; unsigned int poly; int longblock,longcrc,numblocks=1; int mode_i; int print_bits; struct utils_param params[] = { {"mode",STAT_TYPE_INT,1,&mode_i}, {"longblock",STAT_TYPE_INT,1,&longblock}, {"longcrc",STAT_TYPE_INT,1,&longcrc}, {"numblocks",STAT_TYPE_INT,1,&numblocks}, {"poly",STAT_TYPE_INT,1,&poly}, {"print_bits",STAT_TYPE_INT,1,&print_bits}, {NULL, 0, 0, 0}}; struct utils_stat stats[] = { {"block_error", STAT_TYPE_FLOAT, 1, &stat_fer, (void*)&fer, WRITE}, {"print_bits", STAT_TYPE_INT, 1, &stat_print, (void*)&print_bits, READ}, {NULL, 0, 0, 0, 0, 0}}; #endif /* _STATS_H */