public interface DigitalChannelController extends HardwareDevice
Different digital channel controllers will implement this interface.
Modifier and Type | Interface and Description |
---|---|
static class |
DigitalChannelController.Mode
Deprecated.
use
DigitalChannel.Mode instead |
HardwareDevice.Manufacturer
Modifier and Type | Method and Description |
---|---|
DigitalChannel.Mode |
getDigitalChannelMode(int channel)
Get the mode of a digital channel
|
boolean |
getDigitalChannelState(int channel)
Get the state of a digital channel
If it's in OUTPUT mode, this will return the output bit.
|
SerialNumber |
getSerialNumber()
Serial Number
|
void |
setDigitalChannelMode(int channel,
DigitalChannel.Mode mode)
Set the mode of a digital channel
|
void |
setDigitalChannelMode(int channel,
DigitalChannelController.Mode mode)
Deprecated.
use
setDigitalChannelMode(int, DigitalChannel.Mode) instead |
void |
setDigitalChannelState(int channel,
boolean state)
Set the state of a digital channel
|
close, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpMode
SerialNumber getSerialNumber()
DigitalChannel.Mode getDigitalChannelMode(int channel)
channel
- channelvoid setDigitalChannelMode(int channel, DigitalChannel.Mode mode)
channel
- channelmode
- INPUT or OUTPUT@Deprecated void setDigitalChannelMode(int channel, DigitalChannelController.Mode mode)
setDigitalChannelMode(int, DigitalChannel.Mode)
insteadboolean getDigitalChannelState(int channel)
channel
- channelvoid setDigitalChannelState(int channel, boolean state)
The behavior of this method is undefined for digital channels in INPUT mode.
channel
- channelstate
- true to set; false to unset