⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ss7fmt.hpp

📁 ABis无线接口全套资料
💻 HPP
字号:
//
// ss7fmt.hpp
//

#ifndef _SS7FMT_HPP
#define _SS7FMT_HPP

#ifndef _DATATYPE_HPP
#include "datatype.hpp"
#endif

#pragma pack(1) // Let C++ compiler align by byte.
// Declare SIO structure.
struct SSio
{  // service information octet
	uchar si       : 4; // Service indicator.
	uchar reserved : 2; // Reserved.
	uchar ssf      : 2; // Sub-service field.
};

struct SIsupHead24bits
{
	SSio	sio;			// Service information octet.
	ushort	dpcl;			// Lower byte of DPC.
	uchar	dpch;			// Higher word of DPC.
	ushort	opcl;			// Lower byte of OPC.
	uchar	opch;			// Higher word of OPC.
	uchar	sls		: 4;	// Signaling link select field.
	uchar	r1		: 4;	// Reserved.
	ushort	cic		: 12;	// Circuit identifier code.
	ushort	r2		: 4;	// Reserved.
	uchar	msgtype;		// Message type.
};

struct SIsupHead14bits
{
	SSio	sio;			// Service information octet.
	ushort	dpc		: 14;	// DPC.
	ushort	opc		: 14;	// OPC.
	ushort	sls		: 4;	// Signaling link select field.
	ushort	cic		: 12;	// Circuit identifier code.
	ushort	r1		: 4;	// Reserved.
	uchar	msgtype;		// Message type.
};

struct STupHead24bits
{
	SSio	sio;			// Service information octet.
	ushort	dpcl;			// Lower byte of DPC.
	uchar	dpch;			// Higher word of DPC.
	ushort	opcl;			// Lower byte of OPC.
	uchar	opch;			// Higher word of OPC.
	ushort	cic		: 12;	// Circuit identifier code.
	ushort	r1		: 4;	// Reserved.
	uchar	h0		: 4;	// Header 0.
	uchar	h1		: 4;	// Header 1.
};

struct STupHead14bits
{
	SSio	sio;			// Service information octet.
	ushort	dpc		: 14;	// DPC.
	ushort	opc		: 14;	// OPC.
	ushort	cic		: 12;	// Circuit identifier code.
	uchar	h0		: 4;	// Header 0.
	uchar	h1		: 4;	// Header 1.
};

struct SSccpHead24bits 
{ // Add 2006-08-07, by Wu jianjin.
	SSio	sio;			// Service information octet.
	ushort	dpcl;			// Lower byte of DPC.
	uchar	dpch;			// Higher word of DPC.
	ushort	opcl;			// Lower byte of OPC.
	uchar	opch;			// Higher word of OPC.
	uchar	sls		: 4;	// Signaling link select field.
	uchar	r1		: 4;	// Reserved.
	uchar	msgtype;		// Message type.
};
struct SSccpHead14bits 
{ // Add 2006-08-07, by Wu jianjin.
	SSio	sio;			// Service information octet.
	ushort	dpc		: 14;	// DPC.
	ushort	opc		: 14;	// OPC.
	ushort	sls		: 4;	// Signaling link select field.
	uchar	msgtype;		// Message type.
};

#pragma pack( )

#endif // _SS7FMT_HPP

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -