SET_FLOAT_BLK
public static final char SET_FLOAT_BLK
- SET_FLOAT_BLK is set a contiguous block of floats
GET_INT_BLK_PTR
public static final char GET_INT_BLK_PTR
- GET_INT_BLK_PT is get a contiguous block of integers pointed to
GET_FLOAT_BLK_PTR
public static final char GET_FLOAT_BLK_PTR
- GET_FLOAT_BLK_PT is get a contiguous block of floats pointed to
SET_INT_BLK_PTR
public static final char SET_INT_BLK_PTR
- SET_INT_BLK_PT is set a contiguous block of integers pointed to
SET_FLOAT_BLK_PTR
public static final char SET_FLOAT_BLK_PTR
- SET_FLOAT_BLK_PT is set a contiguous block of floats pointed to
DN_LD_PRG
public static final char DN_LD_PRG
- DN_LD_PRG is download an application program.
maxBlkLength
protected static int maxBlkLength
- maxBlkLength is the maximum data length that can be transferred
by a single command.
HdwCommImpl
public HdwCommImpl(HdwHostImpl hdwHost)
- A construct which assume that no object will receive
communication messages.
- Parameters:
- hdwHost - the hardware host object.
HdwCommImpl
public HdwCommImpl(HdwHostImpl hdwHostl hdwHost,
CommMessageRcvr messageRcvr)
- A construct.
- Parameters:
- hdwHost - the hardware host object.
- messageRcvr - an object which will receive communication
messages.
finalize
public void finalize()
- Standard destructor
- Overrides:
- finalize in class Object
getPhysHdw
public PhysHdwCommImpl getPhysHdw()
- Get a reference to the
PhysHdwCommImpl for this
instance.
- Returns:
- the
PhysHdwCommImpl for this
announciateHdwFail
public void announciateFail
public void announciateHdwFail()
- Provides a utility function for announcing a hardware failure to
the rest of the system.
announciateCommFail
public void announciateCommFail()
- Provides a utility function for announcing a communications
failure to the rest of the system.
rebebootHdw">rebootHdw
public synchronized boolean rebootHdw()
- Commands a hardware reboot.
- Returns:
-
true if successfully completed.
verifyComm
public synchronized int verifyComm(int level)
- Provides a detailed test and verification of the communications
with the hardware.
- Parameters:
- level - level of the diagnostic
- Returns:
- the number of attempts for success or a
failure/diagnostic code.
getVerifyMessages
public String[] getVerifyMessages(int level,
int code)
- Provide a corresponding textual message for a call
verifyComm
- Parameters:
- level - passed to
verifyComm
- code - returned from
verifyComm
- Returns:
- message
setInteger
setInteger
public synchronized void setInteger(int address,
int value)
- Set an integer at hardware memory location,
address, with value, value.
- Parameters:
- address - memory location
- value - value to be set
getInteger
public synchronized int getInteger(int address)
- Get an integer at hardware memory location,
address
- Parameters:
- address - memory location
- Returns:
- its value
setIntegerPtr
public synchronized void setIntegerPtr(int address,
int offset,
int value)
- Set an integer pointed to by the value at hardware memory
location,
address, with value, value.
- Parameters:
- address - pointer memory location
- offset - an additional offset to the pointer value.
- value - value to be set
getIntegerPtr
public synchronized int getIntegerPtr(int address,
int offset)
- Get an integer pointed to by the value at hardware memory
location,
address.
- Parameters:
- address - pointer memory location
- offset - an additional offset to the pointer value.
- Returns:
- lue.
- Returns:
- its value
setIntegerBlock
public synchronized void setIntegerBlock(int address,
int values[])
- Set an array of integers starting at hardware memory location,
address, with value, value.
- Parameters:
- address - starting memory location
- values - values to be set
be set
setIntegerBlock
protected void setIntegerBlock(int address,
int values[],
boolean ptr,
int offset)
getIntegerBlock
public synchronized int[] getIntegerBlock(int address,
int blkLength)
- Get an array of integers starting at hardware memory location,
address, with a range, blkLength.
- Parameters:
- address - starting memory location
- blkLength - number of locations to be retrieved
- Returns:
- values
getIntegerBlock
protected int[] getIntegerBlock(int address,
int blkLength,
boolean ptr,
int offset)
)
setFloat
public synchronized void setFloat(int address,
float value)
- Set a float at hardware memory location,
address, with value, value.
- Parameters:
- address - memory location
- value - value to be set
getFloat
public syn
public synchronized float getFloat(int address)
- Get a float at hardware memory location,
address
- Parameters:
- address - memory location
- Returns:
- its value
setFloatPtr
public synchronized void setFloatPtr(int address,
int offset,
float value)
- Set a float pointed to by the value at hardware memory
location,
address, with value, value.
- Parameters:
- address - pointer memory location
- offset - an additional offset to the pointer value.
- value - value to be set
getFloatPtr
public synchronized float getFloatPtr(int address,
int offset)
- Get a float pointed to by the value at hardware memory
location,
address.
- Parameters:
- address - pointer memory location
- offset - an additional offset to the pointer value.
dditional offset to the pointer value.
- Returns:
- its value
setFloatBlock
public synchronized void setFloatBlock(int address,
float values[])
- Set an array of floats starting at hardware memory location,
address, with value, value.
- Parameters:
- address - starting memory location
- values - v
- values - values to be set
setFloatBlock
protected void setFloatBlock(int address,
float values[],
boolean ptr,
int offset)
getFloatBlock
public synchronized float[] getFloatBlock(int address,
int blkLength)
- Get an array of floats starting at hardware memory location,
address, with a range, blkLength.
- Parameters:
- address - starting memory location
- range - number of locations to be retrieved
- Returns:
- values
getFloatBlock
protected float[] getFloatBlock(int address,
int blkLength,
boolean ptr,
int offset)
)
downloadCode
public synchronized void downloadCode(int entryPtr,
int sectionAddr[],
int sectionData[][])
- Download code to the hardware.
- Parameters:
- entryPtr - starting address for code execution
- sectionAddr - starting address for each loadable section of
the application
- sectionData - each loadable section
dl>
processCmd
public synchronized void processCmd(HdwCmd hdwCmd)
- Send the
hdwCmd to the hardware, retrieve any
expected return data.
- Parameters:
- hdwCmd - the command
All Packages Class Hierarchy This Package Previous Next Index