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

Constructor Index

 o small.gif" width=6 height=6 alt=" o "> PhysHdwCommImpl()
Default constructor

Method Index

 o bootDsp()
Boot up the hardware - may require a reset action prior to booting - check the system implementation.
 o finalize()
Destructor
 o getFifoCntSrcDsp()
Get the number of words sent by the hardware still waiting to be read by the host system.
 o getFifoCntSrcPc()
Get the number of words sent by the host system still waiting to be read by the hardware.
 o getFifoStatus()
Get the FIFO status.
 o getFloat(char, int, int)
 o getHdwControl(int)
Gets the control word from one of the dedicated hardware control registers.
 o getHdwStatus(int)
Gets the status word from one of the dedicated hardware status registers.
 o getInteger(char, int, int)
 o rcvf="#rcvFloat()">rcvFloat()
Get a float (32-bit) from the hardware (through the FIFO).
 o rcvWord16()
Get a 16-bit word from the hardware (through the FIFO).
 o rcvWord32()
Get a 32-bit word from the hardware (through the FIFO).
 o resetDsp()
Reset the hardware, note this action may not cause the system to boot a kernal - check the system implementation.
 o resetFifo()
Resets the communications FIFO.
 o sendFloat(float)
Send a float (32-bit) to the hardware (through the FIFO).
 o sendWord16(char)
Send a 16-bit word to the hardware (through the FIFO).
 o sendWord32(int)
Send a 32-bit word to the hardware (thro to the hardware (through the FIFO).
 o setFloat(char, int, int, float)
 o setHdwControl(int, char)
Sets the control word of one of the dedicated hardware control registers.
 o setInteger(char, int, int, int)
 o verifyComm(int)
Provides a more detailed evaluation of the hardware communications.

Constructors

 o PhysHdwCommImpl
 public PhysHdwCommImpl() throws ArcsInterfaceException
Default constructor

Throws: ArcsInterfaceException
upon an interface error.

Methods

 o 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.
 o 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.
 o resetFifo
 public native void resetFifo() 
 public native void resetFifo() throws ArcsInterfaceException
Resets the communications FIFO.

Throws: ArcsInterfaceException
upon an interface error.
 o 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.
 o 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.
 o 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.
 o getFifoStatus
 public native byte getFifoStatus() throws ArcsInterfaceException
Get the FIFO status.

Returns:
FIFO status
Throws: ArcsInterfaceException
upon an interface error.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
<
 o 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.
 o 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.
 o 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.
 o getInteger
 public native int getIntegee int getInteger(char cmd,
                              int addr,
                              int offset) throws ArcsCommException
 o getFloat
 public native float getFloat(char cmd,
                              int addr,
                              int offset) throws ArcsCommException
 o setInteger
 public native void setInteger(char cmd,
                               int addr,
                               int offset,
                               int value) throws ArcsCommException
 o setFloat
 public native void setFloat(char cmd,
                             int addr,
                             int offset,
                             float value) throws ArcsCommException
 o finalize
 public void finalize() throws ArcsInterfaceException
Destructor

Throws: ArcsInterfaceException
upon an interface error.
Overrides:
finalize in class Object
 o 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