All Packages Class Hierarchy This Package Previous Next Index
Class com.arcsinc.hardwarehost.PhysHdwCommImpl
java.lang.Object
|
+----com.arcsinc.hardwarehost.PhysHdwCommImpl
- public class PhysHdwCommImpl
- extends Object
- implements PhysHdwComm
The PhysHdwCommImpl
class implements the lowest level
access to the hardware.
- See Also:
- ArcsInterfaceException, PhysHdwComm
-
small.gif" width=6 height=6 alt=" o ">
PhysHdwCommImpl()
- Default constructor
-
bootDsp()
- Boot up the hardware - may require a reset action prior to
booting - check the system implementation.
-
finalize()
- Destructor
-
getFifoCntSrcDsp()
- Get the number of words sent by the hardware still waiting to
be read by the host system.
-
getFifoCntSrcPc()
- Get the number of words sent by the host system still waiting to
be read by the hardware.
-
getFifoStatus()
- Get the FIFO status.
-
getFloat(char, int, int)
-
-
getHdwControl(int)
- Gets the control word from one of the dedicated hardware control
registers.
-
getHdwStatus(int)
- Gets the status word from one of the dedicated hardware status
registers.
-
getInteger(char, int, int)
-
-
rcvf="#rcvFloat()">rcvFloat()
- Get a
float
(32-bit) from the hardware (through
the FIFO).
-
rcvWord16()
- Get a 16-bit word from the hardware (through the FIFO).
-
rcvWord32()
- Get a 32-bit word from the hardware (through the FIFO).
-
resetDsp()
- Reset the hardware, note this action may not cause the system
to boot a kernal - check the system implementation.
-
resetFifo()
- Resets the communications FIFO.
-
sendFloat(float)
- Send a
float
(32-bit) to the hardware (through
the FIFO).
-
sendWord16(char)
- Send a 16-bit word to the hardware (through the FIFO).
-
sendWord32(int)
- Send a 32-bit word to the hardware (thro to the hardware (through the FIFO).
-
setFloat(char, int, int, float)
-
-
setHdwControl(int, char)
- Sets the control word of one of the dedicated hardware control
registers.
-
setInteger(char, int, int, int)
-
-
verifyComm(int)
- Provides a more detailed evaluation of the hardware
communications.
PhysHdwCommImpl
public PhysHdwCommImpl() throws ArcsInterfaceException
- Default constructor
- Throws: ArcsInterfaceException
- upon
an interface error.
resetDsp
public native void resetDsp() throws ArcsInterfaceException
- Reset the hardware, note this action may not cause the system
to boot a kernal - check the system implementation.
- Throws: ArcsInterfaceException
- upon
an interface error.
bootDsp
public native void bootDsp() throws ArcsInterfaceException
- Boot up the hardware - may require a reset action prior to
booting - check the system implementation.
- Throws: ArcsInterfaceException
- upon
an interface error.
resetFifo
public native void resetFifo()
public native void resetFifo() throws ArcsInterfaceException
- Resets the communications FIFO.
- Throws: ArcsInterfaceException
-
- upon
an interface error.
getHdwStatus
public native char getHdwStatus(int regNo) throws ArcsInterfaceException
- Gets the status word from one of the dedicated hardware status
registers.
- Parameters:
- regNo - the register number to address.
- Returns:
- a
char
(16-bit word) with the result.
- Throws: ArcsInterfaceException
- upon
an interface error.
setHdwControl
public native void setHdwControl(int regNo,
char regValue) throws ArcsInterfaceException
- Sets the control word of one of the dedicated hardware control
registers.
- Parameters:
- regNo - the register number to address.
- regValue - value to set (16-bit word).
- Throws: ArcsInterfaceException
- upon
an interface error.
getHdwControl
public native char getHdwControl(int regNo) throws ArcsInterfaceException
- Gets the control word from one of the dedicated hardware control
registers.
- Parameters:
- /b>
- regNo - the register number to address.
- Returns:
- a
char
(16-bit word) with the result.
- Throws: ArcsInterfaceException
- upon
an interface error.
getFifoStatus
public native byte getFifoStatus() throws ArcsInterfaceException
- Get the FIFO status.
- Returns:
- FIFO status
- Throws: ArcsInterfaceException
- upon
an interface error.
getFifoCntSrcDsp
public native char getFifoCntSrcDsp() throws ArcsInterfaceException
- Get the number of words sent by the hardware still waiting to
be read by the host system.
- Returns:
- number of words (
char
format).
- Throws: ArcsInterfaceException
- upon
an interface error.
getFifoCntSrcPc
public native char getFifoCntSrcPc() throws ArcsInterfaceException
- Get the number of words sent by the host system still waiting to
be read by the hardware.
- Returns:
- num
- number of words (
char
format).
- Throws: ArcsInterfaceException
- upon
an interface error.
rcvWord16
public native char rcvWord16() throws ArcsCommException
- Get a 16-bit word from the hardware (through the FIFO).
- Returns:
- a word (
char
format).
- Throws: ArcsCommException
- upon
a communications error.
sendWord16
public native void sendWord16(char word16) throws ArcsCommException
- Send a 16-bit word to the hardware (through the FIFO).
- Parameters:
- word16 - a word (
char
format).
- Throws: ArcsCommException
- upon
a communications error.
rcvWord32
public native int rcvWord32() throws ArcsCommException
- Get a 32-bit word from the hardware (through the FIFO).
- Returns:
- an
int
.
- Throws: ArcsCommException
- upon
a communications error.
<
sendWord32
public native void sendWord32(int word32) throws ArcsCommException
- Send a 32-bit word to the hardware (through the FIFO).
- Parameters:
- word32 - an
int
.
- Throws: ArcsCommException
- upon
a communications error.
rcvFloat
public native float rcvFloat() throws ArcsCommException
- Get a
float
(32-bit) from the hardware (through
the FIFO).
- Returns:
- a
float
.
- Throws: ArcsCommException
- upon
a communications error.
sendFloat
public native void sendFloat(float value) throws ArcsCommException
- Send a
float
(32-bit) to the hardware (through
the FIFO).
- Parameters:
- value - a
float
.
- Throws: ArcsCommException
- upon
a communications error.
getInteger
public native int getIntegee int getInteger(char cmd,
int addr,
int offset) throws ArcsCommException
getFloat
public native float getFloat(char cmd,
int addr,
int offset) throws ArcsCommException
setInteger
public native void setInteger(char cmd,
int addr,
int offset,
int value) throws ArcsCommException
setFloat
public native void setFloat(char cmd,
int addr,
int offset,
float value) throws ArcsCommException
)
finalize
public void finalize() throws ArcsInterfaceException
- Destructor
- Throws: ArcsInterfaceException
- upon
an interface error.
- Overrides:
- finalize in class Object
verifyComm
public int verifyComm(int level)
- Provides a more detailed evaluation of the hardware
communications. Currently,
level
is not used.
- Parameters:
- level - throughness of diagnostic
- Returns:
- result code
- 1 - 5 number of attempts to achieve successful
communications.
- -1 started with non-zero depth in fifoCntSrcPc
- -2 started with non-zero depth in fifoCntSrcDsp
- -3 unsuccessful
All Packages Class Hierarchy This Package Previous Next Index