public class MMIOEvent extends PeripheralEvent
MMIOEvent class encapsulates events fired by peripherals mapped to memory.MMIODevice,
MMIOEventListenercount, lastTimeStamp, lastTimeStampMicros, peripheral, timeStamp, timeStampMicros| Constructor and Description |
|---|
MMIOEvent(MMIODevice device,
int id)
Creates a new
MMIOEvent with the specified value and time-stamped with the current time and time-stamped
with the current time. |
MMIOEvent(MMIODevice device,
int id,
byte[] capturedMemoryContent,
long timeStamp,
int timeStampMicros)
Creates a new
MMIOEvent with the specified value and timestamp. |
MMIOEvent(MMIODevice device,
int id,
int capturedRegisterValue,
long timeStamp,
int timeStampMicros)
Creates a new
MMIOEvent with the specified value and timestamp. |
MMIOEvent(MMIODevice device,
int id,
long timeStamp,
int timeStampMicros)
Creates a new
MMIOEvent with the specified value and timestamp. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getCapturedMemoryContent()
Gets the captured content of the memory area or memory block designated upon registration.
|
int |
getCapturedRegisterValue()
Gets the captured value of the register designated upon registration (as a 32bit integer).
|
int |
getID()
Returns this event ID.
|
getCount, getLastTimeStamp, getLastTimeStampMicros, getPeripheral, getTimeStamp, getTimeStampMicrospublic MMIOEvent(MMIODevice device, int id)
MMIOEvent with the specified value and time-stamped with the current time and time-stamped
with the current time.device - the source device.id - the event ID.java.lang.NullPointerException - if device is null.java.lang.IllegalArgumentException - if id is negative.public MMIOEvent(MMIODevice device, int id, byte[] capturedMemoryContent, long timeStamp, int timeStampMicros)
MMIOEvent with the specified value and timestamp.device - the source device.id - the event ID.capturedMemoryContent - the captured content of the memory area or memory block designated upon registration.timeStamp - the timestamp (in milliseconds).timeStampMicros - the additional microseconds to the timestamp.java.lang.NullPointerException - if device or capturedMemoryContent is null.java.lang.IllegalArgumentException - if id, timeStamp or timeStampMicros is negative.public MMIOEvent(MMIODevice device, int id, int capturedRegisterValue, long timeStamp, int timeStampMicros)
MMIOEvent with the specified value and timestamp.device - the source device.id - the event ID.capturedRegisterValue - the captured value of the register designated upon registration (as a 32bit integer).timeStamp - the timestamp (in milliseconds).timeStampMicros - the additional microseconds to the timestamp.java.lang.NullPointerException - if device or capturedRegisterValue is null.java.lang.IllegalArgumentException - if id, timeStamp or timeStampMicros is negative.public MMIOEvent(MMIODevice device, int id, long timeStamp, int timeStampMicros)
MMIOEvent with the specified value and timestamp.device - the source device.id - the event ID.timeStamp - the timestamp (in milliseconds).timeStampMicros - the additional microseconds to the timestamp.java.lang.NullPointerException - if device is null.java.lang.IllegalArgumentException - if id, timeStamp or timeStampMicros is negative.public byte[] getCapturedMemoryContent()
null if no memory area or block content was
captured.MMIODevice.setMMIOEventListener(int, java.lang.String, com.oracle.deviceaccess.mmio.MMIOEventListener),
MMIODevice.setMMIOEventListener(int, byte[], int, int, com.oracle.deviceaccess.mmio.MMIOEventListener)public int getCapturedRegisterValue()
MMIODevice.setMMIOEventListener(int, java.lang.String, com.oracle.deviceaccess.mmio.MMIOEventListener)public int getID()
Copyright (c) 1990, 2013, Oracle and/or its affiliates. All rights reserved.