The following byte ordering conventions are used for 16-bit and 32-bit parameters in the messages to and from MTP 2. The host application is responsible for converting byte order between network and host, if necessary, in both the send and receive directions. The message start and end offsets are part of the interface between the host application and the MTP 2 task, and must be passed in the network byte order as shown in this illustration.
Note: This is not the same byte order used for short and long integers on Intel 80x86 machines. The message length field is part of the DPR header interface between the host application and the host device driver, and must be passed in host native byte order, not in the byte order shown in this topic.
The following nomenclature is used for data types:
Data type |
Description |
U8 |
Unsigned 8-bit quantity |
S16 |
Signed 16-bit quantity |
U32 |
Unsigned 32-bit quantity |