All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.arcsinc.hardwarehost.HdwCommImpl
HdwCommImpl
class implements communications with
the hardware at the native layer.
address
address
, with a range, blkLength
.
address
.
address
address
, with a range, blkLength
.
address
.
PhysHdwCommImpl
for this
instance.
verifyComm
hdwCmd
to the hardware, retrieve any
expected return data.
address
, with value, value
.
addcode>address
, with value, value
.
address
, with value, value
.
address
, with value, value
.
address
, with value, value
.
address
, with value, value
.
public static final char NO_OP
public static final char START_PRG
public static final char STOP_PRG
public static final char DN_LD_COMPLETE
public static final char GET_INT
public static final char GET_FLOAT
public static final char SET_INT
public static fino "> SET_FLOATpublic static final char SET_FLOAT
public static final char GET_INT_PTR
public static final char GET_FLOAT_PTR
public static final char SET_INT_PTR
public static final char SET_FLOAT_PTR
public static final char IS_CMD_VALID
public static final char GET_INT_BLK
public static final char GET_FLOAT_BLK
public static final char SET_INT_BLK
public static final char SET_FLOAT_BLK
public static final char GET_INT_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
forthis
announciateHdwFail
public void announciateFailpublic 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)
address
public synchronized void setIntegerPtr(int address, int offset, int value)
address
, with value, value
.
public synchronized int getIntegerPtr(int address, int offset)
address
.
public synchronized void setIntegerBlock(int address, int values[])
address
, with value, value
.
protected void setIntegerBlock(int address, int values[], boolean ptr, int offset)
public synchronized int[] getIntegerBlock(int address, int blkLength)
address
, with a range, blkLength
.
protected int[] getIntegerBlock(int address, int blkLength, boolean ptr, int offset)
public synchronized void setFloat(int address, float value)
address
, with value, value
.
public synpublic synchronized float getFloat(int address)
address
public synchronized void setFloatPtr(int address, int offset, float value)
address
, with value, value
.
public synchronized float getFloatPtr(int address, int offset)
address
.
public synchronized void setFloatBlock(int address, float values[])
address
, with value, value
.
protected void setFloatBlock(int address, float values[], boolean ptr, int offset)
public synchronized float[] getFloatBlock(int address, int blkLength)
address
, with a range, blkLength
.
protected float[] getFloatBlock(int address, int blkLength, boolean ptr, int offset)
public synchronized void downloadCode(int entryPtr, int sectionAddr[], int sectionData[][])
public synchronized void processCmd(HdwCmd hdwCmd)
hdwCmd
to the hardware, retrieve any
expected return data.
All Packages Class Hierarchy This Package Previous Next Index