public class AcquisitionEvent extends PeripheralEvent
AcquisitionEvent class encapsulates ADC channel input acquisition conditions. ADCChannel,
AcquisitionListenercount, lastTimeStamp, lastTimeStampMicros, peripheral, timeStamp, timeStampMicros| Constructor and Description |
|---|
AcquisitionEvent(ADCChannel channel,
int[] values,
int offset,
int number)
Creates a new
AcquisitionEvent with the specified raw sampled values and time-stamped with the current
time.. |
AcquisitionEvent(ADCChannel channel,
int[] values,
int offset,
int number,
long timeStamp,
int timeStampMicros)
Creates a new
AcquisitionEvent with the specified raw sampled values and timestamp. |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumber()
Returns the number of sampled values.
|
int |
getOffset()
Returns the offset in the
values buffer where the sampled values start. |
int[] |
getValues()
Returns the buffer containing the sampled values.
|
getCount, getLastTimeStamp, getLastTimeStampMicros, getPeripheral, getTimeStamp, getTimeStampMicrospublic AcquisitionEvent(ADCChannel channel, int[] values, int offset, int number)
AcquisitionEvent with the specified raw sampled values and time-stamped with the current
time..channel - the source ADC channel.values - the buffer containing the sampled values.offset - the offset in the values buffer where the sampled values start.number - the number of sampled values.java.lang.NullPointerException - if channel or values is null.java.lang.IndexOutOfBoundsException - if offset and/or number would result in pointing outside of values.public AcquisitionEvent(ADCChannel channel, int[] values, int offset, int number, long timeStamp, int timeStampMicros)
AcquisitionEvent with the specified raw sampled values and timestamp.channel - the source ADC channel.values - the buffer containing the sampled values.offset - the offset in the values buffer where the sampled values start.number - the number of sampled values.timeStamp - the timestamp (in milliseconds).timeStampMicros - the additional microseconds to the timestamp.java.lang.NullPointerException - if channel or values is null.java.lang.IllegalArgumentException - if timeStamp or timeStampMicros is negative.java.lang.IndexOutOfBoundsException - if offset and/or number would result in pointing outside of values.public int getNumber()
public int getOffset()
values buffer where the sampled values start.values buffer where the sampled values start.public int[] getValues()
Copyright (c) 1990, 2013, Oracle and/or its affiliates. All rights reserved.