Prosoft-technology MVI69-ADM Instrukcja Użytkownika Strona 248

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 342
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 247
Serial Port Library Functions MVI-ADM 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module
Page 248 of 342 ProSoft Technology, Inc.
February 20, 2013
MVIsp_GetDSR
Syntax
int MVIsp_GetDSR(int comport, int *state);
Parameters
comport
port for which DSR is requested
state
pointer to int for desired state
Description
This function allows the state of the DSR signal to be determined. comport must
be previously opened with MVIsp_Open. The current state of the DSR signal is
copied to the int pointed to by state.
Return Value
MVI_SUCCESS
the DSR state was read successfully
MVI_ERR_NOACCESS
comport has not been opened
MVI_ERR_BADPARAM
invalid pointer
Example
int state;
if (MVIsp_GetDSR(COM1, &state) == MVI_SUCCESS)
{
if (state == ON)
printf("DSR is ON\n");
else
printf("DSR is OFF\n");
}
Przeglądanie stron 247
1 2 ... 243 244 245 246 247 248 249 250 251 252 253 ... 341 342

Komentarze do niniejszej Instrukcji

Brak uwag