adc.h

来自「80c51F020的开发程序 包括ADC DDS DAC」· C头文件 代码 · 共 46 行

H
46
字号
/* ------------------------------------------------------------
	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 */

⌨️ 快捷键说明

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