ESP OpenBCI - An EEG Signal Processing Library for OpenBCI Hardware

com.github.mrstampy.esp.openbci.rxtx
Class RxtxDataBuffer

java.lang.Object
  extended by com.github.mrstampy.esp.openbci.rxtx.RxtxDataBuffer
All Implemented Interfaces:
OpenBCIConstants

public class RxtxDataBuffer
extends java.lang.Object
implements OpenBCIConstants

The Class RxtxDataBuffer.


Field Summary
 
Fields inherited from interface com.github.mrstampy.esp.openbci.OpenBCIConstants
CHANNELS_START_IDX, END_PACKET, NUM_CHANNELS_IDX, START_PACKET
 
Constructor Summary
RxtxDataBuffer()
           
 
Method Summary
 void add(byte... message)
          Adds the.
 void clear()
          Clear.
 byte[] get()
          Gets the.
 byte[] getBufferCopy()
          Gets the buffer copy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RxtxDataBuffer

public RxtxDataBuffer()
Method Detail

add

public void add(byte... message)
Adds the.

Parameters:
message - the message

get

public byte[] get()
Gets the.

Returns:
the byte[]

getBufferCopy

public byte[] getBufferCopy()
Gets the buffer copy.

Returns:
the buffer copy

clear

public void clear()
Clear.


brought to you by Mr. Stampy