public interface LegacyModule extends HardwareDevice, I2cController
I2cController.I2cPortReadyCallback
I2C_BUFFER_START_ADDRESS
Modifier and Type | Method and Description |
---|---|
void |
enable9v(int physicalPort,
boolean enable)
Enable or disable 9V power on a port
|
void |
enableAnalogReadMode(int physicalPort)
Enable a physical port in analog read mode
|
byte[] |
readAnalog(int physicalPort)
Read an analog value from a device; only works in analog read mode
|
void |
setDigitalLine(int physicalPort,
int line,
boolean set)
Set the value of digital line 0 or 1 while in analog mode.
|
copyBufferIntoWriteBuffer, deregisterForPortReadyCallback, enableI2cReadMode, enableI2cWriteMode, getCopyOfReadBuffer, getCopyOfWriteBuffer, getI2cReadCache, getI2cReadCacheLock, getI2cWriteCache, getI2cWriteCacheLock, getSerialNumber, isI2cPortActionFlagSet, isI2cPortInReadMode, isI2cPortInWriteMode, isI2cPortReady, readI2cCacheFromController, readI2cCacheFromModule, registerForI2cPortReadyCallback, setI2cPortActionFlag, writeI2cCacheToController, writeI2cCacheToModule, writeI2cPortFlagOnlyToController, writeI2cPortFlagOnlyToModule
close, getConnectionInfo, getDeviceName, getVersion
void enableAnalogReadMode(int physicalPort)
physicalPort
- physical port number on the devicevoid enable9v(int physicalPort, boolean enable)
physicalPort
- physical port number on the deviceenable
- true to enable; false to disablevoid setDigitalLine(int physicalPort, int line, boolean set)
These are port pins 5 and 6.
physicalPort
- physical port number on the deviceline
- line 0 or 1set
- true to set; otherwise falsebyte[] readAnalog(int physicalPort)
physicalPort
- physical port number on the device