Code Monkey home page Code Monkey logo

libuartcommprotocolv2's Introduction

libUartCommProtocolV2

1、模块的用途:串口应用层协议栈,实现类TCP协议可靠传输:保证CommProtocolPacketAssembleAndSend发送的数据【必达、有序、不重复】,也支持类似UDP传输  
2、平台适用性:该模块适用于一切平台,本身不依赖任何和系统相关的头文件及系统函数  
3、可移植性:  通过CommProtocolRegisterHooks注册,实现向各平台porting  
4、调用流程:  
4.1、通过CommProtocolRegisterHooks注册协议栈需要的功能函数,主要包含三类:动态内存分配相关函数 (必备)  
                                                                  信号量相关函数      (非必备,建议注册,可提升性能)  
                                                                  睡眠函数           (必备)  
4.2、通过CommProtocolInit初始化协议栈  
4.3、通过CommProtocolReceiveUartData接收串口收到的数据,进行协议栈解析  
4.4、通过CommProtocolPacketAssembleAndSend发送数据  
4.5、通过CommProtocolFinal注销模块,该接口理论上不应该调到  

libuartcommprotocolv2's People

Contributors

junlon2006 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.