rm5248 / cserial Goto Github PK
View Code? Open in Web Editor NEWCross-platform serial port access through C
License: Apache License 2.0
Cross-platform serial port access through C
License: Apache License 2.0
Fix: L28 c_serial.c
#define GET_SPEED_SWITCH(SPD,io) case B##SPD: baud_return = SPD;
by
#define GET_SPEED_SWITCH(SPD,io) case B##SPD: baud_return = SPD; break;
cserial_read is a blocking call, with no way to only read when there is data. What should be done is the Event handle from the OVERLAPPED structure should be given back to the user some how in order for them to use a platform-specific function(on Linux, poll(), on Windows, WaitForSingleObjects/MsgWaitForMultipleObjectsEx).
It looks like what Qt does for serial ports is to pass back the event handle from the OVERLAPPED structure, and in the main loop it has a call to MsgWaitForMultipleObjectsEx() to wait for events on any HANDLE.
Increase the amount of memory that is freed, should be a max of 512.
Should the library support RS-485? On Linux, this means setting the TIOCSRS485 on the serial port. Otherwise we would have to set the RTS line ourselves.
How widely used is this? It can definitely be worked around by setting it manually.
c_serial_get_stop_btis
should be declared obsolete and add c_serial_get_stop_bits
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.