public interface DeviceInterfaceModule extends DigitalChannelController, AnalogInputController, PWMOutputController, I2cController, AnalogOutputController
DigitalChannelController.ModeI2cController.I2cPortReadyBeginEndNotifications, I2cController.I2cPortReadyCallbackHardwareDevice.ManufacturerI2C_BUFFER_START_ADDRESS| Modifier and Type | Method and Description |
|---|---|
int |
getDigitalInputStateByte()
A byte containing the current logic levels present in the D7-D0 channel pins.
|
byte |
getDigitalIOControlByte()
Get the digital IO control byte
|
byte |
getDigitalOutputStateByte()
The D7-D0 output set field is a byte containing the required I/O output of the D7-D0
channel pins.
|
boolean |
getLEDState(int channel)
Indicates whether the LED on the given channel is on or not
|
void |
setDigitalIOControlByte(byte input)
If a particular bit is set to one, the corresponding channel pin will be in output mode.
|
void |
setDigitalOutputByte(byte input)
If a a particular control field bit is set to one, the channel pin will be in output mode and
will reflect the value of the corresponding field bit.
|
void |
setLED(int channel,
boolean state)
Turn on or off a particular LED
|
getDigitalChannelMode, getDigitalChannelState, getSerialNumber, setDigitalChannelMode, setDigitalChannelMode, setDigitalChannelStategetAnalogInputVoltage, getMaxAnalogInputVoltage, getSerialNumbergetPulseWidthOutputTime, getPulseWidthPeriod, getSerialNumber, setPulseWidthOutputTime, setPulseWidthPeriodclearI2cPortActionFlag, copyBufferIntoWriteBuffer, deregisterForPortReadyBeginEndCallback, deregisterForPortReadyCallback, enableI2cReadMode, enableI2cWriteMode, getCopyOfReadBuffer, getCopyOfWriteBuffer, getI2cPortReadyCallback, getI2cReadCache, getI2cReadCacheLock, getI2cReadCacheTimeWindow, getI2cWriteCache, getI2cWriteCacheLock, getMaxI2cWriteLatency, getPortReadyBeginEndCallback, getSerialNumber, isArmed, isI2cPortActionFlagSet, isI2cPortInReadMode, isI2cPortInWriteMode, isI2cPortReady, readI2cCacheFromController, readI2cCacheFromModule, registerForI2cPortReadyCallback, registerForPortReadyBeginEndCallback, setI2cPortActionFlag, writeI2cCacheToController, writeI2cCacheToModule, writeI2cPortFlagOnlyToController, writeI2cPortFlagOnlyToModulegetSerialNumber, setAnalogOutputFrequency, setAnalogOutputMode, setAnalogOutputVoltageclose, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpModeint getDigitalInputStateByte()
void setDigitalIOControlByte(byte input)
input - - the desired setting for each channel pin.byte getDigitalIOControlByte()
void setDigitalOutputByte(byte input)
input - with output state of the digital pins.byte getDigitalOutputStateByte()
boolean getLEDState(int channel)
void setLED(int channel,
boolean state)
channel - - int indicating the ID of the LED.state - - byte containing the desired setting.