All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.arcsinc.hardwarehost.PhysHdwComm

public interface PhysHdwComm
The PhysHdwComm interface specifies the lowest level access to the hardware.

See Also:
ArcsInterfaceException

Method Index

 o bootDsp()
Boot up the hardware - may require a reset action prior to booting - check the system implementation.
 o getFifoCntSrcDsp()
Get the number of /b>()
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 getFloatgetFloat(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 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 (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)

Methods

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

Throws: ArcsInterfaceException
upon an interface error.
 o getHdwStatus
 public abstract 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 abstract void setHdwControl(int regNo,
                                    char regValue) throws ArcsInterfaceException
Sets the control word of one of the dedicated hardware control registers. < hardware control registers.

Parameters:
regNo - the register number to address.
regValue - value to set (16-bit word).
Throws: ArcsInterfaceException
upon an interface error.error.
 o getHdwControl
 public abstract char getHdwControl(int regNo) throws ArcsInterfaceException
Gets the control word from one of the dedicated hardware control registers.

Parameters:
regNo - the register number to address.
Returns:
a char (16-bit word) with the result.
Throws: ArcsInterfaceException
upon an interface error.
 o getFifoStatus
 public abstract byte getFifoStatus() throws ArcsInterfaceException
Get the FIFO status.

Returns:
FIFO status
Throws: ArcsInterfaceException
upon an interface error.
 o getFifoCntSrcDsp
 public abstract 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 abstract char getFifoCntSrcPc() throws ArcsInterfaceException
Get the number of words sent by the host system still waiting to be read by the hardware.

Returns:
number of words (char format).
Throws: ArcsInterfaceException
upon an interface error.
 o rcvWord16
 public abstract 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
d16">sendWord16
 public abstract 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 communication error.
 o rcvWord32
 public abstract 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 abstract 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 communication error.
 o rcvFloat
 public abstract float rcvFloat() throws ArcsCommException
Get a float (32-bit) from the hardware (through 32-bit) from the hardware (through the FIFO).

Returns:
a float.
Throws: ArcsCommException
upon a communications error.
 o sendFloat
 public abstract void sendFloat(float value) throws ArcsCommException
Send a floatfloat (32-bit) to the hardware (through the FIFO).

Parameters:
value - a float.
Throws: ArcsCommException
upon a communication error.
 o getInteger
 public abstract int getInteger(char cmd,
                                int addr,
                                int offset) throws ArcsCommException
 o getFloat
 public abstract float getFloat(char cmd,
                                int addr,
                                int offset) throws ArcsCommException
 o setInteger
 public abstract void setInteger(char cmd,
                                 int addr,
                                 int offset,
                                 int value) throws ArcsCommException
 o setFloat
 public abstract void setFloat(char cmd,
                               int addr,
                               int offset,
                               float value) throws ArcsCommException

All Packages  Class Hierarchy    This Package  Previous  Next  Index
>