public class DigitalChannel extends java.lang.Object implements HardwareDevice
| Constructor and Description |
|---|
DigitalChannel(DigitalChannelController controller,
int channel)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this device
|
java.lang.String |
getConnectionInfo()
Get connection information about this device in a human readable format
|
java.lang.String |
getDeviceName()
Device Name
|
DigitalChannelController.Mode |
getMode()
Get the channel mode
|
boolean |
getState()
Get the channel state
|
int |
getVersion()
Version
|
void |
setMode(DigitalChannelController.Mode mode)
Set the channel mode
|
void |
setState(boolean state)
Set the channel state
|
public DigitalChannel(DigitalChannelController controller, int channel)
controller - Digital channel controller this channel is attached tochannel - channel on the digital channel controllerpublic DigitalChannelController.Mode getMode()
public void setMode(DigitalChannelController.Mode mode)
mode - public boolean getState()
public void setState(boolean state)
The behavior of this method is undefined for INPUT digital channels.
state - public java.lang.String getDeviceName()
HardwareDevicegetDeviceName in interface HardwareDevicepublic java.lang.String getConnectionInfo()
HardwareDevicegetConnectionInfo in interface HardwareDevicepublic int getVersion()
HardwareDevicegetVersion in interface HardwareDevicepublic void close()
HardwareDeviceclose in interface HardwareDevice