public class Iolog extends Object
Modifier and Type | Field and Description |
---|---|
static int |
EDGE_ANY
EDGE_ANY A flag indicating that any change of state is of interest.
|
static int |
EDGE_FALLING
EDGE_FALLING A flag indicating that the falling edge (transition from ON to OFF) is of interest.
|
static int |
EDGE_RISING
EDGE_RISING A flag indicating that the rising edge (transition from OFF to ON) is of interest.
|
Constructor and Description |
---|
Iolog()
Creates an instance of the IOLOG.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
Releases the log snapshot.
|
IoEvent |
getInputEvent(long timestamp)
Fetch the Input event associated with a specific timestamp.
|
IoEvent[] |
getInputEvents()
Obtain an array of all Input events.
|
IoEvent[] |
getInputEvents(int limit)
Obtain an array of recent Input events.
|
long[] |
getInputPeriod(int chan)
Obtain one or more input signal periods
|
long[] |
getInputPeriod(int chan,
int limit)
Obtain one or more input signal periods
|
long[] |
getInputTransitions(int chan)
Returns array of Input transition timestamps for the specified channel.
|
long[] |
getInputTransitions(int chan,
int edge,
int limit)
Returns array of Input transition timestamps for the specified channel.
|
long[] |
getInputWidth(int chan,
boolean invert)
Obtain one or more pulse widths.
|
long[] |
getInputWidth(int chan,
boolean invert,
int limit)
Obtain one or more pulse widths.
|
IoEvent |
getOutputEvent(long timestamp)
Fetch the Output event associated with a specific timestamp.
|
IoEvent[] |
getOutputEvents()
Obtain an array of all Output events.
|
IoEvent[] |
getOutputEvents(int limit)
Obtain an array of recent Output events.
|
long[] |
getOutputTransitions(int chan)
Returns array of Output transition timestamps for the specified channel.
|
long[] |
getOutputTransitions(int chan,
int edge,
int limit)
Returns array of Output transition timestamps for the specified channel.
|
long |
gettime()
Obtains the timestamp associated with the snapshot.
|
void |
refresh()
Updates the log snapshot.
|
void |
refresh(long timestamp)
Updates the log snapshot.
|
public static final int EDGE_FALLING
public static final int EDGE_RISING
public static final int EDGE_ANY
public Iolog()
public void refresh()
public void refresh(long timestamp)
timestamp
- include events since this time (incremental if 0)public long gettime()
public IoEvent[] getInputEvents()
public IoEvent[] getInputEvents(int limit)
limit
- maximum number of events to returnpublic IoEvent[] getOutputEvents()
public IoEvent[] getOutputEvents(int limit)
limit
- maximum number of events to returnpublic long[] getInputTransitions(int chan)
chan
- selected channel (0-N)public long[] getOutputTransitions(int chan, int edge, int limit)
chan
- selected channel (0-N)edge
- filters by edge specified (EDGE_ALL, EDGE_RISING or EDGE_FALLING)limit
- maximum number of transitions to returnpublic long[] getOutputTransitions(int chan)
chan
- selected channel (0-N)public long[] getInputTransitions(int chan, int edge, int limit)
chan
- selected channel (0-N)edge
- selected transition type (EDGE_ANY, EDGE_RISING or EDGE_FALLING)limit
- maximum number of transitions to returnpublic IoEvent getInputEvent(long timestamp)
timestamp
- precise timestamp of an eventpublic IoEvent getOutputEvent(long timestamp)
timestamp
- precise timestamp of an eventpublic long[] getInputPeriod(int chan)
chan
- specified input channelpublic long[] getInputPeriod(int chan, int limit)
chan
- specified input channellimit
- maximum number of periods to returnpublic long[] getInputWidth(int chan, boolean invert)
chan
- selected channelinvert
- TRUE returns width for LOW pulsepublic long[] getInputWidth(int chan, boolean invert, int limit)
chan
- selected channelinvert
- TRUE returns width for LOW pulselimit
- maximum number of widths to return