Intermec 5055 Guía De Referencia

Descargar
Página de 216
im_xm1k_transmit_file
5-82
im_xm1k_transmit_file
Purpose:
This function sets the 5055 to transmit a file to the host using XMODEM-1K protocol.
Syntax:
#include "im5055.h"
IM_STATUS im_xm1k_transmit_file
    (IM_UCHAR far 
*filename
,
     IM_COM_PORT 
port_id
)
IN Parameters:
filename    Far pointer to IM_UCHAR and is the filename in the 5055. The 5055
filename has the format drive:filename.
port_id    Communications port:
IM_COM1    COM1 input.
IM_COM2    COM2 input.
OUT Parameters:
None.
Return Value:
This function returns one of these values:
IM_SUCCESS    Successful.
IM_INVALID_PORT    The port is unknown.
Notes:
The host must be set up to receive a file (using XMODEM-1K protocol) from the 5055
for this function to execute successfully.
See Also:
im_xm1k_receive_file
Example
See example for im_xm1k_receive_file.