Package peak.can.basic
Enum TPCANHandle
- All Implemented Interfaces:
Serializable
,Comparable<TPCANHandle>
,java.lang.constant.Constable
Represents a PCAN-hardware channel handle.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPCAN-Dongle/LPT interface, channel 1PCAN-ISA interface, channel 1PCAN-ISA interface, channel 2PCAN-ISA interface, channel 3PCAN-ISA interface, channel 4PCAN-ISA interface, channel 5PCAN-ISA interface, channel 6PCAN-ISA interface, channel 7PCAN-ISA interface, channel 8PCAN-LAN1 interface, channel 1PCAN-LAN interface, channel 10PCAN-LAN interface, channel 11PCAN-LAN interface, channel 12PCAN-LAN interface, channel 13PCAN-LAN interface, channel 14PCAN-LAN interface, channel 15PCAN-LAN interface, channel 16PCAN-LAN2 interface, channel 2PCAN-LAN3 interface, channel 3PCAN-LAN4 interface, channel 4PCAN-LAN5 interface, channel 5PCAN-LAN6 interface, channel 6PCAN-LAN7 interface, channel 7PCAN-LAN8 interface, channel 8PCAN-LAN interface, channel 9Undefined/default value for a PCAN busPCAN-PC Card interface, channel 1PCAN-PC Card interface, channel 2PCAN-PCI interface, channel 1PCAN-PCI interface, channel 10PCAN-PCI interface, channel 11PCAN-PCI interface, channel 12PCAN-PCI interface, channel 13PCAN-PCI interface, channel 14PCAN-PCI interface, channel 15PCAN-PCI interface, channel 16PCAN-PCI interface, channel 2PCAN-PCI interface, channel 3PCAN-PCI interface, channel 4PCAN-PCI interface, channel 5PCAN-PCI interface, channel 6PCAN-PCI interface, channel 7PCAN-PCI interface, channel 8PCAN-PCI interface, channel 9PCAN-USB interface, channel 1PCAN-USB interface, channel 10PCAN-USB interface, channel 11PCAN-USB interface, channel 12PCAN-USB interface, channel 13PCAN-USB interface, channel 14PCAN-USB interface, channel 15PCAN-USB interface, channel 16PCAN-USB interface, channel 2PCAN-USB interface, channel 3PCAN-USB interface, channel 4PCAN-USB interface, channel 5PCAN-USB interface, channel 6PCAN-USB interface, channel 7PCAN-USB interface, channel 8PCAN-USB interface, channel 9 -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsSJA
(TPCANHandle handle, TPCANType type) Verify the provided TPCANHandle contains a SJA1000 controllershort
getValue()
The value of the CAN handlestatic Object[]
Returns All PCAN Channels which are initializable (All except PCAN_NONEBUS)static boolean
isPCANPCCardHardware
(TPCANHandle handle) Verify the provided TPCANHandle is an PC-Card Devicestatic boolean
isPCANUSBHardware
(TPCANHandle handle) Verify the provided TPCANHandle is an USB Devicestatic TPCANHandle
Returns the enum constant of this type with the specified name.static TPCANHandle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PCAN_NONEBUS
Undefined/default value for a PCAN bus -
PCAN_ISABUS1
PCAN-ISA interface, channel 1 -
PCAN_ISABUS2
PCAN-ISA interface, channel 2 -
PCAN_ISABUS3
PCAN-ISA interface, channel 3 -
PCAN_ISABUS4
PCAN-ISA interface, channel 4 -
PCAN_ISABUS5
PCAN-ISA interface, channel 5 -
PCAN_ISABUS6
PCAN-ISA interface, channel 6 -
PCAN_ISABUS7
PCAN-ISA interface, channel 7 -
PCAN_ISABUS8
PCAN-ISA interface, channel 8 -
PCAN_DNGBUS1
PCAN-Dongle/LPT interface, channel 1 -
PCAN_PCIBUS1
PCAN-PCI interface, channel 1 -
PCAN_PCIBUS2
PCAN-PCI interface, channel 2 -
PCAN_PCIBUS3
PCAN-PCI interface, channel 3 -
PCAN_PCIBUS4
PCAN-PCI interface, channel 4 -
PCAN_PCIBUS5
PCAN-PCI interface, channel 5 -
PCAN_PCIBUS6
PCAN-PCI interface, channel 6 -
PCAN_PCIBUS7
PCAN-PCI interface, channel 7 -
PCAN_PCIBUS8
PCAN-PCI interface, channel 8 -
PCAN_PCIBUS9
PCAN-PCI interface, channel 9 -
PCAN_PCIBUS10
PCAN-PCI interface, channel 10 -
PCAN_PCIBUS11
PCAN-PCI interface, channel 11 -
PCAN_PCIBUS12
PCAN-PCI interface, channel 12 -
PCAN_PCIBUS13
PCAN-PCI interface, channel 13 -
PCAN_PCIBUS14
PCAN-PCI interface, channel 14 -
PCAN_PCIBUS15
PCAN-PCI interface, channel 15 -
PCAN_PCIBUS16
PCAN-PCI interface, channel 16 -
PCAN_USBBUS1
PCAN-USB interface, channel 1 -
PCAN_USBBUS2
PCAN-USB interface, channel 2 -
PCAN_USBBUS3
PCAN-USB interface, channel 3 -
PCAN_USBBUS4
PCAN-USB interface, channel 4 -
PCAN_USBBUS5
PCAN-USB interface, channel 5 -
PCAN_USBBUS6
PCAN-USB interface, channel 6 -
PCAN_USBBUS7
PCAN-USB interface, channel 7 -
PCAN_USBBUS8
PCAN-USB interface, channel 8 -
PCAN_USBBUS9
PCAN-USB interface, channel 9 -
PCAN_USBBUS10
PCAN-USB interface, channel 10 -
PCAN_USBBUS11
PCAN-USB interface, channel 11 -
PCAN_USBBUS12
PCAN-USB interface, channel 12 -
PCAN_USBBUS13
PCAN-USB interface, channel 13 -
PCAN_USBBUS14
PCAN-USB interface, channel 14 -
PCAN_USBBUS15
PCAN-USB interface, channel 15 -
PCAN_USBBUS16
PCAN-USB interface, channel 16 -
PCAN_PCCBUS1
PCAN-PC Card interface, channel 1 -
PCAN_PCCBUS2
PCAN-PC Card interface, channel 2 -
PCAN_LANBUS1
PCAN-LAN1 interface, channel 1 -
PCAN_LANBUS2
PCAN-LAN2 interface, channel 2 -
PCAN_LANBUS3
PCAN-LAN3 interface, channel 3 -
PCAN_LANBUS4
PCAN-LAN4 interface, channel 4 -
PCAN_LANBUS5
PCAN-LAN5 interface, channel 5 -
PCAN_LANBUS6
PCAN-LAN6 interface, channel 6 -
PCAN_LANBUS7
PCAN-LAN7 interface, channel 7 -
PCAN_LANBUS8
PCAN-LAN8 interface, channel 8 -
PCAN_LANBUS9
PCAN-LAN interface, channel 9 -
PCAN_LANBUS10
PCAN-LAN interface, channel 10 -
PCAN_LANBUS11
PCAN-LAN interface, channel 11 -
PCAN_LANBUS12
PCAN-LAN interface, channel 12 -
PCAN_LANBUS13
PCAN-LAN interface, channel 13 -
PCAN_LANBUS14
PCAN-LAN interface, channel 14 -
PCAN_LANBUS15
PCAN-LAN interface, channel 15 -
PCAN_LANBUS16
PCAN-LAN interface, channel 16
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public short getValue()The value of the CAN handle- Returns:
- Value of the CAN handle
-
initializableChannels
Returns All PCAN Channels which are initializable (All except PCAN_NONEBUS)- Returns:
- PCAN Channels array
-
isPCANUSBHardware
Verify the provided TPCANHandle is an USB Device- Parameters:
handle
- to verify- Returns:
- true if the TPCANHandle is an USB Device, false if not
-
isPCANPCCardHardware
Verify the provided TPCANHandle is an PC-Card Device- Parameters:
handle
- to verify- Returns:
- true if the TPCANHandle is an PC-Card Device, false if not
-
containsSJA
Verify the provided TPCANHandle contains a SJA1000 controller- Parameters:
handle
- to verifytype
- the PCAN device associated with the handle- Returns:
- true if the TPCANHandle contains a SJA1000 controller, false if not
-