SERIAL_SetControlLines

Modifies the control lines (DTR/RTS).

Synopsis
#include <serial.h> 
int SERIAL_SetControlLines( int port, 
   unsigned char bitmap,
   int op);
Parameters
port Serial port number (0 based). Specify port 0 to redirect the output to the HSM trace log
bitmap Bitmap of control lines to be modified . Input control lines are silently ignored
op One of MCL_OP_SET/MCL_OP_CLEAR control lines specified in the bitmap parameter
Return Code:
Function Code Qualification
0 The function was successful.
-1 The function failed.
Comments
#define MCL_DSR 0x01
#define MCL_DTR 0x02
#define MCL_RTS 0x04
#define MCL_CTS 0x08
#define MCL_DCD 0x10
#define MCL_RI  0x20
#define MCL_OP_SET 1
#define MCL_OP_CLEAR 2