public class ChannelItem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected TPCANHandle |
handle |
Constructor and Description |
---|
ChannelItem()
Default Constructor
|
ChannelItem(TPCANHandle handle,
boolean isCanFd)
Constructor
|
ChannelItem(TPCANHandle tPCANHandle,
TPCANType tPCANType,
boolean isCanFd)
Constructor
|
Modifier and Type | Method and Description |
---|---|
TPCANHandle |
getHandle()
Gets the PCAN Handle
|
TPCANType |
getType()
Gets the PCAN Hardware Type (for Non-PNP devices only)
|
boolean |
getWorking()
Indicates if Handle is Working
|
boolean |
isCanFd() |
void |
setCanFd(boolean isCanFd) |
void |
setHandle(TPCANHandle handle)
Sets the PCAN Handle
|
void |
setType(TPCANType type)
Sets the PCAN Hardware Type (for Non-PNP devices only)
|
void |
setWorking(boolean working)
Sets PCAN Handle state
|
java.lang.String |
toString() |
protected TPCANHandle handle
public ChannelItem()
public ChannelItem(TPCANHandle handle, boolean isCanFd)
handle
- The wrapped PCANHandleisCanFd
- States if CAN FD is enabledpublic ChannelItem(TPCANHandle tPCANHandle, TPCANType tPCANType, boolean isCanFd)
tPCANHandle
- The wrapped PCANHandletPCANType
- The wrapped PCAN Hardware Type (for Non-PNP devices only)isCanFd
- States if CAN FD is enabledpublic TPCANType getType()
public void setType(TPCANType type)
type
- public java.lang.String toString()
toString
in class java.lang.Object
public TPCANHandle getHandle()
public void setHandle(TPCANHandle handle)
handle
- public boolean getWorking()
public void setWorking(boolean working)
working
- true if handle is working, false if notpublic boolean isCanFd()
public void setCanFd(boolean isCanFd)
isCanFd
- the isCanFd to set