Can XON and XOFF be equal?
3 answers
If your driver is solely responsible for handling xon / xoff and the xon / xoff flag characters may be identical, then I would say that for your xon / xoff state, you need to have a small state machine (flag) driver, and only look for xon. when xoff has already been seen.
If you have hardware support for xon / xoff, then you will need to find out if this state is supported by the hardware and return appropriate errors if not.
+2
a source to share