| Operators |
clear_serial — Clear the buffer of a serial connection.
clear_serial( : : SerialHandle, Channel : )
clear_serial discards data written to the serial device referred to by SerialHandle, but not transmitted (Channel = 'output'), or data received, but not read (Channel = 'input'), or performs both these operations at once (Channel = 'in_out').
This operator modifies the state of the following input parameter:
The value of this parameter may not be shared across multiple threads without external synchronization.Serial interface handle.
Buffer to be cleared.
Default value: 'input'
List of values: 'in_out', 'input', 'output'
If the parameters are correct and the buffers of the serial device could be cleared, the operator clear_serial returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.
Foundation
| Operators |