📄 adi.h
字号:
#ifndef __ADIH__ /* Schutz gegen mehrfaches #include */
#define __ADIH__
/***********************************************************************
* adi.h
* Projekt :
* Funktion: Headerdatei fuer das Softwaremodul "adi.c".
*
* ----------------------------------------------------------------
* Peak-System Technik GmbH
* */
#include "compiler.h"
/*** Konstanten ***/
#define AD_FIRSTCHANNEL 0 /* erster ueberwachter ADC-Kanal */
#define AD_LASTCHANNEL 7 /* letzter " " */
/*** Deklaration von Variable fuer andere Module ***/
#ifndef __ADIC__
#endif
/*** Prototypen fuer Methoden ***/
void AD_Init(void) ;
void AD_1000Hz(void) ;
word AD_Read(uchar chan) ; /* alle 10 bit des Ergebnisses */
void AD_SetTimeConstant(uchar channel, word tau) ;
//void AD_SetSamplePeriod(uchar channel, word period) ;
//void SetMinSampletimes(uchar channel, word tau, word period);
void SetMinSampletimes(uchar channel, word tau); // 06.11.00: period is calculated internal
void SetSampletimeManual(uchar channel, word tau); // New 07.11.00:
__interrupt void irq_adceii(void);
//void InitADC(IO_UNSIGNED8, IO_UNSIGNED8, IO_UNSIGNED8);
#endif /* __ADIH__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -