1.2. Send Command
1.1.2. Introduction
Command packets consist of "Header" and
"Payload".The Packet Header is consistent for all
packets.The Packet Payload type and content
varies based on the type of packet sent.The
entire packet size is variable, being the sum of
the fixed-size Packet Header and variable-sized
Packet Payload.
Packet Header (fixed size)
Packet Payload (variable size)
Table 4
Packet Header Format
Introduction
All Packets use the same Packet Header format
illustrated in Table 5.
Byte 0
1
2
3
4
5
6
Magic Number
Type
Packet Payload Size
CRC
0xBE
0xEF
type
size_lo
size_hi
crc_lo
crc_hi
Table 5
The Packet Header size is fixed at seven bytes
(Intel byte ordering is used).The following code
fragments are taken from these source files
The Packet Header definition is shown below:
typedef struct
{
BYTE ePacketType;//type of the
payload
WORD nPacketSize;//size of the
payload
WORD nCRCPacket;//CRC for the
entire packet
} PACKET_HEADER;
Magic Number
The Magic Number is a fixed value that is used
to insure packet alignment if there are partial
packets received or bytes lost.
The Magic Number is a WORD in length (2
bytes).The Magic Number value is 0xEFBE.
Because Intel byte ordering is used, the ls-byte
of the word is sent first (byte0 = 0xBE), then the
ms-byte (byte1 = 0xEF).
50
User Manual BDS4621
BDS4621_EN.qxd 13-12-2004 10:38 Pagina 50
Содержание 46-WVGA PLASMA MONITOR BDS4621
Страница 33: ...9 OPTIONAL ACCESSORIES Stand BM05111 Attach the Stand to the PDP set Speaker Set 33 User Manual BDS4621 ...
Страница 34: ...Ceiling Mount Kit BM01111 34 User Manual BDS4621 ...
Страница 46: ...46 User Manual BDS4621 ...
Страница 47: ...APPENDIX 47 User Manual BDS4621 ...
Страница 55: ...1 4 Software Flow Chart 55 User Manual BDS4621 ...
Страница 59: ...59 User Manual BDS4621 ...
Страница 60: ...60 User Manual BDS4621 ...