深圳大元创科技主要经营温湿度控制器|机房环境监控|串口服务器|漏水控制器|温湿度控制仪|温湿度监控表|智能温湿度控制器|温湿度传感器|漏水传感器|智能温湿度传感器

服务热线:0755-36821156     

当前位置: 机房监控 > 新闻中心 > 展会报道

G485V11.h&(Gicren&G485-串口服务

 

//***********************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

 

 关于大元创 |  公司产品展示 |  大元创新闻 |  服务支持 |  加盟大元创 |  公司荣誉 |  联系我们 |  网站地图 |  企业邮箱 
收缩
  • 点击在线咨询