| 1 | <refentry id="serialFlush"> |
| 2 | <indexterm |
| 3 | id="IndexSerialFlush"><primary>serialFlush</primary></indexterm> |
| 4 | |
| 5 | <refentryinfo><title>Serial I/O</title></refentryinfo> |
| 6 | <refmeta> |
| 7 | <refentrytitle>serialFlush</refentrytitle> |
| 8 | </refmeta> |
| 9 | |
| 10 | <refnamediv> |
| 11 | <refname>serialFlush</refname> |
| 12 | <refpurpose> |
| 13 | Flush data from a serial port. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para>Plugin opcode in serial.</para> |
| 20 | <para> |
| 21 | Flush to the screen any bytes (up to 32k) in the input buffer. |
| 22 | Note that these bytes will be cleared from the buffer. |
| 23 | use this opcode mainly for debugging messages. |
| 24 | If you want to mix debugging and other communication |
| 25 | messages over the same port, you will need to manually |
| 26 | parse the data with the <emphasis>serialRead</emphasis> opcode. |
| 27 | </para> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Syntax</title> |
| 32 | <synopsis> <command>serialFlush</command> iPort</synopsis> |
| 33 | </refsect1> |
| 34 | |
| 35 | <refsect1> |
| 36 | <title>Performance</title> |
| 37 | <para> |
| 38 | <emphasis>iPort</emphasis> -- port number optained from a |
| 39 | <emphasis>serialBegin</emphasis> opcode. |
| 40 | </para> |
| 41 | </refsect1> |
| 42 | |
| 43 | <refsect1> |
| 44 | <title>See Also</title> |
| 45 | <para><link linkend="nonMIDIdevices"><citetitle>non-MIDI Devices</citetitle></link></para> |
| 46 | </refsect1> |
| 47 | |
| 48 | <refsect1> |
| 49 | <title>Credits</title> |
| 50 | <para> |
| 51 | <simplelist> |
| 52 | <member>Author: &namematt;</member> |
| 53 | <member>2011</member> |
| 54 | </simplelist> |
| 55 | </para> |
| 56 | <para>New in version 5.14</para> |
| 57 | </refsect1> |
| 58 | </refentry> |