Metrologic Optimus S Programming Manual page 115

"c" programming guide
Table of Contents

Advertisement

com_cts
Purpose
To get CTS level.
Syntax
int com_cts (int port);
int port;
Example
if (com_cts (1) == 0) printf ("COM 1 CTS is negated");
Description
This routine checks the current CTS state on the direct RS-232 port.
Return
If asserted, it returns 1 (i.e. mark).
Otherwise, it returns 0 (i.e. space).
See Also
com_rts
com_rts
Purpose
To set RTS level.
Syntax
void com_rts (int port, int val);
int port;
int val;
Example
com_rts (1, 1);
Description
This routine controls the RTS signal. However, RTS might be changed by the
background routine according to the status of receive buffer.
None
Return
See Also
com_cts
Chapter 3 Terminal Specific Function Library
else printf ("COM 1 CTS is asserted");
/* usually COM port 1 mapped to RS-232 */
/* usually COM port 1 mapped to RS-232 */
/* RTS signal is asserted(1) or negated(0) */
/* COM 1 is set as RTS asserted */
109
Optimus R
Optimus R

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents