VR-Link API Documentation for HLA 1.3
signalP.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifndef _SIGNALP_H_
7 #define _SIGNALP_H_ 1
8 
9 #include <vlpi/NetStructs.h>
10 #include "pduHeader.h"
11 
12 /* ---------------------- signal ---------------------- */
13 #ifdef __cplusplus
14 
15 /* hopefully provide some insulation from
16  * the machine dependent bit field layouts */
17 class DtSignalEncodingScheme
18 {
19 public:
20  unsigned eClass : 2;
21  unsigned eType : 14;
22  DtU16 operator = (DtU16 u)
23  {
24  eClass = u >> 14;
25  eType = u ^ 2<<14;
26  return u;
27  }
28  operator DtU16()
29  {
30  DtU16 u;
31  u = eClass << 14 | eType;
32  return u;
33  }
34 };
35 
36 #endif
37 
38 typedef struct DtNetSignalPdu
39 {
46  DtNetInt16 DtLength; /* bits */
48  DtNetU8 DtData[1 /* len/8 */ ];
50 
51 
52 #endif /* _SIGNALP_H_ */
53 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)