q931iefmt.hpp

来自「ABis无线接口全套资料」· HPP 代码 · 共 1,125 行 · 第 1/3 页

HPP
1,125
字号
 	UINT8 chnSel		: 2;		// byte 3, default 01=As indicated in following octets           	UINT8 dchnInd		: 1;		// byte 3, default 0=Not D-channel                               	UINT8 prefExel		: 1;		// byte 3, default 1=Exel                                        	UINT8 spare			: 1;		// byte 3, default 0                                             	UINT8 intType		: 1;		// byte 3, default 1=primary rate interface                      	UINT8 intPresent	: 1;		// byte 3, default 0                                   	UINT8 ext			: 1;		// byte 3, default 1      };struct SQ931CiB3_x // Channel identification byte 3.1 or 3.3{ // Add 2005-10-29, by Wujianjin. 	UINT8 interfaceId	: 7;		// byte 3.1, Interface identifier 	UINT8 ext			: 1;		// byte 3.1, 0/1 ext	                               };struct SQ931CiB3_2 // Channel identification byte 3.2{ // Add 2005-10-29, by Wujianjin. 	UINT8 type			: 4;		// byte 3.2, default 0011=B-channel units.                	UINT8 numMap		: 1;		// byte 3.2, default 0=by channel number                	UINT8 codeStand		: 2;		// byte 3.2, default 0=ITU-T code standard                	UINT8 ext 			: 1;		// byte 3.2, default 1                                   };/*struct SQ931ChannelIdentification    {                                                                                            	// UINT8 id;						// byte 1                                                	// UINT8 len;						// byte 2          	                                               	UINT8 chnSel		: 2;		// byte 3, default 01=As indicated in following octets           	UINT8 dchnInd		: 1;		// byte 3, default 0=Not D-channel                               	UINT8 prefExel		: 1;		// byte 3, default 1=Exel                                        	UINT8 spare			: 1;		// byte 3, default 0                                             	UINT8 intType		: 1;		// byte 3, default 1=primary rate interface                      	UINT8 intPresent	: 1;		// byte 3, default 0                                      	UINT8 b3ext			: 1;		// byte 3, default 1       	                                 	UINT8 interfaceId	: 7;		// byte 3.1, Interface identifier 	UINT8 b31ext		: 1;		// byte 3.1, 0/1 ext	                                                                                                                                    	UINT8 type			: 4;		// byte 3.2, default 0011=B-channel units.                	UINT8 numMap		: 1;		// byte 3.2, default 0=by channel number                	UINT8 codeStand		: 2;		// byte 3.2, default 0=ITU-T code standard                	UINT8 b32ext 		: 1;		// byte 3.2, default 1                                       struct    { 		UINT8 channel1		: 7;		// byte 3.3                                               		UINT8 b33ext		: 1;		// byte 3.3, default 1                                       };	char channel[MAX_CHANNEL];};                                     */ struct SQ931CongestionLevel { 	UINT8 CongestionLevel: 4;		//byte 1, Congestion level	UINT8 id			 : 3;		//byte 1, id	UINT8 b1ext			 : 1;		//byte 1, default 1 }; struct SQ931DateOrTime {	// UINT8 id			;			// byte 1    	// UINT8 len			;			// byte 2  	UINT8 Year			;			// byte 3 	UINT8 Month			;			// byte 4	UINT8 Day			;			// byte 5	UINT8 Hour 			;			// byte 6	UINT8 Minute 		;			// byte 7	UINT8 Second		;			// byte 8};        struct SQ931Display {	// UINT8 id;						// byte 1    	// UINT8 len;						// byte 2   	char  displayIF[MAX_Display];	// Display  information};struct SQ931HighLayerCompatibility  {	// UINT8 id;						// byte 1                 	// UINT8 len;						// byte 2    	UINT8 prtPrf		: 2;		// byit 3,01=Presentation method of protocol profile 	UINT8 intprt		: 3;		// byit 3,Interpretation	UINT8 codingStandard: 2;		// byit 3,00=ITU-T code standard 	UINT8 b3ext			: 1;		// byit 3,default 1	struct SQ931HighLayerCompatibility_characteristicsID	{		UINT8 hlcid			: 7;		// byit 4, High layer characteristics identification		UINT8 b4ext			: 1;		// byit 4, 0/1 ext                                           		UINT8 exhlcid		: 7;		// byit 4a, Extended high layer characteristics identification 		UINT8 b4aext		: 1;		// byit 4a,  default 1	}; };  struct SQ931KeypadFacility         {	// UINT8 id;						// byte 1 	// UINT8 len;						// byte 2  	UINT8 Keyfacilityinfor[MAX_KEYINF];// Keypad facility information (IA5 characters)};struct SQ931LowLayerCompatibility  {	// UINT8 id;						// byte 1     	// UINT8 len;						// byte 2 	    struct SQ931LowLayerCompatibility_infoTranC         {		UINT8 infoTranCap	: 5;		// byte 3, Information transfer capability    		UINT8 codeStand		: 2;		// byte 3, Coding standard		UINT8 b3ext			: 1;		// byte 3, 0/1 ext 	 		UINT8 spare1		: 6;		// byte 3a, default 000000 		UINT8 negIndic		: 1;		// byte 3a, Negot indic 		UINT8 b3aext		: 1;		// byte 3a, default 1    };	struct SQ931LowLayerCompatibility_infoTranRate	{ 		UINT8 infoTranRate	: 5;		// byte 4, Information transfer rate	 		UINT8 tranMode		: 2;		// byte 4, Transfer mode 		UINT8 b4ext			: 1;		// byte 4, default 1   		UINT8 multiplierRate: 7;		// byte 4.1, Rate multiplier	 		UINT8 b41ext		: 1;		// byte 4.1, default 1	}; 	struct SQ931LowLayerCompatibility_infoL1Ptl 	{ 		UINT8 userInfoL1	: 5;		// byte 5, User information layer 1 protocol 		UINT8 idL1			: 2;		// byte 5, Layer 1 ident,default 01 		UINT8 b5ext			: 1;		// byte 5, 0/1 ext  		UINT8 userRate		: 5;		// byte 5a, User rate 		UINT8 negot			: 1;		// byte 5a, Negot 		UINT8 synOrAsyn		: 1;		// byte 5a, Synch / asynch 		UINT8 b5aext		: 1;		// byte 5a, 0/1 ext  		UINT8 spare2		: 1;		// byte 5b, default 0   		UINT8 flowCtrlRx	: 1;		// byte 5b, Flow control on Rx 		UINT8 flowCtrlTx 	: 1; 		// byte 5b, Flow control on Tx 		UINT8 nICRx			: 1;		// byte 5b, NIC on Rx          		UINT8 nICTx			: 1;		// byte 5b, NIC on Tx          		UINT8 itmdRate		: 2;		// byte 5b, Intermediate rate  		UINT8 b5bext		: 1;		// byte 5b, 0/1 ext  		UINT8 spare3		: 1;		// byte 5b2, default 0 		UINT8 negInBank		: 1; 		// byte 5b2, In-band neg 		UINT8 asgnorORasgne	: 1;		// byte 5b2, Assignor/ee 		UINT8 negLLI 		: 1;		// byte 5b2, LLI negot       	UINT8 mode			: 1;		// byte 5b2, Mode        		UINT8 mulFr			: 1;		// byte 5b2, Multi frame 		UINT8 hdrORno		: 1;		// byte 5b2, Hdr/ no Hdr  		UINT8 b5b2ext		: 1; 		// byte 5b2, 0/1 ext   		UINT8 parity		: 3;		// byte 5c, Parity 		UINT8 numDataBits   : 2; 		// byte 5c, Number of data bits 		UINT8 numStopBits	: 2;		// byte 5c, Number of stop bits 		UINT8 b5cext		: 1;		// byte 5c, 0/1 ext  		UINT8 modermType	: 6;		// byte 5d, Modem type			UINT8 duplexMode	: 1;		// byte 5d, Duplex mode 		UINT8 b5dext		: 1;		// byte 5d, default 1 		};	struct SQ931LowLayerCompatibility_infoL2Ptl	{ 		UINT8 userInfoL2Ptl	: 5;		// byte 6, User information layer 2 protocol 		UINT8 idL2			: 2;		// byte 6, Layer 2 ident 		UINT8 b6ext			: 1;		// byte 6, 0/1 ext  		UINT8 q931Used		: 2;		// byte 6a1, Q.933 use 		UINT8 spare4		: 3; 		// byte 6a1,  default 000 		UINT8 mode			: 2;		// byte 6a1, mode  		UINT8 b6a1ext		: 1;		// byte 6a1, 0/1 ext   		UINT8 userspcInfoL2 : 7;		// byte 6a2, User specified layer 2 protocol information 		UINT8 b6a2ext		: 1;		// byte 6a2, default 1  		UINT8 windowSize	: 7;		// byte 6b, Window size (k) 		UINT8 b6bext		: 1;		// byte 6b, default 1	};	 	struct SQ931LowLayerCompatibility_infoL3Ptl 	{ 		UINT8 userInfoL3Ptl	: 5;		// byte 7, User information layer 3 protocol		 		UINT8 idL3			: 2;		// byte 7, Layer 3 ident                     		UINT8 b7ext			: 1;		// byte 7,0/1 ext  		UINT8 spare5		: 5;		// byte 7a1, Spare 00000 		UINT8 mode			: 2;		// byte 7a1, Mode 		UINT8 b7a1ext		: 1;		// byte 7a1,0/1 ext 	  		UINT8 optL3PtlInfo	: 7;		// byte 7a2, Optional layer 3 protocol information 		UINT8 b7a2ext		: 1;		// byte 7a2, 0/1 ext	  		UINT8 defPacketSize	: 4;		// byte 7b, Default packet size 		UINT8 spare6		: 3;		// byte 7b, Spare, default 000 		UINT8 b7bext		: 1;		// byte 7b, 	  		UINT8 packetWinSize : 7;		// byte 7c, Packet window size		UINT8 b7cext		: 1;		// byte 7c, default 1	  	}; };  struct SQ931MoreData {	UINT8 id  ;					 	// byte1 ,identifier };  struct SQ931NetworkspecificFacilities {	// UINT8 id;						// byte 1  	// UINT8 len;						// byte 2   	struct SQ931NetworkspecificFacilities_LenOfNetID 	{		UINT8 LenOfnetID     ;			// byte 3,Length of network identification        		UINT8 netIDPlan		: 4;        // byte 3.1, Network identification plan		UINT8 typeOfnetID	: 3;        // byte 3.1, Type of network identification		UINT8 b4ext			: 1;        // byte 3.1, default 1         		UINT8 netID			: 7;		// byte 3.2, Network identification (IA5 characters)		UINT8 spare 		: 1;		// byte 3.2, default 0 	};			UINT8 nsfs             ;		// byte 4,Network-specific facility specification };  struct SQ931NotificationIndicator{	// UINT8 id;						// byte 1                         	// UINT8 len;						// byte 2          	UINT8 nd			: 7;		// byte 3 ,Notification description  	UINT8 b3ext 		: 1;		// byte 3 ,default 1 };  struct SQ931ProgressIndicator                                                 {	// UINT8 id;						// byte 1                             	// UINT8 len;						// byte 2                                     	UINT8 location 		: 4;		// byte 3, Location                           	UINT8 spare 		: 1;		// byte 3, default 0                          	UINT8 codeStand		: 2;		// byte 3, default 00=ITU-T coding standard   	UINT8 b3ext 		: 1;		// byte 3, default 1                                                                                                                  	UINT8 pgDsr			: 7;		// byte 4, Progress description                           	UINT8 b4ext			: 1;		// byte 4, default 1   };                         struct SQ931RepeatIndicator {	UINT8 ri 			: 4; 		 // byte 1,Repeat indication	UINT8 RepeatID 		: 3; 		 // byte 1,id	UINT8 biext 		: 1;         // byte 1,default 1 };	 	 struct SQ931RestartIndicator	 {		// UINT8 id;						// byte 1	// UINT8 len;						// byte 2        	UINT8 cls 			: 3;		// byte 3, Class	UINT8 spare			: 4;		// byte 3, default 0000	UINT8 b3ext			: 1;		// byte 3, default 1 };  struct SQ931SegmentedMessage  {	// UINT8 id;						// byte 1    	// UINT8 len;						// byte 2             	UINT8 nosr			: 7; 		// byte 3,Number of segments remaining	UINT8 fsi			: 1;        // byte 3,First segment indicator                                           	UINT8 smt			: 7;		// byte 4,Segmented message type	UINT8 spare 		: 1;		// byte 4,defaulr 0 };   struct SQ931sigSendingComplete{	UINT8 id;};  struct SQ931Signal {	// UINT8 id;						// byte 1    	// UINT8 len;						// byte 2    	UINT8 signalvalue;				// byte 3 };  struct SQ931TransitNetworkSelection {	// UINT8 id;						// byte 1    	// UINT8 len;						// byte 2             	UINT8 nip			: 4; 		// byte 3,Network identification plan	UINT8 type 			: 3;        // byte 3,Type of network identification	UINT8 b3ext			: 1;        // byte 3,default 1         	UINT8 ni			: 7;		// byte 4,Network identification (IA5 characters) 	UINT8 spare			: 1;		// byte 4,default 0 };                                                                                              struct SQ931User_user                            {                                               	// UINT8 id;						// byte 1     	// UINT8 len;						// byte 2 	UINT8 pd;						// byit 3,Protocol discriminator  	UINT8 ui;						// byit 4,User information};                                                                                              struct SQ931ClosedUserGroup                      {                                                             	// UINT8 id;						// byte 1             	// UINT8 len;						// byte 2                                                   	UINT8 CUGi			: 3; 		// byte 3,CUG indication	UINT8 spare1		: 4;		// byte 3,default 0000	UINT8 b3ext			: 1;        // byte 3,default 1                                                	UINT8 CUGic			: 7;        // byte 4,CUG index code (IA5) characters)	UINT8 spare2		: 1;        // byte 4,default 0};                                                                                              struct SQ931End_to_endTransitDelay               {                                               	// UINT8 id;						// byte 1 	// UINT8 len;						// byte 2 	struct Q931End_to_endTransitDelay_cTranDV	{		UINT8 ctdv1 		: 2;		// byte 3,Cumulative transit delay value		UINT8 spare1		: 5;		// byte 3,default 00000		UINT8 b3ext 		: 1;		// byte 3,default 0                                                   		UINT8 ctdv2			: 7;		// byte 3a,Cumulative transit delay value (cont.)		UINT8 b3aext		: 1;		// byte 3a,default 0                                                		UINT8 ctdv3 		: 7;		// byte 3b,Cumulative transit delay value (cont.)		UINT8 b3bext 		: 1;		// byte 3b,default 1	};                      	struct SQ931End_to_endTransitDelay_REQcTranDV	{		UINT8 re2etdv1		: 2;		// byte 4,Requested end-to-end transit delay value		UINT8 spare2		: 5; 		// byte 4,default 00000		UINT8 b4ext			: 1;		// byte 4,default 0                                                   		UINT8 re2etdv2		: 7;        // byte 4a,Requested end-to-end transit delay value (cont.)		UINT8 b4aext		: 1;        // byte 4a,default 0                                                		UINT8 re2etdv3		: 7;        // byte 4b,Requested end-to-end transit delay value (cont.)		UINT8 b4bext		: 1;        // byte 4b,default 1  	};	struct SQ931End_to_endTransitDelay_MAXtranDV	{		UINT8 Me2etdv		: 2;        // byte 5,Maximum end-to-end transit delay value		UINT8 spare3		: 5;        // byte 5,default 00000       		UINT8 b5ext			: 1;        // byte 5,default 0                                                		UINT8 Mtdv1			: 7;        // byte 5a,Maximum transit delay value (cont.)  		UINT8 b5aext		: 1;        // byte 5a,default 0

⌨️ 快捷键说明

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