org.mbari.puck
Class Puck_1_3

java.lang.Object
  extended by org.mbari.puck.Puck
      extended by org.mbari.puck.Puck_1_3

public class Puck_1_3
extends Puck

PUCK interface implementation for PUCK v1.3.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mbari.puck.Puck
Puck.Datasheet
 
Field Summary
 
Fields inherited from class org.mbari.puck.Puck
_readyToWrite
 
Constructor Summary
Puck_1_3(gnu.io.SerialPort port)
          Create Puck, using specified SerialPort.
 
Method Summary
 int getVersionNumber()
          Return a version number of this datasheet, as specified in PUCK specification for the second field of the datasheet.
 byte[] nullCommand()
          Return PUCK "null" command"
 byte[] promptString()
          Return PUCK prompt string.
 void sendSoftBreak()
          Send a PUCK 'soft break', to put device into "PUCK mode".
 void setPuckMode(int nTries)
          Put device in PUCK mode
 
Methods inherited from class org.mbari.puck.Puck
close, erase, externalDevice, flush, flushInput, getOffset, getPuckPrompt, hasPayload, read, readDatasheet, readResponse, setBaud, setFastBaud, setInstrumentMode, setOffset, size, skipDatasheet, write, writeableDatasheet, writeDatasheet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Puck_1_3

public Puck_1_3(gnu.io.SerialPort port)
         throws java.io.IOException,
                java.lang.Exception
Create Puck, using specified SerialPort.

Throws:
java.io.IOException
java.lang.Exception
Method Detail

setPuckMode

public void setPuckMode(int nTries)
                 throws java.io.IOException
Put device in PUCK mode

Specified by:
setPuckMode in class Puck
Throws:
java.io.IOException

sendSoftBreak

public void sendSoftBreak()
                   throws java.io.IOException
Send a PUCK 'soft break', to put device into "PUCK mode".

Throws:
java.io.IOException

nullCommand

public byte[] nullCommand()
Return PUCK "null" command"

Specified by:
nullCommand in class Puck

promptString

public byte[] promptString()
Return PUCK prompt string.

Specified by:
promptString in class Puck

getVersionNumber

public int getVersionNumber()
Return a version number of this datasheet, as specified in PUCK specification for the second field of the datasheet.

Specified by:
getVersionNumber in class Puck


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.