org.mbari.siam.moos.distributed.dpa
Class Dpa

java.lang.Object
  extended by org.mbari.siam.moos.distributed.dpa.Dpa

public class Dpa
extends java.lang.Object

This utility class defines DPA-related constants and flags. It has been created as a separate class so that shore-side code that uses DPA interface information will not require all of the hardware-specific code/classes to be included.


Field Summary
static int ADC_ACQMOD_EXT
          ADC Mask: aquisition mode external
static int ADC_HEATSINK_TEMP_ADDR
          ADC Channel Address: heat sink temperature
static int ADC_INMOD_SGL
          ADC Mask: input mode single ended
static int ADC_ISENSE_CH0_ADDR
          ADC Channel Address: ch 0 current sense
static int ADC_ISENSE_CH1_ADDR
          ADC Channel Address: ch 1 current sense
static int ADC_POWER_MASK
          ADC Mask: power bits
static int ADC_POWER_OFF
          ADC Mask: power off
static int ADC_POWER_ON_INT
          ADC Mask: power on, internal clock
static int ADC_POWER_STBY
          ADC Mask: power standby
static int ADC_R
          ADC Command: Read
static int ADC_REF_UNIPOLAR
          ADC Mask: unipolar reference
static int ADC_START
          ADC Command: Write
static int ADC_VBAT_ADDR
          ADC Channel Address: battery supply voltage
static int ADC_VSENSE_CH0_ADDR
          ADC Channel Address: ch 0 voltage sense
static int ADC_VSENSE_CH1_ADDR
          ADC Channel Address: ch 1 voltage sense
static int ADC_VTRIP_CH0_ADDR
          ADC Channel Address: ch 0 trip level sense
static int ADC_VTRIP_CH1_ADDR
          ADC Channel Address: ch 1 trip level sense
static int CONTROL_CPOWER_ON
          Control Register Mask: Communications Power ON
static int CONTROL_DUP_HALF
          Control Register Mask: Duplex HALF
static int CONTROL_IPOWER_ON
          Control Register Mask: Instrument Power ON
static int CONTROL_MASK
          Mask of valid control register bits
static int CONTROL_MODE_485
          Control Register Mask: Mode RS485
static int CONTROL_R_CH0
          Control Register ch 0 read
static int CONTROL_R_CH1
          Control Register ch 1 read
static int CONTROL_SLEW_UNLIMITED
          Control Register Mask: Slew Rate UNLIMITED
static int CONTROL_STATUS_FAULT
          Control Register Mask: Status FAULT
static int CONTROL_TXPOWER_HI
          Control Register Mask: Serial Direction ON (actually Tx Power hi/lo)
static int CONTROL_W_CH0
          Control Register ch 0 write
static int CONTROL_W_CH1
          Control Register ch 1 write
static int DEFAULT_CURRENT_LIMIT_MA
          Default Current Limit
static int DPA_BUSY
          DPA return value when busy
static int DPA_BUSY_MASK
          DPA Mask: mask of bits returned when busy
static int DPA_COMMAND_BUSY
          DPA command: check if busy
static int DPOT_COUNT_MASK
          DPOT Command Mask: count bits
static int DPOT_DIR_DOWN
          DPOT Command Mask: Direction DOWN
static int DPOT_DIR_UP
          DPOT Command Mask: Direction UP
static int DPOT_MILLIAMPS_PER_COUNT
          DPOT Constant: milliamps per count
static int DPOT_NOSAVE_POS
          DPOT Command Mask: do not save position
static int DPOT_SAVE_POS
          DPOT Command Mask: save position
static int DPOT_W_CH0
          DPOT Command : channel 0 write
static int DPOT_W_CH1
          DPOT Command : channel 1 write
static int INTERRUPT_MASK
          Mask of valid interrupt register bits
static int INTERRUPT_OCE_CH0
          Interrupt Register Mask: ch 0 overcurrent enable
static int INTERRUPT_OCE_CH1
          Interrupt Register Mask: ch 1 overcurrent enable
static int INTERRUPT_OCE_GLOBAL
          Interrupt Register Mask: global overcurrent enable
static int INTERRUPT_OCE_MASK
          Interrupt Register Mask: overcurrent enable mask
static int INTERRUPT_OCF_CH0
          Interrupt Register Mask: ch 0 overcurrent interrupt flag
static int INTERRUPT_OCF_CH1
          Interrupt Register Mask: ch 1 overcurrent interrupt flag
static int INTERRUPT_OCF_GLOBAL
          Interrupt Register Mask: global overcurrent interrupt flag
static int INTERRUPT_OCF_MASK
          Interrupt Register Mask: overcurrent flag mask
static int INTERRUPT_R
          Interrupt Register Command: read
static int INTERRUPT_W
          Interrupt Register Command: write
static int RELAY_485_CON
          Relay Register Mask: RS485 Terminations Connected
