All Packages Class Hierarchy This Package Previous Next Index
Interface com.arcsinc.hardwarehost.HdwComm
- public interface HdwComm
The interface
interface provides the
hardware-independent mechanism for accessing hardware.
-
downloadCode(int, int[], int[][])
- Download code to the hardware.
-
getFloat(int)
- Get a float at hardware memory location,
address
-
getf="#getFloatBlock(int, int)">getFloatBlock(int, int)
- Get an array of floats starting at hardware memory location,
address
, with a range, blkLength
.
-
getFloatPtr(int, int)
- Get a float pointed to by the value at hardware memory
location,
address
.
-
getInteger(int)
- Get an integer at hardware memory location,
ion,
address
-
getIntegerBlock(int, int)
- Get an array of integers starting at hardware memory location,
address
, with a range, blkLength
.
-
getIntegerPtr(int, int)
- Get an integer pointed to by the value at hardware memory
location,
address
.
-
getVerifyMessages(int, int)
- Provide a corresponding textual message for a call
verifyComm
-
processCmd(HdwCmd)
- Send the
hdwCmd
to the hardware, retrieve any
expected return data.
-
rebootHdw()
- Commands a hardware reboot.
-
setFloat(int, float)
- Set a float at hardware memory location,
address
, with value, value
.code>value.
-
setFloatBlock(int, float[])
- Set an array of floats starting at hardware memory location,
address
, with value, value
.
-
setFloatPtr(int, int, float)
- Set a float pointed to by the value at hardware memory
location,
address
, with value, value
.
-
setInteger(int, int)
- Set an integer at hardware memory location,
address
, with value, value
.
-
setIntegerBlock(int, int[])
- Set an array of integers starting at hardware memory location,
address
, with value, value
.
-
setIntegerPtr(int, int, int)
- Set an integer pointed to by the value at hardware memory
location,
address
, with value, value
.
-
verifyComm(int)
- Provides a detailed test and verification of the communications
with the hardware.
rebootHdw
public abstract boolean rebootHdw()
- Commands a hardware reboot.
- Returns:
-
true
if successfully completed.
verifyComm
public abstract 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 abstract String[] getVerifyMessages(int level,
int code)
- Provide a corresponding textual message fo Provide a corresponding textual message for a call
verifyComm
- Parameters:
- level - passed to
verifyComm
- code - returned from
verifyComm
- Returns:
- message
setInteger
public abstract 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 abstract int getInteger(int address)
- Get an integer at hardware memory location,
address
- Parameters:
- address - memory location
- Returns:
- its value
setIntegerBlock
public abstract 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
getIntegerBlock
public abstract 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
setIntegerPtr
public abstract 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 abstract int ge>
public abstract 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:
- its value
setFloat
public abstract void setFloat(int oid 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 abstract float getFloat(int address)
- Get a float at hardware memory location,
address
- Parameters:
- address - memory location
- Returns:
- its value
setFloatBlock
public abstract 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 - values to be set
getFloatBlock
public abstract floaatBlock
public abstract float[] getFloatBlock(int address,
int range)
- 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
setFloatPtrloatPtr
public abstract 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 abstract 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.
- Returns:
- its value
downloadCode
public abstract void downloadCode(int entryPtr,
int sectionAddr[],
int sectionData[][])
- Download code to the hardwar
- 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
processCmd
public abstract void processCmd(HdwCmd hdwCmd)
- Send the
hdwCmdhdwCmd
to the hardware, retrieve any
expected return data.
- Parameters:
- hdwCmd - the command
All Packages Class Hierarchy This Package Previous Next Index