public interface IPDIMemoryBlock extends IPDISessionObject
Modifier and Type | Field and Description |
---|---|
static byte |
READ_ONLY
Bit mask used to indicate a byte is read-only
|
static byte |
VALID
Bit mask used to indicate a byte is valid
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Returns the values of the bytes currently contained in this this memory block.
|
IPDIDataReadMemoryInfo |
getDataReadMemoryInfo() |
String |
getExpression() |
byte |
getFlags(int offset)
Returns this memory byte's attribute as a bit mask.
|
long |
getLength()
Returns the length of this memory block in bytes
|
BigInteger |
getStartAddress()
Returns the start address of this memory block
|
int |
getWordSize()
Returns the size of each memory word in bytes
|
boolean |
isFrozen()
Determines whether the block does not update
|
void |
refresh()
Refresh the data, this may cause events to be trigger if the data values changed.
|
void |
setDataReadMemoryInfo(IPDIDataReadMemoryInfo m) |
void |
setFrozen(boolean frozen)
A memoryBlock set frozen means that the block will not update and check for new data
|
void |
setValue(long offset,
byte[] bytes)
Sets the value of the bytes in this memory block at the specified offset within this memory block to the specified bytes.
|
getSession
static final byte READ_ONLY
static final byte VALID
IPDIDataReadMemoryInfo getDataReadMemoryInfo()
String getExpression()
byte getFlags(int offset)
void setDataReadMemoryInfo(IPDIDataReadMemoryInfo m)
m
- byte[] getBytes() throws PDIException
PDIException
long getLength()
BigInteger getStartAddress()
int getWordSize()
boolean isFrozen()
void refresh() throws PDIException
PDIException
- on failurevoid setFrozen(boolean frozen)
frozen
- the block is frozen by defaultvoid setValue(long offset, byte[] bytes) throws PDIException
offset
- the offset at which to set the new valuesbytes
- the new values
throws PDIException if this method fails. Reasons include:
PDIException
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.