You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#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
|