clear_serialT_clear_serialClearSerialClearSerialclear_serial (Operator)
Name
clear_serialT_clear_serialClearSerialClearSerialclear_serial
— Clear the buffer of a serial connection.
Signature
Description
clear_serialclear_serialClearSerialClearSerialClearSerialclear_serial
discards data written to the serial device
referred to by SerialHandleSerialHandleSerialHandleSerialHandleserialHandleserial_handle
, but not transmitted
(ChannelChannelChannelChannelchannelchannel
= 'output'"output""output""output""output""output"), or data received, but not
read (ChannelChannelChannelChannelchannelchannel
= 'input'"input""input""input""input""input"), or performs both these
operations at once (ChannelChannelChannelChannelchannelchannel
= 'in_out'"in_out""in_out""in_out""in_out""in_out").
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
This operator modifies the state of the following input parameter:
During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.
Parameters
SerialHandleSerialHandleSerialHandleSerialHandleserialHandleserial_handle
(input_control, state is modified) serial →
HSerial, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Serial interface handle.
ChannelChannelChannelChannelchannelchannel
(input_control) string →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Buffer to be cleared.
Default value:
'input'
"input"
"input"
"input"
"input"
"input"
List of values: 'in_out'"in_out""in_out""in_out""in_out""in_out", 'input'"input""input""input""input""input", 'output'"output""output""output""output""output"
Result
If the parameters are correct and the buffers of the serial device
could be cleared, the operator clear_serialclear_serialClearSerialClearSerialClearSerialclear_serial
returns the
value TRUE. Otherwise an exception is raised.
Possible Predecessors
open_serialopen_serialOpenSerialOpenSerialOpenSerialopen_serial
Possible Successors
read_serialread_serialReadSerialReadSerialReadSerialread_serial
,
write_serialwrite_serialWriteSerialWriteSerialWriteSerialwrite_serial
See also
read_serialread_serialReadSerialReadSerialReadSerialread_serial
Module
Foundation