SERIAL_SetControlLines

This function is used to modify the control lines (DTR/RTS).

Synopsis

int SERIAL_SetControlLines( int port, 
unsigned char bitmap,
int op);  

Parameters

Parameter

Description

port

Serial port number (0 based). Specify port 0 to redirect the output to the hsmtrace log.

bitmap

Bitmap of control lines to be modified. Input control lines are silently ignored.

op

One of MCL_OP_SET/MCL_OP_CLEAR to set/clear the control lines specified in the bitmap parameter

Return Code

0: The function succeeded

-1: The function failed

Comments

The same constants used in SERIAL_GetControlLines() function are also used in this function.