public interface LegacyModule extends HardwareDevice, I2cController
I2cController.I2cPortReadyBeginEndNotifications, I2cController.I2cPortReadyCallbackHardwareDevice.ManufacturerI2C_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
|
double |
getMaxAnalogInputVoltage()
Returns the maximum voltage that can be read by our analog inputs
|
byte[] |
readAnalogRaw(int physicalPort)
Read an analog value from a device; only works in analog read mode
|
double |
readAnalogVoltage(int physicalPort)
Reads the analog voltage from a device.
|
void |
setDigitalLine(int physicalPort,
int line,
boolean set)
Set the value of digital line 0 or 1 while in analog mode.
|
clearI2cPortActionFlag, 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, writeI2cPortFlagOnlyToModuleclose, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpModevoid enableAnalogReadMode(int physicalPort)
physicalPort - physical port number on the devicebyte[] readAnalogRaw(int physicalPort)
physicalPort - physical port number on the devicedouble readAnalogVoltage(int physicalPort)
physicalPort - the port whose voltage is to be readdouble getMaxAnalogInputVoltage()
void 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 false