|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
wiiremotej.event.BBEvent
wiiremotej.event.BBDataEvent
public class BBDataEvent
Read data event for Nintendo (R) Balance Board (TM). Contains data returned from reading the flash memory or control registers.
| Field Summary | |
|---|---|
static int |
BYTES_DO_NOT_EXIST_ERROR
An error code for readData. |
static int |
NO_ERROR
An error code for readData. |
static int |
WRITE_ONLY_REGISTER_ERROR
An error code for readData. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
BBDataEvent(BalanceBoard source,
byte[] data)
Creates a new BBDataEvent from the given input data array. |
|
BBDataEvent(BalanceBoard source,
byte[] readData,
int errorCode,
int dataOffset)
Creates a new BBDataEvent from the given input data array. |
|
| Method Summary | |
|---|---|
byte[] |
getData()
Returns the data read from the flash memory/control register in the last read event. |
int |
getDataOffset()
Returns the lower 2 bytes of the data offset of this read event. |
int |
getErrorCode()
Returns the error code of this read event. |
| Methods inherited from class wiiremotej.event.BBEvent |
|---|
getSource |
| Methods inherited from class java.util.EventObject |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int BYTES_DO_NOT_EXIST_ERROR
public static final int WRITE_ONLY_REGISTER_ERROR
public static final int NO_ERROR
| Constructor Detail |
|---|
public BBDataEvent(BalanceBoard source,
byte[] data)
source - the BalanceBoard triggering this event.data - the byte data from the BalanceBoard to process for flash memory/control register data.
public BBDataEvent(BalanceBoard source,
byte[] readData,
int errorCode,
int dataOffset)
source - the BalanceBoard triggering this event.readData - the data read in this BBDataEvent.errorCode - the error code returned from the data read operation (see Constant Field Values).dataOffset - the lower two bytes of the address of the first byte of data.| Method Detail |
|---|
public int getErrorCode()
public int getDataOffset()
public byte[] getData()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||