adi.h
来自「CanOpen的源代码」· C头文件 代码 · 共 44 行
H
44 行
#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 + =
减小字号Ctrl + -
显示快捷键?