public class DataPacket
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DataPacket.Builder |
| Modifier and Type | Field and Description |
|---|---|
static int |
CHECKSUM_SIZE |
static int |
HEADER_SIZE |
static byte |
LEAST_SIGNIFICANT_BIT |
static byte |
MOST_SIGNIFICANT_BIT |
| Constructor and Description |
|---|
DataPacket(byte[] payload,
int channel) |
| Modifier and Type | Method and Description |
|---|---|
int |
getChannel() |
byte[] |
getPayload() |
public static final int HEADER_SIZE
public static final int CHECKSUM_SIZE
public static final byte MOST_SIGNIFICANT_BIT
public static final byte LEAST_SIGNIFICANT_BIT