PcanStatus Enumeration
Represents a PCAN status/error code.
Namespace: Peak.Can.BasicAssembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 5.1.0
[FlagsAttribute]
public enum PcanStatus
<FlagsAttribute>
Public Enumeration PcanStatus
[FlagsAttribute]
public enum class PcanStatus
The PcanStatus 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.
| OK | 0 |
No error. Success.
|
| TransmitBufferFull | 1 |
The transmit buffer in CAN controller is full.
|
| Overrun | 2 |
The CAN controller was read too late.
|
| BusLight | 4 |
Bus error: an error counter reached the 'light' limit.
|
| BusHeavy | 8 |
Bus error: an error counter reached the 'heavy' limit.
|
| BusWarning | 8 |
Bus error: an error counter reached the 'warning' limit.
|
| BusOff | 16 |
Bus error: the CAN controller is in bus-off state.
|
| ReceiveQueueEmpty | 32 |
The reception queue is empty.
|
| ReceiveQueueOverrun | 64 |
The reception queue was read too late.
|
| TransmitQueueFull | 128 |
The transmit queue is full.
|
| NoDriver | 512 |
The driver of the used PCAN device is not loaded.
|
| HardwareInUse | 1,024 |
The PCAN-Hardware has already a PCAN-Net attached.
|
| NetInUse | 2,048 |
A PCAN-Net has already a PCAN-Client attached.
|
| IllegalHardwareHandle | 5,120 |
The handle of the PCAN-Hardware is invalid.
|
| IllegalNetHandle | 6,144 |
The handle of the PCAN-Net is invalid.
|
| IllegalClientHandle | 7,168 |
The handle of the PCAN-Client is invalid.
|
| IllegalHandle | 7,168 |
Mask for all handle errors.
|
| Resource | 8,192 |
An internal resource (FIFO, Client, timeout) cannot be created.
|
| InvalidParameter | 16,384 |
Unknown parameter.
|
| InvalidValue | 32,768 |
Invalid parameter value.
|
| Unknown | 65,536 |
Unknown error.
|
| IllegalData | 131,072 |
An action, function, or data is invalid within the current context.
|
| BusPassive | 262,144 |
Bus error: the CAN controller is error passive.
|
| AnyBusError | 262,172 |
Mask for all bus errors.
|
| IllegalMode | 524,288 |
The device driver object state is wrong for the attempted operation.
|
| Caution | 33,554,432 |
An operation was successfully carried out, however, irregularities were registered.
|
| Initialize | 67,108,864 |
The PCAN Channel is not (or could not be) initialized.
|
| InvalidOperation | 134,217,728 |
An invalid operation was registered.
|