SkolUtil
Class opCodes

java.lang.Object
  extended by SkolUtil.opCodes

public class opCodes
extends java.lang.Object

all 0xb? values will be valid start bytes in message.java public static Boolean isValidMessageStart(byte[] rawMessage, int lenSoFar) throws Exception if adding more valid msgStartBytes here, which can be sent to GUI, change so in isValidMessageStart....


Field Summary
static byte dataAquCh0
          get Triggered Data Frame from both Channels
static byte dataAquCh1
          has no function when sent to device is only used to declare that the message which is sent from the device to the Controller that this is from Channel1
static byte getTimeDividerCh0
          returns a index which describes the TimeDivider
static byte getTimeDividerCh1
          returns a index which describes the TimeDivider
static byte getTriggerEdge
          Returns 1 databyte '0' if negEdge '1' if posEdge
static byte getTriggerLevel
          returns Trigger level as a message with 2byte data
static byte[] RESET
          RESET's Device
static byte setTimeDividerCh0
          sends a index value to the fpga 0 -> no divider 1 -> divide by (whatever you decide in the fpga impl ) 2,3,....
static byte setTimeDividerCh1
          sends a index value to the fpga 0 -> no divider 1 -> divide by (whatever you decide in the fpga impl ) 2,3,....
static byte setTriggerLevelHighByte
          TriggerLevel is a value from 0 to (2 ^ ADC bit count) As Adc Bit Count can be at maximum 16 bit - we have to transmit a High and a LowByte For a 8 bit ADC for example only a lowByte would be necessary.
static byte setTriggerLevelLowByte
          TriggerLevel is a value from 0 to (2 ^ ADC bit count) As Adc Bit Count can be at maximum 16 bit - we have to transmit a High and a LowByte For a 8 bit ADC for example only a lowByte would be necessary.
static byte setTriggerNegEdge
          Sets Trigger Edge to Pos or Neg respectively.
static byte setTriggerPosEdge
          Sets Trigger Edge to Pos or Neg respectively.
static byte setVoltsDivide
          no function yet
static byte singleFrameCh0
          returns a single DataFrame without Trigger
static byte singleVoltValueCh0
          read single Volt Value from respective Channel Has to be performed 2 times because first value the adc responds is a old one - see spartan 3a starterkit doku
static byte singleVoltValueCh1
          has no function when sent to device is only used to declare that the message which is sent from the device to the Controller that this is from Channel1
 
Constructor Summary
opCodes()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

setTimeDividerCh1

public static final byte setTimeDividerCh1
sends a index value to the fpga 0 -> no divider 1 -> divide by (whatever you decide in the fpga impl ) 2,3,....

See Also:
Constant Field Values

setTimeDividerCh0

public static final byte setTimeDividerCh0
sends a index value to the fpga 0 -> no divider 1 -> divide by (whatever you decide in the fpga impl ) 2,3,....

See Also:
Constant Field Values

setVoltsDivide

public static final byte setVoltsDivide
no function yet

See Also:
Constant Field Values

setTriggerLevelHighByte

public static final byte setTriggerLevelHighByte
TriggerLevel is a value from 0 to (2 ^ ADC bit count) As Adc Bit Count can be at maximum 16 bit - we have to transmit a High and a LowByte For a 8 bit ADC for example only a lowByte would be necessary. Works only on Channel 0

See Also:
Constant Field Values

setTriggerLevelLowByte

public static final byte setTriggerLevelLowByte
TriggerLevel is a value from 0 to (2 ^ ADC bit count) As Adc Bit Count can be at maximum 16 bit - we have to transmit a High and a LowByte For a 8 bit ADC for example only a lowByte would be necessary. Works only on Channel 0

See Also:
Constant Field Values

setTriggerPosEdge

public static final byte setTriggerPosEdge
Sets Trigger Edge to Pos or Neg respectively. Works only on Channel 0

See Also:
Constant Field Values

setTriggerNegEdge

public static final byte setTriggerNegEdge
Sets Trigger Edge to Pos or Neg respectively. Works only on Channel 0

See Also:
Constant Field Values

getTriggerEdge

public static final byte getTriggerEdge
Returns 1 databyte '0' if negEdge '1' if posEdge

See Also:
Constant Field Values

getTimeDividerCh0

public static final byte getTimeDividerCh0
returns a index which describes the TimeDivider

See Also:
Constant Field Values

getTimeDividerCh1

public static final byte getTimeDividerCh1
returns a index which describes the TimeDivider

See Also:
Constant Field Values

dataAquCh0

public static final byte dataAquCh0
get Triggered Data Frame from both Channels

See Also:
Constant Field Values

dataAquCh1

public static final byte dataAquCh1
has no function when sent to device is only used to declare that the message which is sent from the device to the Controller that this is from Channel1

See Also:
Constant Field Values

singleVoltValueCh0

public static final byte singleVoltValueCh0
read single Volt Value from respective Channel Has to be performed 2 times because first value the adc responds is a old one - see spartan 3a starterkit doku

See Also:
Constant Field Values

singleVoltValueCh1

public static final byte singleVoltValueCh1
has no function when sent to device is only used to declare that the message which is sent from the device to the Controller that this is from Channel1

See Also:
Constant Field Values

singleFrameCh0

public static final byte singleFrameCh0
returns a single DataFrame without Trigger

See Also:
Constant Field Values

getTriggerLevel

public static final byte getTriggerLevel
returns Trigger level as a message with 2byte data

See Also:
Constant Field Values

RESET

public static final byte[] RESET
RESET's Device

Constructor Detail

opCodes

public opCodes()