?? adc.h
字號(hào):
/* ------------------------------------------------------------
File Name: adc.h
Auther: Samuel
Revision: R1
History: R1 Jul.05, 2007 Creation
------------------------------------------------------------ */
/* define to prevent recursive inclusion */
#ifndef __ADC_H
#define __ADC_H
/* includes --------------------------------------------------------------- */
#include <c8051f020.h>
#include "common.h"
/* types ------------------------------------------------------------------ */
typedef enum
{
CH0,
CH1,
CH2,
CH3,
CH4,
CH5,
CH6,
CH7,
T_SENSER
}
ADC_Channel_t;
/* functions -------------------------------------------------------------- */
void ADC0_Init(void);
void ADC0_Channel_Select(ADC_Channel_t ADC_Channel);
void ADC1_Init(void);
void ADC1_Channel_Select(ADC_Channel_t ADC_Channel);
/* ---------- top level core functions ---------- */
/* ---------- support functions ---------- */
#endif /* __ADC_H */
/* End of adc.h */
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -