//***********************CopyrightGicrenRobotandElectron***********************
//***********************CopyrightGicrenRobotandElectron***********************
//*FileName :G485_V11.h
//*Author :GicrenTeamwww.gicren.com
//*Version :V0001
//*Data :11/01/2013
//*Description :ThifilecontainallthefunctionprototypfortheG485_V11library
//*****************************************************************************************
#ifndef_G485_V11_H
#defin_G485_V11_H
Getthecheckbyteoflastinstructfromslavedevic#definG485_HPID 0x7f //Handshak.e
#definG485_EPID 0x7e //GettheErrorWord
#definG485_SPID_FC 0x7d //Factorisettings
#definG485_SPID_EE 0x7c //UpdatethebytestoreinEEPROM
#definG485_SPID_RS 0x7b //Restart
#definG485_SPID_EC 0x7a //CleartheErrorWord
#definG485_SPID_CE 0x79 //Enabltheimmediwritemode
#definG485_SPID_A E 0x78 //Enabltheno机房监控 href="http://www.jifangjiankong.org/">机房监控nimmediwritemode
#definG485_SPID_A C 0x77 //A ctionwithdatafromnonimmediwritemode
#definG485_SPID_DC 0x76 //Controltransmission
#definG485_SPID_DM 0x75 //Bulktransmission
#definG485_SPID_BB 0x74 //DisabltheBaudRateautodetection
#definG485_WRITE 0x00 //WriteBit
#definG485_REA D 0x01 //ReadBit
#definG485_SMA 127 //SystemMasteraddress
classG485V11
{
private:
unsignchar*BufStartA ddr;
unsigncharBufSize;
unsigncharDelay;
public:
unsigncharNum G485V11unsignchar*BufA ddr.;
unsigncharRegA ddr, unsigncharWriteunsigncharSSA .unsigncharNum;
unsigncharRegA ddr, unsigncharReadunsigncharSSA .unsigncharNum;
unsigncharPID voidSendSPIDunsigncharSSA .;
unsignintGetErrorunsigncharSSA ;
};
#endif