im_link_comm
With Intrmecd_IO, Intrmecp_IO;
Syntax:
Use Intrmecd_IO, Intrmecp_IO;
function im_link_comm (
) return System.Word;
IN Parameter:
The port parameter is one of the following constants:
IM_COM1
IM_COM2
IM_COM4
The buffer_ptr parameter is a pointer to a memory area used by the Reader
Wedge. Your application should not use this buffer.
The buffer_size parameter is the actual number of bytes allocated in the
buffer parameter (suggested size is 300 bytes).
None.
OUT Parameter:
This function returns one of the standard status codes listed in Appendix A,
Return Value:
"Status Codes."
You must install a protocol handler to use this function.
Notes:
You must install the Reader Wedge to use this function. For information, see
"Runtime Requirements" in Chapter 2, "Working With Ada."
Use this function if you want to receive data with im_irl_y or to use the
communications port with im_receive_input and im_irl_v.
Your program only needs to call this function once, and you must unlink at
the end of your application using im_unlink_comm.
im_unlink_comm, im_receive_input, im_irl_v, im_irl_y,
See Also:
im_serial_protocol_control
Example
See example for im_irl_y.
3-74
port
: In IM_COM_PORT,
buffer_ptr
: In System.Address;
buffer_size
: In System.Word;
COM1
COM2, scanner (2010 and 2050)
COM4 (RF only)