PCAN Handle Definitions

PCAN Handles represent the different PCAN buses (Channels) available to use within the API when a PCAN Handle is required. The values listed here are fields of the class PCANBasic.

Default handle value

Type

Identifier

Value

Description

UInt16

PCAN_NONEBUS

0

Represents a standard PCAN channel. This channel cannot be initialized.

Handles for the ISA Bus (Non Plug-and-Play)

Type

Identifier

Value

Description

UInt16

PCAN_ISABUS1

0x21

PCAN-ISA interface, channel 1.

UInt16

PCAN_ISABUS2

0x22

PCAN-ISA interface, channel 2.

UInt16

PCAN_ISABUS3

0x23

PCAN-ISA interface, channel 3.

UInt16

PCAN_ISABUS4

0x24

PCAN-ISA interface, channel 4.

UInt16

PCAN_ISABUS5

0x25

PCAN-ISA interface, channel 5.

UInt16

PCAN_ISABUS6

0x26

PCAN-ISA interface, channel 6.

UInt16

PCAN_ISABUS7

0x27

PCAN-ISA interface, channel 7.

UInt16

PCAN_ISABUS8

0x28

PCAN-ISA interface, channel 8.

Handles for the Dongle Bus (Non Plug-and-Play)

Type

Identifier

Value

Description

UInt16

PCAN_DNGBUS1

0x31

PCAN-Dongle/LPT interface, channel 1.

Handles for the PCI Bus

Type

Identifier

Value

Description

UInt16

PCAN_PCIBUS1

0x41

PCAN-PCI interface, channel 1.

UInt16

PCAN_PCIBUS2

0x42

PCAN-PCI interface, channel 2.

UInt16

PCAN_PCIBUS3

0x43

PCAN-PCI interface, channel 3.

UInt16

PCAN_PCIBUS4

0x44

PCAN-PCI interface, channel 4.

UInt16

PCAN_PCIBUS5

0x45

PCAN-PCI interface, channel 5.

UInt16

PCAN_PCIBUS6

0x46

PCAN-PCI interface, channel 6.

UInt16

PCAN_PCIBUS7

0x47

PCAN-PCI interface, channel 7.

UInt16

PCAN_PCIBUS8

0x48

PCAN-PCI interface, channel 8.

UInt16

PCAN_PCIBUS9

0x409

PCAN-PCI interface, channel 9.

UInt16

PCAN_PCIBUS10

0x40A

PCAN-PCI interface, channel 10.

UInt16

PCAN_PCIBUS11

0x40B

PCAN-PCI interface, channel 11.

UInt16

PCAN_PCIBUS12

0x40C

PCAN-PCI interface, channel 12.

UInt16

PCAN_PCIBUS13

0x40D

PCAN-PCI interface, channel 13.

UInt16

PCAN_PCIBUS14

0x40E

PCAN-PCI interface, channel 14.

UInt16

PCAN_PCIBUS15

0x40F

PCAN-PCI interface, channel 15.

UInt16

PCAN_PCIBUS16

0x410

PCAN-PCI interface, channel 16.

Handles for the USB Bus

Type

Identifier

Value

Description

UInt16

PCAN_USBBUS1

0x51

PCAN-USB interface, channel 1.

UInt16

PCAN_USBBUS2

0x52

PCAN-USB interface, channel 2.

UInt16

PCAN_USBBUS3

0x53

PCAN-USB interface, channel 3.

UInt16

PCAN_USBBUS4

0x54

PCAN-USB interface, channel 4.

UInt16

PCAN_USBBUS5

0x55

PCAN-USB interface, channel 5.

UInt16

PCAN_USBBUS6

0x56

PCAN-USB interface, channel 6.

UInt16

PCAN_USBBUS7

0x57

PCAN-USB interface, channel 7.

UInt16

PCAN_USBBUS8

0x58

PCAN-USB interface, channel 8.

UInt16

PCAN_USBBUS9

0x509

PCAN-USB interface, channel 9.

UInt16

PCAN_USBBUS10

0x50A

PCAN-USB interface, channel 10.

UInt16

PCAN_USBBUS11

0x50B

PCAN-USB interface, channel 11.

UInt16

PCAN_USBBUS12

0x50C

PCAN-USB interface, channel 12.

UInt16

PCAN_USBBUS13

0x50D

PCAN-USB interface, channel 13.

UInt16

PCAN_USBBUS14

0x50E

PCAN-USB interface, channel 14.

UInt16

PCAN_USBBUS15

0x50F

PCAN-USB interface, channel 15.

UInt16

PCAN_USBBUS16

0x510

PCAN-USB interface, channel 16.

Handles for the PC_Card Bus

Type

Identifier

Value

Description

UInt16

PCAN_PCCBUS1

0x61

PCAN-PC Card interface, channel 1.

UInt16

PCAN_PCCBUS2

0x62

PCAN-PC Card interface, channel 2.

Handles for the LAN Bus

Type

Identifier

Value

Description

UInt16

PCAN_LANBUS1

0x801

PCAN-LAN interface, channel 1.

UInt16

PCAN_LANBUS2

0x802

PCAN-LAN interface, channel 2.

UInt16

PCAN_LANBUS3

0x803

PCAN-LAN interface, channel 3.

UInt16

PCAN_LANBUS4

0x804

PCAN-LAN interface, channel 4.

UInt16

PCAN_LANBUS5

0x805

PCAN-LAN interface, channel 5.

UInt16

PCAN_LANBUS6

0x806

PCAN-LAN interface, channel 6.

UInt16

PCAN_LANBUS7

0x807

PCAN-LAN interface, channel 7.

UInt16

PCAN_LANBUS8

0x808

PCAN-LAN interface, channel 8.

UInt16

PCAN_LANBUS9

0x809

PCAN-LAN interface, channel 9.

UInt16

PCAN_LANBUS10

0x80A

PCAN-LAN interface, channel 10.

UInt16

PCAN_LANBUS11

0x80B

PCAN-LAN interface, channel 11.

UInt16

PCAN_LANBUS12

0x80C

PCAN-LAN interface, channel 12.

UInt16

PCAN_LANBUS13

0x80D

PCAN-LAN interface, channel 13.

UInt16

PCAN_LANBUS14

0x80E

PCAN-LAN interface, channel 14.

UInt16

PCAN_LANBUS15

0x80F

PCAN-LAN interface, channel 15.

UInt16

PCAN_LANBUS16

0x810

PCAN-LAN interface, channel 16.

Remarks

The PCAN_NONEBUS value is used as default channel value. It is used for general purposes, e.g., configuring the Log capabilities of the PCAN-Basic API. It can also be used to remove all connections made by an application.

These values are declared as object fields in an object oriented environment (Delphi, .NET Framework) and declared as #define's in C++ (plain API).

Hardware Type and Channels

Non Plug-and-Play: The hardware channels of this kind are used as registered. This mean, for example, it is allowed to register the PCAN_ISABUS3 without having registered PCAN_ISABUS1 and PCAN_ISABUS2. It is a decision of each user, how to associate a PCAN Channel (logical part) and a port/interrupt pair (physical part).

Plug-and-Play: For hardware handles of PCI, USB and PC-Card, the availability of the channels is determined by the count of hardware connected to a computer in a given moment, in conjunction with their internal handle. This mean, that having four PCAN-USB connected to a computer will let the user connect to the channels PCAN_USBBUS1 to PCAN_USBBUS4. The association of each channel with a hardware is managed internally using the handle of a hardware.

See Also