Prosoft-technology MVI69-ADM Bedienungsanleitung Seite 249

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 342
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 248
MVI-ADM 'C' Programmable Serial Port Library Functions
'C' Programmable Application Development Module Developer's Guide
ProSoft Technology, Inc. Page 249 of 342
February 20, 2013
MVIsp_GetDCD
Syntax
int MVIsp_GetDCD(int comport, int *state);
Parameters
comport
port for which DCD is requested
state
pointer to int for desired state
Description
This function allows the state of the DCD signal to be determined. comport must
be previously opened with MVIsp_Open. The current state of the DCD signal is
copied to the int pointed to by state.
Return Value
MVI_SUCCESS
the DCD state was read successfully
MVI_ERR_NOACCESS
comport has not been opened
MVI_ERR_BADPARAM
invalid pointer
Example
int state;
if (MVIsp_GetDCD(COM1, &state) == MVI_SUCCESS)
{
if (state == ON)
printf("DCD is ON\n");
else
printf("DCD is OFF\n");
}
Seitenansicht 248
1 2 ... 244 245 246 247 248 249 250 251 252 253 254 ... 341 342

Kommentare zu diesen Handbüchern

Keine Kommentare