📄 inout.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -