public class ADCSample
extends java.lang.Object
Use the ADC.registerListener(IADCListener)
method to register your listener and
receive ADC samples.
ADC
,
IADCListener
Constructor and Description |
---|
ADCSample(ADC adc,
int value,
long timestamp)
Creates an ADC sample with the given ADC, sample value and timestamp.
|
Modifier and Type | Method and Description |
---|---|
ADC |
getADC()
Gets the ADC object.
|
long |
getTimestamp()
Gets the time when the ADC sample was taken.
|
int |
getValue()
Gets the ADC sample value.
|
public ADCSample(ADC adc, int value, long timestamp)
adc
- The ADC affected.value
- ADC sample value.timestamp
- The time when the ADC sample was taken in milliseconds.public ADC getADC()
public int getValue()
public long getTimestamp()