Prosoft-technology MVI69-ADM Manual do Utilizador Página 246

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 342
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 245
Serial Port Library Functions MVI-ADM 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module
Page 246 of 342 ProSoft Technology, Inc.
February 20, 2013
MVIsp_GetDTR
Syntax
int MVIsp_GetDTR(int comport, int *state);
Parameters
comport
port for which DTR is requested
state
pointer to int for desired state
Description
This function allows the state of the DTR signal to be determined. comport must
be previously opened with MVIsp_Open. The current state of the DTR signal is
copied to the int pointed to by state.
Return Values
MVI_SUCCESS
the DTR state was read successfully
MVI_ERR_NOACCESS
comport has not been opened
MVI_ERR_BADPARAM
invalid pointer
Example
int state;
if (MVIsp_GetDTR(COM1, &state) == MVI_SUCCESS)
{
if (state == ON)
printf("DTR is ON\n");
else
printf("DTR is OFF\n");
}
See Also
MVIsp_SetDTR (page 245)
Vista de página 245
1 2 ... 241 242 243 244 245 246 247 248 249 250 251 ... 341 342

Comentários a estes Manuais

Sem comentários