Intermec 5055 Reference Guide
im_transmit_byte
5-75
5
im_transmit_byte
Purpose:
This function transmits one byte of data out from the designated communications port.
This function is identical to MS-DOS INT 14H Service 01H.
This function is identical to MS-DOS INT 14H Service 01H.
Syntax:
#include "im5055.h"
IM_STATUS im_transmit_byte
IM_STATUS im_transmit_byte
(IM_COM_PORT
port_id
,
IM_UCHAR
transmit_byte)
;
IN Parameters:
The port_id parameter identifies the communications port as follows:
IM_COM1 COM1.
IM_COM2 COM2.
The transmit_byte parameter is the byte of data to transmit.
OUT Parameters:
None.
Return Value:
This function returns one of the standard status codes defined in Appendix A, “Status
Codes.”
Codes.”
Notes:
This function requires the PC standard protocol handler
PHPCSTD.EXE
.
Intermec recommends using im_transmit_buffer (with a user_length of one) instead of
using im_transmit_byte.
using im_transmit_byte.
You can use this function for an acknowledgement.
See Also:
im_receive_byte, im_transmit_buffer
Example
/******************** im_transmit_byte ************************************/
/* Uses Borland _bio_serialcom or Microsoft _bios_serialcom to init the */
/* com port for single byte. */
/* Operations. It sets up for 9600,E,7,1 on serial port */
/* Note: Phimec protocol handler must NOT be installed to run this routine */
/* Uses Borland _bio_serialcom or Microsoft _bios_serialcom to init the */
/* com port for single byte. */
/* Operations. It sets up for 9600,E,7,1 on serial port */
/* Note: Phimec protocol handler must NOT be installed to run this routine */
#include <stdio.h>
#include <dos.h>
#include <conio.h>
#include <dos.h>
#include <conio.h>
#include <bios.h>
#include <string.h>
#include "im5055.h"
#include "immsg.h"
#include <string.h>
#include "im5055.h"
#include "immsg.h"
/* Byte oriented defines */
#define COM1 0
#define COM1 0