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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 342
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 237
Serial Port Library Functions MVI-ADM 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module
Page 238 of 342 ProSoft Technology, Inc.
February 20, 2013
Return Value
MVI_SUCCESS
port was opened successfully
MVI_ERR_REOPEN
port is already open
MVI_ERR_NODEVICE
UART not found for port
Example
MVISPALTSETUP altsetup;
altsetup.baudrate = BAUD_9600;
altsetup.parity = PARITY_NONE;
altsetup.wordlen = WORDLEN8;
altsetup.stopbits = STOPBITS1;
altsetup.txquesize = DEFQSIZE;
altsetup.rxquesize = DEFQSIZE * 2;
if (MVIsp_OpenAlt(COM1, &altsetup) != MVI_SUCCESS)
{
printf("Open failed!\n");
} else {
printf("Open succeeded!\n");
}
See Also
MVIsp_Open (page 235)
Przeglądanie stron 237
1 2 ... 233 234 235 236 237 238 239 240 241 242 243 ... 341 342

Komentarze do niniejszej Instrukcji

Brak uwag