Intermec Janus 2020 Reference Manual - Im_Cancel_Tx_Buffer
im_cancel_tx_buffer
3-12
im_cancel_tx_buffer
Purpose:
This function clears the contents of the transmit buffer, stops transmission in
progress, and resets the communications port.
Use this function with Polling Mode D to clear out the buffer. Other
protocols clear the buffer automatically.
Syntax:
With Intrmecd_IO, Intrmecp_IO;
Use Intrmecd_IO, Intrmecp_IO;
function im_cancel_tx_buffer (
port : IN IM_COM_PORT
) return System.Word;
IN Parameter:
The port_id parameter identifies the communications port as follows:
IM_COM1
COM1
IM_COM2
COM2, scanner port (2010 and 2050)
IM_COM4
COM4 (RF only)
Return Value:
This function returns one of the standard status codes listed in Appendix A,
“Status Codes.”
If there are no pending transmissions to receive, this function returns 4602H
(no client).
Notes:
You must install a protocol handler to use this function.
See also:
im_transmit_buffer_no_wait, im_transmit_buffer_noprot,
im_transmit_buffer
Example
See example for im_receive_buffer.