home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
turbo_c
/
tc130.arc
/
SETASYNC.DOC
< prev
next >
Wrap
Text File
|
1987-08-20
|
1KB
|
41 lines
NAME
setdtr -- set state of data terminal ready flag
setrts -- set state of ready to send flag
SYNOPSIS
void setdtr(port, mode);
void setrts(port, mode);
int port; 0, 1, 2, or 3 (for COM1-COM4)
int mode; TRUE to set flag, FALSE to clear flag
DESCRIPTION
These are assembly language functions which provide direct
access to the serial communications chips for the fastest
access possible. Each function sets a particular
communications output bit to the condition stated by "mode".
The port parameter may be specified as integers 0-3, or
SER1 to SER4 as defined in <smdefs.h>.
EXAMPLE
int sport; /* serial port */
sport = SER2; /* let it point to COM2 */
setdtr(sport, YES); /* take the modem offhook */
This function is found in SMTCx.LIB for the Turbo-C Compiler