void timer_Init(void); int get_isolatio(void); typedef struct { unsigned int clk; unsigned int bit; unsigned int ers; unsigned Wait; unsigned long Numb; } OPTOCANAL; #define IS_BUFF_SIZE 16 typedef struct { int buff[IS_BUFF_SIZE]; int min_val; int max_val; unsigned int buff_position; int MOms_x_10; int row_MOms; unsigned int sample_time; unsigned int f_not_ready; unsigned int pause_counter; unsigned int pause_time; long long adc_value; }ISOLATION; #define ISOLATION_DEFAULT {{0,0,0,0,0,0,0,0}, 0, 0, 0, 0, 0, 0, 0, 0} extern ISOLATION isolation1; extern ISOLATION isolation2; extern int isol_calibration[2]; void isolation_calc(void); #define TELE_FREQ 2000 // Ãö