static int RELAY_COMM_ISO
          Relay Register Mask: Communications Isolated
static int RELAY_IPOWER_ISO
          Relay Register Mask: Power Isolated
static int RELAY_MASK
          Mask of valid relay register bits
static int RELAY_R_CH0
          Relay Register ch 0 read
static int RELAY_R_CH1
          Relay Register ch 1 read
static int RELAY_W_CH0
          Relay Register ch 0 write
static int RELAY_W_CH1
          Relay Register ch 1 write
 
Constructor Summary
Dpa()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CURRENT_LIMIT_MA

public static final int DEFAULT_CURRENT_LIMIT_MA
Default Current Limit

See Also:
Constant Field Values

DPA_COMMAND_BUSY

public static final int DPA_COMMAND_BUSY
DPA command: check if busy

See Also:
Constant Field Values

DPA_BUSY

public static final int DPA_BUSY
DPA return value when busy

See Also:
Constant Field Values

DPA_BUSY_MASK

public static final int DPA_BUSY_MASK
DPA Mask: mask of bits returned when busy

See Also:
Constant Field Values

RELAY_MASK

public static final int RELAY_MASK
Mask of valid relay register bits

See Also:
Constant Field Values

RELAY_W_CH0

public static final int RELAY_W_CH0
Relay Register ch 0 write

See Also:
Constant Field Values

RELAY_R_CH0

public static final int RELAY_R_CH0
Relay Register ch 0 read

See Also:
Constant Field Values

RELAY_W_CH1

public static final int RELAY_W_CH1
Relay Register ch 1 write

See Also:
Constant Field Values

RELAY_R_CH1

public static final int RELAY_R_CH1
Relay Register ch 1 read

See Also:
Constant Field Values

RELAY_485_CON

public static final int RELAY_485_CON
Relay Register Mask: RS485 Terminations Connected

See Also:
Constant Field Values

RELAY_COMM_ISO

public static final int RELAY_COMM_ISO
Relay Register Mask: Communications Isolated

See Also:
Constant Field Values

RELAY_IPOWER_ISO

public static final int RELAY_IPOWER_ISO
Relay Register Mask: Power Isolated

See Also:
Constant Field Values

CONTROL_MASK

public static final int CONTROL_MASK
Mask of valid control register bits

See Also:
Constant Field Values

CONTROL_W_CH0

public static final int CONTROL_W_CH0
Control Register ch 0 write

See Also:
Constant Field Values

CONTROL_R_CH0

public static final int CONTROL_R_CH0
Control Register ch 0 read

See Also:
Constant Field Values

CONTROL_W_CH1

public static final int CONTROL_W_CH1
Control Register ch 1 write

See Also:
Constant Field Values

CONTROL_R_CH1

public static final int CONTROL_R_CH1
Control Register ch 1 read

See Also:
Constant Field Values

CONTROL_STATUS_FAULT

public static final int CONTROL_STATUS_FAULT
Control Register Mask: Status FAULT

See Also:
Constant Field Values

CONTROL_TXPOWER_HI

public static final int CONTROL_TXPOWER_HI
Control Register Mask: Serial Direction ON (actually Tx Power hi/lo)

See Also:
Constant Field Values

CONTROL_DUP_HALF

public static final int CONTROL_DUP_HALF
Control Register Mask: Duplex HALF

See Also:
Constant Field Values

CONTROL_MODE_485

public static final int CONTROL_MODE_485
Control Register Mask: Mode RS485

See Also:
Constant Field Values

CONTROL_SLEW_UNLIMITED

public static final int CONTROL_SLEW_UNLIMITED
Control Register Mask: Slew Rate UNLIMITED

See Also:
Constant Field Values

CONTROL_CPOWER_ON

public static final int CONTROL_CPOWER_ON
Control Register Mask: Communications Power ON

See Also:
Constant Field Values

CONTROL_IPOWER_ON

public static final int CONTROL_IPOWER_ON
Control Register Mask: Instrument Power ON

See Also:
Constant Field Values

INTERRUPT_MASK

public static final int INTERRUPT_MASK
Mask of valid interrupt register bits

See Also:
Constant Field Values

INTERRUPT_W

public static final int INTERRUPT_W
Interrupt Register Command: write

See Also:
Constant Field Values

INTERRUPT_R

public static final int INTERRUPT_R
Interrupt Register Command: read

See Also:
Constant Field Values

INTERRUPT_OCE_MASK

public static final int INTERRUPT_OCE_MASK
Interrupt Register Mask: overcurrent enable mask

See Also:
Constant Field Values

INTERRUPT_OCE_CH0

public static final int INTERRUPT_OCE_CH0
Interrupt Register Mask: ch 0 overcurrent enable

See Also:
Constant Field Values

INTERRUPT_OCE_CH1

public static final int INTERRUPT_OCE_CH1
Interrupt Register Mask: ch 1 overcurrent enable

See Also:
Constant Field Values

