public static class BroadcomColorSensor.Parameters
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
int |
colorSaturation
the maximum possible color value.
|
int |
deviceId
the device id expected to be reported by the color sensor chip
|
BroadcomColorSensor.Gain |
gain
the gain level to use for color sensing
|
I2cAddr |
i2cAddr
the address at which the sensor resides on the I2C bus.
|
BroadcomColorSensor.LEDCurrent |
ledCurrent
when using proximity, controls the nominal proximity LED drive current
|
boolean |
loggingEnabled
debugging aid: enable logging for this device?
|
java.lang.String |
loggingTag
debugging aid: the logging tag to use when logging
|
BroadcomColorSensor.PSMeasurementRate |
proximityMeasRate
periodic measurement rate for the proximity sensor
|
int |
proximityPulseCount
controls the number of times the proximity LED is pulsed each cycle.
|
static BroadcomColorSensor.PSResolution |
proximityResolution
number of bits used for proximity sensing
|
int |
proximitySaturation
the maximum possible raw proximity value read.
|
BroadcomColorSensor.LEDPulseModulation |
pulseModulation
LED pulse modulation frequency.
|
I2cDeviceSynch.ReadWindow |
readWindow
set of registers to read in background, if supported by underlying I2cDeviceSynch
|
Constructor and Description |
---|
Parameters(I2cAddr i2cAddr,
int deviceId) |
Modifier and Type | Method and Description |
---|---|
BroadcomColorSensor.Parameters |
clone() |
static BroadcomColorSensor.Parameters |
createForAPDS9151() |
public int deviceId
public I2cAddr i2cAddr
public BroadcomColorSensor.Gain gain
public int proximityPulseCount
public static BroadcomColorSensor.PSResolution proximityResolution
public BroadcomColorSensor.PSMeasurementRate proximityMeasRate
public BroadcomColorSensor.LEDCurrent ledCurrent
public int proximitySaturation
public int colorSaturation
public BroadcomColorSensor.LEDPulseModulation pulseModulation
public boolean loggingEnabled
public java.lang.String loggingTag
public I2cDeviceSynch.ReadWindow readWindow
public Parameters(I2cAddr i2cAddr, int deviceId)
public static BroadcomColorSensor.Parameters createForAPDS9151()
public BroadcomColorSensor.Parameters clone()
clone
in class java.lang.Object