
Serial Port Library Functions MVI-ADM ♦ 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module
Page 244 of 342 ProSoft Technology, Inc.
February 20, 2013
MVIsp_GetRTS
Syntax
int MVIsp_GetRTS(int comport, int *state);
Parameters
port for which RTS is requested
pointer to int for desired state
Description
This function allows the state of the RTS signal to be determined. comport must
be previously opened with MVIsp_Open.
The current state of the RTS signal is copied to the int pointed to by state.
Return Value
the RTS state was read successfully
comport has not been opened
Example
int state;
if (MVIsp_GetRTS(COM1, &state) == MVI_SUCCESS)
{
if (state == ON)
printf("RTS is ON\n");
else
printf("RTS is OFF\n");
}
See Also
MVIsp_SetRTS (page 243)
Comentarios a estos manuales