public class Port
extends java.lang.Object
// Create Environment and open a debug session
ScriptingEnvironment env = new ScriptingEnvironment();
DebugServer myServer = (DebugSer ver) env.getServer("DebugServer.1");
DebugSession mySession = myServer.openSession("*", "*");
...
// Connect a file to a memory address
mySession.port.connect(0x38000000, Page.Data, 4, Port.READ, "./input_data.txt")
| Modifier and Type | Field and Description |
|---|---|
static int |
EXTERN
External
|
static int |
NOREWIND
No Rewind
|
static int |
READ
Read Access
|
static int |
UPDATE
Update
|
static int |
WRITE
Write Access
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect(long nAddress,
int nPage,
int nLength,
int nAccessType,
java.lang.String sFile)
Connect a data file to a memory (port) address (Simulator only) allowing you to read or write data to that
file through the memory address.
|
void |
disconnect(long nAddress,
int nPage,
int nLength,
int nAccessType)
Disconnect a data file from a memory (port) address (Simulator only).
|
java.lang.String |
list()
List all memory addresses that have been previously connected a data files using portConnect (Simulator only).
|
public static final int EXTERN
public static final int NOREWIND
public static final int READ
public static final int UPDATE
public static final int WRITE
public void connect(long nAddress,
int nPage,
int nLength,
int nAccessType,
java.lang.String sFile)
throws ScriptingException
nAddress - specifies the starting address of the range in memory.nPage - the memory page. Use one of Memory.Page enumeration.nLength - defines the length of the range.nAccessType - sFile - the data file to which the memory range (port) is connected. Relative paths are permitted, use
ScripingEnvironment.setCurrentDirectory(String)
to change the current working directory.ScriptingExceptionpublic void disconnect(long nAddress,
int nPage,
int nLength,
int nAccessType)
throws ScriptingException
nAddress - specifies the starting address of the range in memory.nPage - the memory page. Use one of Memory.Page enumeration.nLength - defines the length of the range.nAccessType - ScriptingExceptionpublic java.lang.String list()
throws ScriptingException
ScriptingException