PcanStatus Enumeration

Represents a PCAN status/error code.

Definition

Namespace: Peak.Can.Basic
Assembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 4.9.0
C#
[FlagsAttribute]
public enum PcanStatus

Remarks

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.

Members

OK0 No error. Success.
TransmitBufferFull1 The transmit buffer in CAN controller is full.
Overrun2 The CAN controller was read too late.
BusLight4 Bus error: an error counter reached the 'light' limit.
BusHeavy8 Bus error: an error counter reached the 'heavy' limit.
BusWarning8 Bus error: an error counter reached the 'warning' limit.
BusOff16 Bus error: the CAN controller is in bus-off state.
ReceiveQueueEmpty32 The reception queue is empty.
ReceiveQueueOverrun64 The reception queue was read too late.
TransmitQueueFull128 The transmit queue is full.
NoDriver512 The driver of the used PCAN device is not loaded.
HardwareInUse1,024 The PCAN-Hardware has already a PCAN-Net attached.
NetInUse2,048 A PCAN-Net has already a PCAN-Client attached.
IllegalHardwareHandle5,120 The handle of the PCAN-Hardware is invalid.
IllegalNetHandle6,144 The handle of the PCAN-Net is invalid.
IllegalClientHandle7,168 The handle of the PCAN-Client is invalid.
IllegalHandle7,168 Mask for all handle errors.
Resource8,192 An internal resource (FIFO, Client, timeout) cannot be created.
InvalidParameter16,384 Unknown parameter.
InvalidValue32,768 Invalid parameter value.
Unknown65,536 Unknown error.
IllegalData131,072 An action, function, or data is invalid within the current context.
BusPassive262,144 Bus error: the CAN controller is error passive.
AnyBusError262,172 Mask for all bus errors.
IllegalMode524,288 The device driver object state is wrong for the attempted operation.
Caution33,554,432 An operation was successfully carried out, however, irregularities were registered.
Initialize67,108,864 The PCAN Channel is not (or could not be) initialized.
InvalidOperation134,217,728 An invalid operation was registered.

See Also