#ifndef _ADC_H_ #define _ADC_H_ #include "port.h" #include "systick.h" #include "ozone_work.h" void ADCInit(void); uint16_t get_adc_value(void); void adc_loop_gather(void); void beg_average_value(uint16_t *adc_buff); typedef struct { bool abnormal_state; bool past_count_reached_five; bool first_detection_abnormal; uint16_t adc_value_buff[5]; uint8_t adc_value_count; }adc_t; // typedef struct { // uint16_t adc_value_buff[5]; // uint8_t adc_value_count; // bool abnormal_state; // bool past_count_reached_five; //Ïû¶¶Ê¹Óà // } adc_t; #endif