Coder Social home page Coder Social logo

cserial's People

Contributors

linquize avatar rm5248 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cserial's Issues

c_serial_get_baud_rate returns always 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;

Windows Events

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.

Support RS-485?

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.

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.