Intermec Janus 2020 Reference Manual - Im_Cancel_Rx_Buffer
im_cancel_rx_buffer
3-11
3
im_cancel_rx_buffer
Purpose:
This function clears the receive buffer of the designated communications
port.
Syntax:
With Intrmecd_IO, Intrmecp_IO;
Use Intrmecd_IO, Intrmecp_IO;
function im_cancel_rx_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)
OUT Parameter:
None.
Return Value:
This function returns one of the standard status codes listed in Appendix A,
“Status Codes.”
If there is no pending input to receive, this function returns 4602H (no
client).
Notes:
You must install a protocol handler to use this function.
See Also:
im_receive_buffer_no_wait, im_receive_buffer_noprot
Example
See example for im_receive_buffer.