q931fmt.hpp
来自「ABis无线接口全套资料」· HPP 代码 · 共 146 行
HPP
146 行
//
// q931fmt.hpp
//
#ifndef _Q931FMT_HPP
#define _Q931FMT_HPP
#ifndef _Q931IEFMT_HPP
#include "q931iefmt.hpp"
#endif
// Declare Q931 message header structure.
#pragma pack(1)
struct SQ931MsgHead
{
UINT8 ptlid; // byte 1, protocol discriminator id=00001000
UINT8 len : 4; // byte 2, Length of call reference value
UINT8 spare1 : 4; // byte 2, spare of 0000
UINT8 crv1 : 7; // byte 3, Call reference value
UINT8 flag1 : 1; // byte 3, The call reference flag can take the values "0" or "1"
UINT8 crv2/* : 7*/; // byte 4, Call reference value
// UINT8 flag2 : 1; // byte 4, The call reference flag can take the values "0" or "1"
UINT8 msgType : 7; // byte 5, Message type
UINT8 spare2 : 1; // byte 5, default 0
};
struct SQ931MsgHead_CR1 // Add 2005-10-28, by Wujianjin.
{ // Virtual call reference.
UINT8 ptlid; // byte 1, protocol discriminator id=00001000
UINT8 len : 4; // byte 2, Length of call reference value. Must be zero.
UINT8 spare1 : 4; // byte 2, spare of 0000
UINT8 msgType : 7; // byte 5, Message type
UINT8 spare2 : 1; // byte 5, default 0
};
struct SQ931MsgHead_CR2 // Add 2005-10-28, by Wujianjin.
{
UINT8 ptlid; // byte 1, protocol discriminator id=00001000
UINT8 len : 4; // byte 2, Length of call reference value
UINT8 spare1 : 4; // byte 2, spare of 0000
UINT8 crv1 : 7; // byte 3, Call reference value
UINT8 flag1 : 1; // byte 3, The call reference flag can take the values "0" or "1"
UINT8 msgType : 7; // byte 5, Message type
UINT8 spare2 : 1; // byte 5, default 0
};
typedef SQ931MsgHead SQ931MsgHead_CR3; // Add 2005-10-28, by Wujianjin.
typedef SQ931MsgHead SQ931ALRHead;
typedef SQ931MsgHead SQ931CPGHead;
typedef SQ931MsgHead SQ931CONHead;
typedef SQ931MsgHead SQ931PRGHead;
typedef SQ931MsgHead SQ931STPHead;
typedef SQ931MsgHead SQ931STAHead;
typedef SQ931MsgHead SQ931RESHead;
typedef SQ931MsgHead SQ931REAHead;
typedef SQ931MsgHead SQ931RERHead;
typedef SQ931MsgHead SQ931SUSHead;
typedef SQ931MsgHead SQ931UIFHead;
typedef SQ931MsgHead SQ931DSCHead;
typedef SQ931MsgHead SQ931RELHead;
typedef SQ931MsgHead SQ931RLCHead;
typedef SQ931MsgHead SQ931RSTHead;
typedef SQ931MsgHead SQ931RSAHead;
typedef SQ931MsgHead SQ931SGMHead;
typedef SQ931MsgHead SQ931CNCHead;
typedef SQ931MsgHead SQ931INFHead;
typedef SQ931MsgHead SQ931NTFHead;
typedef SQ931MsgHead SQ931STTHead;
typedef SQ931MsgHead SQ931STEHead;
typedef SQ931MsgHead SQ931SUAHead;
typedef SQ931MsgHead SQ931SURHead;
typedef SQ931MsgHead SQ931COAHead;
#pragma pack( )
#endif // _Q931FMT_HPP
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?