![]() |
|
|||
File indexing completed on 2025-08-03 08:20:41
0001 /* 0002 ** packetHdr.h 0003 ** 0004 ** Author: $Author: purschke $ 0005 ** Date: $Date: 2000/07/21 01:51:16 $ 0006 ** 0007 ** $Log: packetHdr.h,v $ 0008 ** Revision 1.1.1.1 2000/07/21 01:51:16 purschke 0009 ** mlp -- adding the new automakified "basic" module to CVS. 0010 ** 0011 ** 0012 ** Revision 1.3 1998/12/11 22:01:45 markacs 0013 ** (stephen markacs) adding log into cvs tags 0014 ** 0015 */ 0016 /* 0017 ** packetHdr.h 0018 ** 0019 ** 0020 ** Include file which defines the header for packets and 0021 ** some constants used in accessing, interpreting or 0022 ** storing data in the packet header. All constants 0023 ** defined here are for fields with version independent 0024 ** values. Also defined here are the default values for 0025 ** all of the version independent fields. Version dependent 0026 ** values for the Version 1 packet header are found in 0027 ** packetHdrV1.h. Value for the fields defined in the 0028 ** data descriptor are found in dataBlockHdr.h. All fields 0029 ** have default values listed, even those which are 0030 ** typically user specified. 0031 **/ 0032 0033 #include "packetHdrV1.h" 0034 #ifndef _PACKETHDR__ 0035 #define _PACKETHDR__ 0036 0037 /* 0038 ** Use C linkage 0039 */ 0040 0041 #ifdef __cplusplus 0042 extern "C" { 0043 #endif 0044 0045 #define PACKET_LENGTH_OFFSET_OF_DWORD 0 0046 0047 #define PACKET_HDR_VERSION_OFFSET_OF_DWORD 1 0048 #define PACKET_HDR_VERSION_OFFSET_IN_DWORD 24 0049 #define PACKET_HDR_VERSION_NUM_BITS 8 0050 #define PACKET_HDR_VERSION_MASK 0xff000000 0051 0052 #define PACKET_HDR_LENGTH_OFFSET_OF_DWORD 1 0053 #define PACKET_HDR_LENGTH_OFFSET_IN_DWORD 16 0054 #define PACKET_HDR_LENGTH_NUM_BITS 8 0055 #define PACKET_HDR_LENGTH_MASK 0x00ff0000 0056 0057 /* 0058 ** Define standard packet to be "current" 0059 */ 0060 #define CURRENT_PACKET_VERSION 1 0061 #define CURRENT_PACKETHDR_LENGTH PACKETV1_HDR_LENGTH 0062 0063 CONSTANT UINT currentPacketHdrLength = CURRENT_PACKETHDR_LENGTH; 0064 0065 #define PACKETV1_QUANTUM 0066 const UINT packetQuantum = 2; 0067 0068 #ifdef __cplusplus 0069 } 0070 /* end of extern "C" */ 0071 #endif 0072 0073 #endif 0074 /* end the ifndef _PACKETHDR_ block */ 0075 0076 0077 0078 0079 0080 0081 0082 0083 0084 0085 0086
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |