public class TimestampedI2cData extends TimestampedData
TimestampedI2cData
extends TimestampedData
so as to provide an indication
of the I2c source from which the data was retrieved.Modifier and Type | Field and Description |
---|---|
protected static java.util.concurrent.atomic.AtomicInteger |
healthStatusSuppressionCount
internal: keeps track of
|
I2cAddr |
i2cAddr
the I2c address from which the data was read
|
int |
register
the starting register address from which the data was retrieved
|
data, nanoTime
Constructor and Description |
---|
TimestampedI2cData() |
Modifier and Type | Method and Description |
---|---|
static TimestampedI2cData |
makeFakeData(java.lang.Object deviceHavingProblems,
I2cAddr i2cAddr,
int ireg,
int creg)
Creates and returns fake I2C data for use in situations where data must be returned but actual
data is unavailable.
|
static void |
suppressNewHealthWarnings(boolean suppress) |
static void |
suppressNewHealthWarningsWhile(java.lang.Runnable runnable) |
public I2cAddr i2cAddr
public int register
protected static java.util.concurrent.atomic.AtomicInteger healthStatusSuppressionCount
public static TimestampedI2cData makeFakeData(java.lang.Object deviceHavingProblems, I2cAddr i2cAddr, int ireg, int creg)
public static void suppressNewHealthWarningsWhile(java.lang.Runnable runnable)
public static void suppressNewHealthWarnings(boolean suppress)