You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently you can not force a break condition using serial2. I think this definitely needs to be fixed.
However, there is no break "bit". A break condition is when a transmitter holds it's line in a logical 0 state for more than a whole byte.
We have a few options to model this. One is to have a function to hold the line in break condition for a given amount of time. Advantage is that it's hard to mis-use. You won't accidentally hold the line in break condition, since the function itself will clear it.
But such a function would also block the current thread, which is a bit of a waste. So toggling the break condition on/off might be a better API.
However, keep in mind that the API needs to be possible on Windows too.
I see you started on a PR already. Would you like to continue with that? :)
I need to set and clear the break bit, which should be possibl on linux at least using
TIOCSBRK
andTIOCCBRK
Asfaict this is not exposed, but could be through the internal
set_pin
functionalityReferences
The text was updated successfully, but these errors were encountered: