📄 373.h
字号:
//#define TTL1PORT 0
//#define TTL2PORT 1
//#define RELAY1PORT 2
//#define RELAY2PORT 3
#ifndef _373_H_
#define _373_H_
#include "reg58.h"
#include "bus.h"
//sbit SEL373=P3^5;
#define DATA373 P0
#define DOORPORT 0
#define ALARMPORT 1
#define TTL1PORT 2
#define TTL2PORT 3
#define BEEPPORT 4
#define RS485PORT 5 //070307
/*enum PORT373
{
DOORRELAY=0,ALARMRELAY,TTL1PORT,TTL2PORT,BEEPRELAY
};*/
void set_373(unsigned char port);
void clr_373(unsigned char port);
void init_373();
void lockdoor();
void unlockdoor();
void conversebeep();
/*void alarmon();
void alarmoff();
void setttl1();
void clrttl1();
void setttl2();
void clrttl2();
void beepon();
void beepoff();
void setttl3();
void setttl4();
void clrttl3();
void clrttl4();*/
bit isdoorlocked();
#ifndef _373_C_
extern bit beeponflag,doorunlockflag,alarmonflag,ttl1onflag,ttl2onflag;
extern unsigned char data beepontimer,doorontimer,alarmontimer,ttl1ontimer,ttl2ontimer;
extern unsigned char buff373;
#endif //_373_C_
#endif //_373_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -