freescale

来自「Freescale 系列单片机常用模块与综合系统设计」· 代码 · 共 24 行

TXT
24
字号
#ifndef __AD_Process_H
#define __AD_Process_H

extern unsigned int dark_buffer[4];            // buffer for 4 ADC samples
extern unsigned int light_buffer[4];           // buffer for 4 ADC samples
extern unsigned int dark_average;              // Average 4 samples with no IRLED
extern unsigned int light_average;             // Average 4 samples with IRLED on
extern unsigned char smoke_detect_count ;   // Counter for smoke detections
extern unsigned char alarm_flag;           // Alarm status. 1 means smoke

void Sample (void);
void Average (void);

/* END Events */
#endif /* __Events_H*/

/*
** ###################################################################
**
**     This file was created by UNIS Processor Expert 3.03 [04.07]
**     for the Freescale HCS08 series of microcontrollers.
**
** ###################################################################
*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?