public interface DigitalChannelController extends HardwareDevice
Different digital channel controllers will implement this interface.
Modifier and Type | Interface and Description |
---|---|
static class |
DigitalChannelController.Mode
Digital channel mode - input or output
|
HardwareDevice.Manufacturer
Modifier and Type | Method and Description |
---|---|
DigitalChannelController.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,
DigitalChannelController.Mode mode)
Set the mode of a digital channel
|
void |
setDigitalChannelState(int channel,
boolean state)
Set the state of a digital channel
|
close, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpMode
SerialNumber getSerialNumber()
DigitalChannelController.Mode getDigitalChannelMode(int channel)
channel
- channelvoid setDigitalChannelMode(int channel, DigitalChannelController.Mode mode)
channel
- channelmode
- INPUT or OUTPUTboolean 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