TPCANStatus Enumeration

Represents a PCAN status/error code.

Definition

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

Remarks

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.

Members

PCAN_ERROR_OK0 No error. Success.
PCAN_ERROR_XMTFULL1 The transmit buffer in CAN controller is full.
PCAN_ERROR_OVERRUN2 The CAN controller was read too late.
PCAN_ERROR_BUSLIGHT4 Bus error: an error counter reached the 'light' limit.
PCAN_ERROR_BUSHEAVY8 Bus error: an error counter reached the 'heavy' limit.
PCAN_ERROR_BUSWARNING8 Bus error: an error counter reached the 'warning' limit.
PCAN_ERROR_BUSOFF16 Bus error: the CAN controller is in bus-off state.
PCAN_ERROR_QRCVEMPTY32 The reception queue is empty.
PCAN_ERROR_QOVERRUN64 The reception queue was read too late.
PCAN_ERROR_QXMTFULL128 The transmission queue is full.
PCAN_ERROR_REGTEST256 The test of the CAN controller hardware registers failed (no hardware found).
PCAN_ERROR_NODRIVER512 The driver of the used PCAN device is not loaded.
PCAN_ERROR_HWINUSE1,024 The PCAN-Hardware has already a PCAN-Net attached.
PCAN_ERROR_NETINUSE2,048 A PCAN-Net has already a PCAN-Client attached.
PCAN_ERROR_ILLHW5,120 The handle of the PCAN-Hardware is invalid.
PCAN_ERROR_ILLNET6,144 The handle of the PCAN-Net is invalid.
PCAN_ERROR_ILLCLIENT7,168 The handle of the PCAN-Client is invalid.
PCAN_ERROR_ILLHANDLE7,168 Mask for all handle errors.
PCAN_ERROR_RESOURCE8,192 An internal resource (FIFO, Client, timeout) cannot be created.
PCAN_ERROR_ILLPARAMTYPE16,384 Unknown parameter.
PCAN_ERROR_ILLPARAMVAL32,768 Invalid parameter value.
PCAN_ERROR_UNKNOWN65,536 Unknown error.
PCAN_ERROR_ILLDATA131,072 An action, function, or data is invalid within the current context.
PCAN_ERROR_BUSPASSIVE262,144 Bus error: the CAN controller is error passive.
PCAN_ERROR_ANYBUSERR262,172 Mask for all bus errors.
PCAN_ERROR_ILLMODE524,288 The device driver object state is wrong for the attempted operation.
PCAN_ERROR_CAUTION33,554,432 An operation was successfully carried out, however, irregularities were registered.
PCAN_ERROR_INITIALIZE67,108,864 The PCAN Channel is not (or could not be) initialized.
PCAN_ERROR_ILLOPERATION134,217,728 An invalid operation was registered.

See Also