Prosoft-technology MVI69-ADM Manual de usuario Pagina 247

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 342
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 246
MVI-ADM 'C' Programmable Serial Port Library Functions
'C' Programmable Application Development Module Developer's Guide
ProSoft Technology, Inc. Page 247 of 342
February 20, 2013
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
the CTS state was read successfully
MVI_ERR_NOACCESS
comport has not been opened
MVI_ERR_BADPARAM
invalid pointer
Example
int state;
if (MVIsp_GetCTS(COM1, &state) == MVI_SUCCESS)
{
if (state == ON)
printf("CTS is ON\n");
else
printf("CTS is OFF\n");
}
Vista de pagina 246
1 2 ... 242 243 244 245 246 247 248 249 250 251 252 ... 341 342

Comentarios a estos manuales

Sin comentarios