inout.h

来自「指纹识别源代码,用于智能门紧,还有配合MF800卡使用」· C头文件 代码 · 共 55 行

H
55
字号
#ifndef _INOUT_H_
#define _INOUT_H_

// INOUT
#define	IOEXITBUTTON 	0
#define	IODOORCONTACT 	1
#define	IOAUX1 			2
#define	IOAUX2 			3
#define	IOTAMPER 		4
#define	IOR1IDOK 		5
#define	IOR1IDERR 		6
#define	IOR1TSERR 		7
#define	IOR1APBERR 		8
#define	IOR2IDOK 		9
#define	IOR2IDERR 		10
#define	IOR2TSERR 		11
#define	IOR2APBERR 		12
#define	IODURESS 		13
#define	IOOUTTS 		14
#define	IOINTS			15

#define EXITCOUNT	0
#define AUX1COUNT	1
#define AUX2COUNT	2
#define CONTACTCOUNT	3
#define TAMPERCOUNT	4


#define ALWAYSON	99

void aux1chk();
void aux2chk();
void contactchk();
void tamperchk();
void exitchk();
void cleariodef();
bit getiodata(unsigned char ioindex);
void checksaveio(unsigned char ioindex);
void clearoutput();
void init_inout();
#ifndef _INOUT_C_
extern unsigned char xdata tblinout[][5];
//extern unsigned char code tblinoutcode[][5];
extern unsigned char data instate,refreshtimer,contactovertimer;
extern bit duressflag;

extern bit exitfirst,aux1first,aux2first,contactfirst,tamperfirst;
extern bit exitlowfirst,aux1lowfirst,aux2lowfirst,contactlowfirst,tamperlowfirst;


#endif


#endif

⌨️ 快捷键说明

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