|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jSyncManager.API.Protocol.CMP_Packet
CMP_Packet class. This class provides the class representation of a CMP packet.
Field Summary | |
---|---|
int |
baudRate
The baud rate to use for serial communication. |
static byte |
CHANGE_BAUD_RATE
A flag to denote a change of baud rate is requested. |
static byte |
CMP_ABORT
The CMP packet type value for an abort packet. |
static byte |
CMP_EXTENDED
The CMP packet type value for a extended CMP packet. |
static byte |
CMP_INIT
The CMP packet type value for a initialization packet. |
static byte |
CMP_WAKEUP
The CMP packet type value for a wakeup packet. |
static int |
DEFAULT_SPEED
The default speed to use for serial synchronization. |
byte |
flags
A field to contain the packet flags. |
byte |
majorVersion
The major revision of the CMP protocol in use. |
byte |
minorVersion
The minor revision of the CMP protocol in use. |
static byte |
ONE_MINUTE_TIMEOUT
A flag to tell the handheld that it should use a one-minute timeout before assuming that communications have been lost. |
byte |
packetType
A field to contain the packet type value. |
static byte |
TWO_MINUTE_TIMEOUT
A flag to tell the handheld that it should use a two-minute timeout before assuming that communications have been lost. |
static byte |
VERSION_MISMATCH
An error flag denoting a version mismatch in the protocol stacks on either end of the synchronization. |
static byte |
WAKEUP_TID
The transactiod ID used for the CMP Wakeup packet. |
Constructor Summary | |
---|---|
(package private) |
CMP_Packet()
Constructs a new CMP_Packet using the default settings. |
(package private) |
CMP_Packet(byte pktType,
byte flgs,
byte majorVer,
byte minorVer,
int baud)
Constructs a new CMP_Packet with the specified packet type, flags, major version, minor version, and serial baud rate. |
Method Summary | |
---|---|
(package private) static CMP_Packet |
bytes2Packet(byte[] pkt)
Convert an array of bytes containing a valid CMP packet into an instance of CMP_Packet. |
(package private) byte[] |
packet2Bytes()
Converts this packet to a byte array, suitable for transmission. |
Methods inherited from class java.lang.Object |
---|
|
Field Detail |
public static final byte CHANGE_BAUD_RATE
baudRate
public static final byte ONE_MINUTE_TIMEOUT
public static final byte TWO_MINUTE_TIMEOUT
public static final byte CMP_WAKEUP
public static final byte CMP_INIT
public static final byte CMP_ABORT
public static final byte CMP_EXTENDED
public static final byte WAKEUP_TID
public static final byte VERSION_MISMATCH
public static final int DEFAULT_SPEED
public byte packetType
CMP_WAKEUP
,
CMP_INIT
,
CMP_ABORT
,
CMP_EXTENDED
public byte flags
CHANGE_BAUD_RATE
,
ONE_MINUTE_TIMEOUT
,
TWO_MINUTE_TIMEOUT
public byte majorVersion
public byte minorVersion
public int baudRate
Constructor Detail |
CMP_Packet()
CMP_Packet(byte pktType, byte flgs, byte majorVer, byte minorVer, int baud)
pktType
- the CMP packets type.flgs
- the flags to attach to this packet.majorVer
- the major protocol version.minorVer
- the minor protocol version.baud
- the serial rate to use for serial synchronization.Method Detail |
static CMP_Packet bytes2Packet(byte[] pkt)
pkt
- the byte array containing a CMP packet to convert.byte[] packet2Bytes()
|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |