?? jbdcomm.h
字號:
/**********************************************************
*
* 文件名:jbDComm.h
* 功 能:存放有關(guān)下載通信的變量和函數(shù)定義
*
*********************************************************/
#include <jjf24b.h>
#ifndef JBDCOMM_HEADER_FILE
#define JBDCOMM_HEADER_FILE 1
// 全局變量定義:
extern bool fFlash;
extern bool fWorkMode;
extern bool fWaitExit;
extern bool fFirstCmd;
extern bool fLockRequest;
extern bool fDialForm;
extern byte bDlpReason;
extern byte idata bLastCmd;
extern byte xdata bFailTimes;
extern byte bStatusWord;
extern byte cbLineState;
extern byte cbFangDao;
extern byte idata cbRingTimes;
extern byte idata bRecSBUF;
extern byte idata bErrorCode;
extern byte OutBuf;
extern byte InBuf;
extern byte xdata aDataBuf[];
extern byte idata aNumBuf[];
extern byte idata aParaBuf[];
extern byte xdata aLargeBuf[];
extern byte code aDlpLCDSegment[];
extern void DlpDispOut(void);
extern void DlpDispClr(void);
extern void DlpDispSymbol(byte);
extern void DlpDispCmd(byte);
extern void DlpDispLP(void);
extern byte idata bParaByte;
extern uint idata iParaWord;
extern ulint idata lParaLWord;
extern byte bPaBuf; // 包數(shù)量(每包128字節(jié))
extern byte bNeBuf; // 剩余字節(jié)
extern uint iPaNeNum; // 由bPaBuf和bNeBuf決定的字節(jié)數(shù)
extern uint iAddress;
// 函數(shù)原型聲明:
bool DlpDial(void);
void DlpUartWait(void);
void DlpComm(void);
void DlpFlashComm(void);
void DlpSpeaker(byte);
bool DlpDetectConnectTone(byte);
bool DlpConnectModem(void);
bool DlpDynamicPassword(void);
void DlpWriteOut(uint,byte);
void DlpClose(byte);
void DlpOpen(byte);
bool DlpSendTelNum(bool);
bool DlpQueryVersion(void);
bool DlpRecvFirstOK(void);
extern void DlpReadData(byte,uint,byte);
// 底層函數(shù)聲明:
bool DlpRxCmd(void); // 串口底層通信函數(shù)
bool DlpRxByte(void);
void DlpTxCmd(byte);
bool DlpTxByte(byte);
bool DlpTxPaNe(void);
bool DlpRxPaNe(void);
bool DlpTxData(void);
bool DlpRxData(uint);
void DlpWriteModem(byte,byte);
byte DlpModemRead(byte);
void DlpResetModem(void);
extern void DlpDelay5MS(byte);
extern void DlpDelaySecond(byte);
extern void DlpPage(byte);
extern void DlpDispErrorCode(byte);
extern bool fSecond;
extern bool fMinute;
extern byte cbDelay5MS;
extern bool fDelay5MS;
extern byte cbDelaySecond;
extern bool fDelaySecond;
extern bool fTxDataReady;
extern bool fRxDataReady;
extern byte idata cbRingPulseNum;
#endif
//
// End file: jbdcomm.h
//
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -