edu.cmu.emulator.controlComm
Class StoreSignalMessage

java.lang.Object
  extended by edu.cmu.emulator.controlComm.CMessage
      extended by edu.cmu.emulator.controlComm.StoreSignalMessage

public class StoreSignalMessage
extends CMessage

Version:
1.0
Author:
Eric Anderson

Field Summary
static int I_DATA
           
static int I_SADDR
           
static int I_SAMP_WIDTH
           
static int I_SAMPLES
           
protected  List<Integer> samples
           
protected  int sampleWidth
           
protected  int startAddr
           
 
Fields inherited from class edu.cmu.emulator.controlComm.CMessage
D_AUX_FPGA, I_BODY, I_DEST, I_SOURCE, I_TYPE, MAX_LENGTH, msg, S_EMU_CONTROLLER, T_DCC_LOCAL, T_MISC_COMMAND, T_READ_REG, T_REG_VALUE, T_SET_DELAY, T_SET_PHASE_SHIFT, T_SET_SCALE, T_SET_TIMED_SCALE, T_STORE_SIGNAL, T_TEST, T_WRITE_REG
 
Constructor Summary
StoreSignalMessage(int sampleWidth, int startAddr)
           
 
Method Summary
 void addSample(byte high, byte low)
           
 void addSample(int s)
           
 byte[] getBytes()
           
 List<Byte> toBytes()
           
 String toString()
           
 
Methods inherited from class edu.cmu.emulator.controlComm.CMessage
getByte, getDest, getLength, getSource, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

I_SAMP_WIDTH

public static final int I_SAMP_WIDTH
See Also:
Constant Field Values

I_SADDR

public static final int I_SADDR
See Also:
Constant Field Values

I_SAMPLES

public static final int I_SAMPLES
See Also:
Constant Field Values

I_DATA

public static final int I_DATA
See Also:
Constant Field Values

sampleWidth

protected int sampleWidth

startAddr

protected int startAddr

samples

protected List<Integer> samples
Constructor Detail

StoreSignalMessage

public StoreSignalMessage(int sampleWidth,
                          int startAddr)
Method Detail

toBytes

public List<Byte> toBytes()

getBytes

public byte[] getBytes()
Overrides:
getBytes in class CMessage

addSample

public void addSample(int s)

addSample

public void addSample(byte high,
                      byte low)

toString

public String toString()
Overrides:
toString in class CMessage


Copyright © 2013. All Rights Reserved.