Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Parity and Blocking Read support #3

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

mrh1997
Copy link

@mrh1997 mrh1997 commented Jan 21, 2019

With this extensions the library supports parity checking und blocking reads.
Furthermore some minor additions were added.

to avoid, that the source code has to be modified, when more than
64 devices shall be supported, the corresponding defines
(COM_MAXDEVICES) can be optionally set in the makefile now.

This is especially important on WSL (Windows Subsystem for Linux),
which installs 192 serial devices, no matter if there is a real
hardware counterpart on the windows side.
The Linuxversion defined __USE_MISC without checking if it was already
defined in one of the headers. This might result in compiler warnings.

Furthermore the Windowsversion passed size_t types to uint32_t, which
caused compiler warnings on MSVC 64bit
If the corresponding macros are available from the OS up to 4MBit are
now supported.
the comReadBlocking() allows to specify a timeout. It will wait until
'len' bytes are read or 'timeout' expired.
Now also Parity Bits like ODD and EVEN can be enforced.
During Refactoring conditional defines for macOS were removed
accidentially.
In contrary to Windows Linux had XON/XOFF activated, which
caused swallowing of the characters 0x11 (input) and
0x13 (output).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant