public interface DigitalChannel extends HardwareDevice
DigitalChannel is an interface by which digital channels can be controlled.
Such channels have a boolean state, and are modal as to direction, being either input
channels or output channels.| Modifier and Type | Interface and Description |
|---|---|
static class |
DigitalChannel.Mode
Digital channel mode - input or output
|
HardwareDevice.Manufacturer| Modifier and Type | Method and Description |
|---|---|
DigitalChannel.Mode |
getMode()
Returns whether the channel is in input or output mode
|
boolean |
getState()
Returns the current state of the channel
|
void |
setMode(DigitalChannel.Mode mode)
Changes whether the channel is in input or output mode
|
void |
setMode(DigitalChannelController.Mode mode)
Deprecated.
use
setMode(Mode) instead |
void |
setState(boolean state)
Sets the current state of the channel
|
close, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpModeDigitalChannel.Mode getMode()
setMode(Mode)void setMode(DigitalChannel.Mode mode)
mode - whether the channel is in input or output modeboolean getState()
void setState(boolean state)
state - the new state of the channel@Deprecated void setMode(DigitalChannelController.Mode mode)
setMode(Mode) instead