int int_out_i[OUTPUT_MAX_DATA],int_out_q[OUTPUT_MAX_DATA]; int stat_sinfreq,stat_sampfreq,stat_kv,stat_kp,stat_outphase,stat_errorphase,stat_vco; int datatype; float error_phase[4096],vco_v[4096]; float fsin, freq,Kv,Kp; struct utils_param params[] = { {"Kv", STAT_TYPE_FLOAT, 1, &Kv}, {"Kp", STAT_TYPE_FLOAT, 1, &Kp}, {"freq_sin", STAT_TYPE_FLOAT, 1, &fsin}, {"freq_samp", STAT_TYPE_FLOAT, 1, &freq}, {"datatype",STAT_TYPE_INT,1,&datatype}, {NULL, 0, 0, 0}}; struct utils_stat stats[] = { {"freq_sin", STAT_TYPE_FLOAT, 1, &stat_sinfreq, (void*)&fsin, READ}, {"freq_samp", STAT_TYPE_FLOAT, 1, &stat_sampfreq, (void*)&freq, READ}, {"Kv", STAT_TYPE_FLOAT, 1, &stat_kv, (void*)&Kv, READ}, {"Kp", STAT_TYPE_FLOAT, 1, &stat_kp, (void*)&Kp, READ}, {"output_phase", STAT_TYPE_FLOAT, 256, &stat_outphase, (void*)output_phase, WRITE}, {"error_phase", STAT_TYPE_FLOAT, 512, &stat_errorphase, (void*)error_phase, WRITE}, {"vco", STAT_TYPE_FLOAT, 128, &stat_vco, (void*)vco_v, WRITE}, {NULL, 0, 0, 0, 0, 0}};