public class LynxI2cDeviceConfiguration extends DeviceConfiguration
LynxI2cDeviceConfiguration
need to specify the bus number in addition to the port.
On Lynx, the latter is only used in the configuration UI to maintain the sort order.DeviceConfiguration.I2cChannel
Modifier and Type | Field and Description |
---|---|
protected int |
bus |
static java.lang.String |
TAG |
static java.lang.String |
XMLATTR_BUS |
DISABLED_DEVICE_NAME, name, XMLATTR_NAME, XMLATTR_PORT
Constructor and Description |
---|
LynxI2cDeviceConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
deserializeAttributes(XmlPullParser parser)
This gets called while the parser is pointed at the open tag for this device configuration.
|
int |
getBus() |
DeviceConfiguration.I2cChannel |
getI2cChannel()
This device is an I2c device.
|
void |
serializeXmlAttributes(XmlSerializer serializer) |
void |
setBus(int bus) |
compareTo, deserialize, deserializeChildElement, getConfigurationType, getName, getPort, getSpinnerChoiceType, isEnabled, onDeserializationComplete, setConfigurationType, setEnabled, setName, setPort, sortByName
public static final java.lang.String TAG
public static final java.lang.String XMLATTR_BUS
protected int bus
public int getBus()
public void setBus(int bus)
public DeviceConfiguration.I2cChannel getI2cChannel()
DeviceConfiguration
getI2cChannel
in class DeviceConfiguration
public void serializeXmlAttributes(XmlSerializer serializer)
serializeXmlAttributes
in class DeviceConfiguration
public void deserializeAttributes(XmlPullParser parser)
DeviceConfiguration
deserializeAttributes
in class DeviceConfiguration