Important: The information in this document is obsolete and should not be used for new development.
I_SetSerialXOffState
This command sets the XOFF state of the serial port. Setting XOFF is equivalent to receiving an XOFF character, and clearing XOFF is equivalent to receiving an XON character. A value ofkOTSerialForceXOffFalse
unconditionally clears the XOFF state, while a value ofkOTSerialForceXOffTrue
unconditionally sets it. The following line of code unconditionally sets the XOFF state:
OTIoctl(theSerialEndpoint, I_SetSerialXOffState, kOTSerialForceXOffTrue);Setting the XOFF state is equivalent to using a serial driver control call with acsCode
value of 21, and clearing the XOFF state is equivalent to using acsCode
value of 22.