Advantech PCI-1682U Uživatelský manuál Strana 50

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 104
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 49
PCI-1680U/1682U User Manual 44
4.3.9 ClearCommError
When error occurs, users can use ClearCommError to get the specific type of error.
Syntax
BOOL ClearCommError(
HANDLE hDevice,
LPDWORD lpErrors,
LPCOMSTAT lpStat
);
Parameters
Return Value
Successful: return non-zero values. Unsuccessful: return zero value. Please call Get-
LastError function.
Note! Definitions of error codes supported are as below:
Name Description
CE_RXOVER Receive Queue overflow.
CE_OVERRUN Receive Overrun Error.
CE_FRAME Passive error.
CE_BREAK Busoff .
Note! The third parameter is unused, please set it to NULL.
Name Direction Description
hDevice Input Handle of the device which was opened.
lpErrors Output Store error codes which return from drivers.
lpStat Output
Empty. If users want to know specific information about error
register, please call DeviceIoControl to get status of the
device.
Zobrazit stránku 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 103 104

Komentáře k této Příručce

Žádné komentáře