Prosoft-technology MVI69-ADM Manuel d'utilisateur Page 243

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 342
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 242
MVI-ADM 'C' Programmable Serial Port Library Functions
'C' Programmable Application Development Module Developer's Guide
ProSoft Technology, Inc. Page 243 of 342
February 20, 2013
9.3 Serial Port API Status Functions
MVIsp_SetRTS
Syntax
int MVIsp_SetRTS(int comport, int state);
Parameters
comport
port for which RTS is to be changed
state
desired RTS state
Description
This functions allows the state of the RTS signal to be controlled. comport must
be previously opened with MVIsp_Open.
state specifies desired state of the RTS signal. Valid values for state are ON and
OFF.
Note: If RTS/CTS hardware handshaking is enabled, using the MVIsp_SetRTS function will cause
unpredictable results.
Return Value
MVI_SUCCESS
the RTS signal was set successfully.
MVI_ERR_NOACCESS
comport has not been opened
MVI_ERR_BADPARAM
invalid state
Example
int rc;
rc = MVIsp_SetRTS(COM1, ON);
if (rc != MVI_SUCCESS)
printf("SetRTS failed\n ");
See Also
MVIsp_GetRTS (page 244)
Vue de la page 242
1 2 ... 238 239 240 241 242 243 244 245 246 247 248 ... 341 342

Commentaires sur ces manuels

Pas de commentaire