freemodbus中文注释版

上传者: xchuda | 上传时间: 2026-03-20 23:16:59 | 文件大小: 422KB | 文件类型: ZIP
毕业设计使用了freeModbus做AVR的从机,那代码写得挺高端的,用了几组状态机。我经验不足,当时研读了一个星期才读完。 阅读代码时我添加了很多中文注释。现在我把注释版发上来。 这些注释只是我对代码的理解,里面可能会有些用词不当甚至是理解错误的注释,请海涵。 注释是针对AVR的,其他平台版本应该也大同小异,大家对比着看。 若需要使用AVR平台的代码,请务必注意以下几点: 1、AVR编译环境请使用WinAVR,编译时使用源码包中带的Makefile。若使用iccAVR可能需要比较多的修改。 2、注意所使用的AVR型号和时钟频率,并在Makefile中修改相应项。 3、源码已比较规范地实现了Modbus从机协议,若无特殊要求,只需在demo.c中添加实现自己功能的函数,其他文件可以不动。 FreeModbus官方主页: http://www.freemodbus.org

文件下载

资源详情

[{"title":"( 34 个子文件 422KB ) freemodbus中文注释版","children":[{"title":"AVR","children":[{"title":"Makefile <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"avrdude.conf <span style='color:#111;'> 234.26KB </span>","children":null,"spread":false},{"title":"excoils.c <span style='color:#111;'> 3.73KB </span>","children":null,"spread":false},{"title":"demo.c <span style='color:#111;'> 3.86KB </span>","children":null,"spread":false},{"title":"port","children":[{"title":"portevent.c <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"port.h <span style='color:#111;'> 4.07KB </span>","children":null,"spread":false},{"title":"mbcrc.c <span style='color:#111;'> 4.94KB </span>","children":null,"spread":false},{"title":"porttimer.c <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"portserial.c <span style='color:#111;'> 3.64KB </span>","children":null,"spread":false}],"spread":true},{"title":"excoils.c.bak <span style='color:#111;'> 3.73KB </span>","children":null,"spread":false},{"title":"demo.c.bak <span style='color:#111;'> 3.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"modbus","children":[{"title":"functions","children":[{"title":"mbfuncinput.c <span style='color:#111;'> 4.72KB </span>","children":null,"spread":false},{"title":"mbfuncholding.c <span style='color:#111;'> 11.92KB </span>","children":null,"spread":false},{"title":"mbfuncdiag.c <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"mbfuncother.c <span style='color:#111;'> 3.88KB </span>","children":null,"spread":false},{"title":"mbutils.c <span style='color:#111;'> 4.98KB </span>","children":null,"spread":false},{"title":"mbfunccoils.c <span style='color:#111;'> 9.66KB </span>","children":null,"spread":false},{"title":"mbfuncdisc.c <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"rtu","children":[{"title":"mbrtu.c <span style='color:#111;'> 12.86KB </span>","children":null,"spread":false},{"title":"mbrtu.h <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false},{"title":"mbcrc.c <span style='color:#111;'> 5.40KB </span>","children":null,"spread":false},{"title":"mbcrc.h <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false}],"spread":true},{"title":"tcp","children":[{"title":"mbtcp.c <span style='color:#111;'> 5.58KB </span>","children":null,"spread":false},{"title":"mbtcp.h <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"ascii","children":[{"title":"mbascii.h <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"mbascii.c <span style='color:#111;'> 15.35KB </span>","children":null,"spread":false}],"spread":true},{"title":"mb.c <span style='color:#111;'> 13.66KB </span>","children":null,"spread":false},{"title":"include","children":[{"title":"mbutils.h <span style='color:#111;'> 4.12KB </span>","children":null,"spread":false},{"title":"mbfunc.h <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":"mbconfig.h <span style='color:#111;'> 5.74KB </span>","children":null,"spread":false},{"title":"mbframe.h <span style='color:#111;'> 3.70KB </span>","children":null,"spread":false},{"title":"mb.h <span style='color:#111;'> 19.25KB </span>","children":null,"spread":false},{"title":"mbproto.h <span style='color:#111;'> 3.63KB </span>","children":null,"spread":false},{"title":"mbport.h <span style='color:#111;'> 4.83KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明