TPCANStatus Enumeration
Represents a PCAN status/error code.
Namespace: Peak.Can.Basic.BackwardCompatibilityAssembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 4.9.0
[FlagsAttribute]
public enum TPCANStatus
<FlagsAttribute>
Public Enumeration TPCANStatus
[FlagsAttribute]
public enum class TPCANStatus
The TPCANStatus values are able to be bitwise combined. In some cases it is possible to get more than one error code
as result of calling a function.
PCAN_ERROR_OK | 0 |
No error. Success.
|
PCAN_ERROR_XMTFULL | 1 |
The transmit buffer in CAN controller is full.
|
PCAN_ERROR_OVERRUN | 2 |
The CAN controller was read too late.
|
PCAN_ERROR_BUSLIGHT | 4 |
Bus error: an error counter reached the 'light' limit.
|
PCAN_ERROR_BUSHEAVY | 8 |
Bus error: an error counter reached the 'heavy' limit.
|
PCAN_ERROR_BUSWARNING | 8 |
Bus error: an error counter reached the 'warning' limit.
|
PCAN_ERROR_BUSOFF | 16 |
Bus error: the CAN controller is in bus-off state.
|
PCAN_ERROR_QRCVEMPTY | 32 |
The reception queue is empty.
|
PCAN_ERROR_QOVERRUN | 64 |
The reception queue was read too late.
|
PCAN_ERROR_QXMTFULL | 128 |
The transmission queue is full.
|
PCAN_ERROR_REGTEST | 256 |
The test of the CAN controller hardware registers failed (no hardware found).
|
PCAN_ERROR_NODRIVER | 512 |
The driver of the used PCAN device is not loaded.
|
PCAN_ERROR_HWINUSE | 1,024 |
The PCAN-Hardware has already a PCAN-Net attached.
|
PCAN_ERROR_NETINUSE | 2,048 |
A PCAN-Net has already a PCAN-Client attached.
|
PCAN_ERROR_ILLHW | 5,120 |
The handle of the PCAN-Hardware is invalid.
|
PCAN_ERROR_ILLNET | 6,144 |
The handle of the PCAN-Net is invalid.
|
PCAN_ERROR_ILLCLIENT | 7,168 |
The handle of the PCAN-Client is invalid.
|
PCAN_ERROR_ILLHANDLE | 7,168 |
Mask for all handle errors.
|
PCAN_ERROR_RESOURCE | 8,192 |
An internal resource (FIFO, Client, timeout) cannot be created.
|
PCAN_ERROR_ILLPARAMTYPE | 16,384 |
Unknown parameter.
|
PCAN_ERROR_ILLPARAMVAL | 32,768 |
Invalid parameter value.
|
PCAN_ERROR_UNKNOWN | 65,536 |
Unknown error.
|
PCAN_ERROR_ILLDATA | 131,072 |
An action, function, or data is invalid within the current context.
|
PCAN_ERROR_BUSPASSIVE | 262,144 |
Bus error: the CAN controller is error passive.
|
PCAN_ERROR_ANYBUSERR | 262,172 |
Mask for all bus errors.
|
PCAN_ERROR_ILLMODE | 524,288 |
The device driver object state is wrong for the attempted operation.
|
PCAN_ERROR_CAUTION | 33,554,432 |
An operation was successfully carried out, however, irregularities were registered.
|
PCAN_ERROR_INITIALIZE | 67,108,864 |
The PCAN Channel is not (or could not be) initialized.
|
PCAN_ERROR_ILLOPERATION | 134,217,728 |
An invalid operation was registered.
|