INTERRUPT_OCE_GLOBAL

public static final int INTERRUPT_OCE_GLOBAL
Interrupt Register Mask: global overcurrent enable

See Also:
Constant Field Values

INTERRUPT_OCF_MASK

public static final int INTERRUPT_OCF_MASK
Interrupt Register Mask: overcurrent flag mask

See Also:
Constant Field Values

INTERRUPT_OCF_CH0

public static final int INTERRUPT_OCF_CH0
Interrupt Register Mask: ch 0 overcurrent interrupt flag

See Also:
Constant Field Values

INTERRUPT_OCF_CH1

public static final int INTERRUPT_OCF_CH1
Interrupt Register Mask: ch 1 overcurrent interrupt flag

See Also:
Constant Field Values

INTERRUPT_OCF_GLOBAL

public static final int INTERRUPT_OCF_GLOBAL
Interrupt Register Mask: global overcurrent interrupt flag

See Also:
Constant Field Values

ADC_START

public static final int ADC_START
ADC Command: Write

See Also:
Constant Field Values

ADC_R

public static final int ADC_R
ADC Command: Read

See Also:
Constant Field Values

ADC_POWER_MASK

public static final int ADC_POWER_MASK
ADC Mask: power bits

See Also:
Constant Field Values

ADC_POWER_OFF

public static final int ADC_POWER_OFF
ADC Mask: power off

See Also:
Constant Field Values

ADC_POWER_STBY

public static final int ADC_POWER_STBY
ADC Mask: power standby

See Also:
Constant Field Values

ADC_POWER_ON_INT

public static final int ADC_POWER_ON_INT
ADC Mask: power on, internal clock

See Also:
Constant Field Values

ADC_ACQMOD_EXT

public static final int ADC_ACQMOD_EXT
ADC Mask: aquisition mode external

See Also:
Constant Field Values

ADC_INMOD_SGL

public static final int ADC_INMOD_SGL
ADC Mask: input mode single ended

See Also:
Constant Field Values

ADC_REF_UNIPOLAR

public static final int ADC_REF_UNIPOLAR
ADC Mask: unipolar reference

See Also:
Constant Field Values

ADC_VBAT_ADDR

public static final int ADC_VBAT_ADDR
ADC Channel Address: battery supply voltage

See Also:
Constant Field Values

ADC_VSENSE_CH1_ADDR

public static final int ADC_VSENSE_CH1_ADDR
ADC Channel Address: ch 1 voltage sense

See Also:
Constant Field Values

ADC_VTRIP_CH1_ADDR

public static final int ADC_VTRIP_CH1_ADDR
ADC Channel Address: ch 1 trip level sense

See Also:
Constant Field Values

ADC_ISENSE_CH1_ADDR

public static final int ADC_ISENSE_CH1_ADDR
ADC Channel Address: ch 1 current sense

See Also:
Constant Field Values

ADC_HEATSINK_TEMP_ADDR

public static final int ADC_HEATSINK_TEMP_ADDR
ADC Channel Address: heat sink temperature

See Also:
Constant Field Values

ADC_VSENSE_CH0_ADDR

public static final int ADC_VSENSE_CH0_ADDR
ADC Channel Address: ch 0 voltage sense

See Also:
Constant Field Values

ADC_VTRIP_CH0_ADDR

public static final int ADC_VTRIP_CH0_ADDR
ADC Channel Address: ch 0 trip level sense

See Also:
Constant Field Values

ADC_ISENSE_CH0_ADDR

public static final int ADC_ISENSE_CH0_ADDR
ADC Channel Address: ch 0 current sense

See Also:
Constant Field Values

DPOT_W_CH0

public static final int DPOT_W_CH0
DPOT Command : channel 0 write

See Also:
Constant Field Values

DPOT_W_CH1

public static final int DPOT_W_CH1
DPOT Command : channel 1 write

See Also:
Constant Field Values

DPOT_DIR_UP

public static final int DPOT_DIR_UP
DPOT Command Mask: Direction UP

See Also:
Constant Field Values

DPOT_DIR_DOWN

public static final int DPOT_DIR_DOWN
DPOT Command Mask: Direction DOWN

See Also:
Constant Field Values

DPOT_SAVE_POS

public static final int DPOT_SAVE_POS
DPOT Command Mask: save position

See Also:
Constant Field Values

DPOT_NOSAVE_POS

public static final int DPOT_NOSAVE_POS
DPOT Command Mask: do not save position

See Also:
Constant Field Values

DPOT_COUNT_MASK

public static final int DPOT_COUNT_MASK
DPOT Command Mask: count bits

See Also:
Constant Field Values

DPOT_MILLIAMPS_PER_COUNT

public static final int DPOT_MILLIAMPS_PER_COUNT
DPOT Constant: milliamps per count

See Also:
Constant Field Values
Constructor Detail

Dpa

public Dpa()


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.