int datatype; int stat_avg,stat_rssivect,stat_en,stat_gvect,stat_signal,stat_th,stat_amplitude; int input_i[INPUT_MAX_DATA]; #define STAT_VECT_LEN 512 float gain_vect[STAT_VECT_LEN]; int rssi_vect[STAT_VECT_LEN]; int amplitude=10000; int threshold=10; int enable=1; float gain=1.0; int rssi,avg_len; struct utils_param params[] = { {"datatype",STAT_TYPE_INT,1,&datatype}, {"enable",STAT_TYPE_INT,1,&enable}, {"amplitude",STAT_TYPE_INT,1,&litude}, {"threshold",STAT_TYPE_INT,1,&threshold}, {"avg_len",STAT_TYPE_INT,1,&avg_len}, {NULL, 0, 0, 0}}; struct utils_stat stats[] = { {"output_signal", STAT_TYPE_INT, 1024, &stat_signal, (void*)input_i, WRITE}, {"avg_len", STAT_TYPE_INT, 1, &stat_avg, (void*)&avg_len, READ}, {"gain", STAT_TYPE_FLOAT, 1, &stat_gvect, (void*)&gain, WRITE}, {"rssi", STAT_TYPE_INT, 1, &stat_rssivect, (void*)&rssi, WRITE}, {"threshold", STAT_TYPE_INT, 1, &stat_th, (void*)&threshold, READ}, {"enable", STAT_TYPE_INT, 1, &stat_en, (void*)&enable, READ}, {"amplitude", STAT_TYPE_INT, 1, &stat_amplitude, (void*)&litude, READ}, {NULL, 0, 0, 0, 0, 0}};