Rockwell Automation Allen-Bradley ControlLogix 1756-MVI Programming Reference Manual page 104

Multi-vendor interface module
Hide thumbs Also See for Allen-Bradley ControlLogix 1756-MVI:
Table of Contents

Advertisement

5-16
Serial Port API
Publication 1756-RM004B-EN-P - October 2000
MVIsp_GetCTS
Syntax:
int
MVIsp_GetCTS(int comport, int *state);
Parameters:
comport
port for which CTS is requested
state
pointer to int for desired state
Description:
This function allows the state of the CTS signal to be determined.
comport must be previously opened with MVIsp_Open. The current
state of the CTS signal is copied to the int pointed to by state.
Return Value:
MVI_SUCCESS
MVI_ERR_NOACCESS
MVI_ERR_BADPARAM
Example:
int
state;
if (MVIsp_GetCTS(COM1, &state) = = MVI_SUCCESS)
{
if (state = = ON)
printf("CTS is ON\n");
else
printf("CTS is OFF\n");
}
the CTS state was read successfully
comport has not been opened
invalid pointer

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents