connectivitylayer/isimessage/symbianisamacroif/include/wgmodem25/csdisi.h
changeset 0 63b37f68c1ce
child 5 8ccc39f9d787
equal deleted inserted replaced
-1:000000000000 0:63b37f68c1ce
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 * 
       
    14 * Description:
       
    15 * Name      : PN_CSD [ 0x16 ] Resource Circuit Switched Data Server
       
    16 * Version   : 012.000
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef _SYMBIAN_ISI_CSDISI_H_
       
    22 #define _SYMBIAN_ISI_CSDISI_H_
       
    23 
       
    24 #define CIRCUIT_SWITCHED_DATA_SERVER_ISI_VERSION_Z	 12
       
    25 #define CIRCUIT_SWITCHED_DATA_SERVER_ISI_VERSION_Y	 0
       
    26 
       
    27 
       
    28 //CONSTANTS
       
    29 #define CSD_NO_LINK_ID                                    	0x00                                                 	
       
    30 #define CSD_ANY_SIZE                                      	0x01                                                 	
       
    31 
       
    32 
       
    33 //TABLES
       
    34 
       
    35 //ConstantTable for CSD_CALL_OPERATION_ID
       
    36 #define CSD_CALL_CREATE                                   	0x00                                                 	
       
    37 #define CSD_CALL_ANSWER                                   	0x01                                                 	
       
    38 #define CSD_CALL_RELEASE                                  	0x02                                                 	
       
    39 #define CSD_CALL_REJECT                                   	0x03                                                 	
       
    40 
       
    41 //ConstantTable for CSD_CALL_CAUSE
       
    42 #define CSD_CALL_CAUSE_NONE                               	0x00                                                 	
       
    43 #define CSD_CALL_CAUSE_BEARER_RESERVATION_FAILED          	0x01                                                 	
       
    44 #define CSD_CALL_CAUSE_NOT_ALLOWED                        	0x03                                                 	
       
    45 #define CSD_CALL_CAUSE_NO_VIDEO_CALL                      	0x04                                                 	
       
    46 #define CSD_CALL_CAUSE_OTHER_CALL_ACTIVE                  	0x05                                                 	
       
    47 #define CSD_CALL_CAUSE_USER_ABORT                         	0x06                                                 	
       
    48 #define CSD_CALL_CAUSE_INVALID_SYSTEM                     	0x07                                                 	
       
    49 #define CSD_CALL_CAUSE_INVALID_CBST_PARAMS                	0x08                                                 	
       
    50 
       
    51 //ConstantTable for CSD_BEARER_TYPE
       
    52 #define CSD_BEARER_NOT_VALID                              	0x00                                                 	
       
    53 #define CSD_BEARER_CSD                                    	0x01                                                 	
       
    54 
       
    55 //ConstantTable for CSD_RESOURCE_OPERATION_ID
       
    56 #define CSD_RESOURCE_RESERVE                              	0x00                                                 	
       
    57 #define CSD_RESOURCE_RELEASE                              	0x01                                                 	
       
    58 
       
    59 //ConstantTable for CSD_RESOURCE_STATUS_VALUE
       
    60 #define CSD_RESOURCE_STATUS_NONE                          	0x00                                                 	
       
    61 #define CSD_RESOURCE_STATUS_ALLOWED                       	0x01                                                 	
       
    62 #define CSD_RESOURCE_STATUS_DENIED                        	0x02                                                 	
       
    63 
       
    64 //ConstantTable for CSD_RESOURCE_VALUE
       
    65 #define CSD_RESOURCE_ERROR                                	0x00                                                 	
       
    66 #define CSD_RESOURCE_OK                                   	0x01                                                 	
       
    67 
       
    68 //ConstantTable for CSD_VIDEO_CALL_STATUS_VALUE
       
    69 #define CSD_VIDEO_CALL_STATUS_CONNECT                     	0x00                                                 	
       
    70 #define CSD_VIDEO_CALL_STATUS_DISCONNECT                  	0x01                                                 	
       
    71 
       
    72 //BitmaskTables for CSD_ADDRESS_TYPE
       
    73 #define CSD_NBR_PLAN_UNKNOWN                              	0x00                                                 	
       
    74 #define CSD_NBR_PLAN_ISDN_TELEPHONY                       	0x01                                                 	
       
    75 #define CSD_NBR_PLAN_DATA                                 	0x03                                                 	
       
    76 #define CSD_NBR_PLAN_TELEX                                	0x04                                                 	
       
    77 #define CSD_NBR_PLAN_PRIVATE                              	0x09                                                 	
       
    78 #define CSD_GSM_NBR_PLAN_NATIONAL                         	0x08                                                 	
       
    79 #define CSD_NBR_TYPE_UNKNOWN                              	0x00                                                 	
       
    80 #define CSD_NBR_TYPE_INTERNATIONAL                        	0x10                                              	
       
    81 #define CSD_NBR_TYPE_NATIONAL                             	0x20                                              	
       
    82 #define CSD_NBR_TYPE_NETWORK_SPECIFIC                     	0x30                                              	
       
    83 #define CSD_GSM_NBR_TYPE_DEDICATED                        	0x80                                              	
       
    84 
       
    85 //BitmaskTables for CSD_PRESENTATION_SCREEN_INDICATOR
       
    86 #define CSD_PRESENTATION_ALLOWED                          	0x00                                                 	
       
    87 #define CSD_PRESENTATION_RESTRICTED                       	0x01                                                 	
       
    88 #define CSD_PRESENTATION_UNAVAILABLE                      	0x02                                                 	
       
    89 #define CSD_GSM_PRESENTATION_DEFAULT                      	0x07                                                 	
       
    90 #define CSD_USER_NOT_SCREENED                             	0x00                                                 	
       
    91 #define CSD_USER_SCREENED_PASSED                          	0x10                                              	
       
    92 #define CSD_USER_SCREENED_FAILED                          	0x20                                              	
       
    93 #define CSD_SCREEN_NETW_PROVIDED                          	0x30                                              	
       
    94 
       
    95 //BitmaskTables for CSD_ADDITIONAL_ADDRESS_INFO
       
    96 #define CSD_P_ADDR_PRESENTATION_ALLOWED                   	0x01                                                 	
       
    97 
       
    98 //BitmaskTables for CSD_PRESENTATION_INDICATOR
       
    99 //#define CSD_PRESENTATION_ALLOWED                        	0x00                   	 //Already defined as 0x00
       
   100 //#define CSD_PRESENTATION_RESTRICTED                     	0x00                   	 //Already defined as 0x01
       
   101 //#define CSD_PRESENTATION_UNAVAILABLE                    	0x00                   	 //Already defined as 0x02
       
   102 //#define CSD_GSM_PRESENTATION_DEFAULT                    	0x00                   	 //Already defined as 0x07
       
   103 
       
   104 
       
   105 //SUBBLOCKS
       
   106 
       
   107 
       
   108 //Definition for CSD_SB_CONN_SETTING
       
   109 #define CSD_SB_CONN_SETTING                               	0x0D                                                 	
       
   110 #define CSD_SB_CONN_SETTING_OFFSET_SUBBLOCKID             	0 //size 1 byte(s)
       
   111 #define CSD_SB_CONN_SETTING_OFFSET_SUBBLOCKLENGTH         	1 //size 1 byte(s)
       
   112 #define CSD_SB_CONN_SETTING_OFFSET_CONNSETTINGLENGTH      	2 //size 1 byte(s)
       
   113 #define CSD_SB_CONN_SETTING_OFFSET_CONNSETTINGDATA        	3 //size 1 byte(s)
       
   114 #define SIZE_CSD_SB_CONN_SETTING                          	4
       
   115 //NOTE: Definition contains variable size field(s). SIZE_ and offsets following variable field cannot be defined correctly.
       
   116 //NOTE: Definition contains array(s) or sequence(s). SIZE_ and offsets following array or sequence might be defined incorrectly.
       
   117 
       
   118 
       
   119 //Definition for CSD_SB_RESOURCE_ID
       
   120 #define CSD_SB_RESOURCE_ID                                	0x0E                                                 	
       
   121 #define CSD_SB_RESOURCE_ID_OFFSET_SUBBLOCKID              	0 //size 1 byte(s)
       
   122 #define CSD_SB_RESOURCE_ID_OFFSET_SUBBLOCKLENGTH          	1 //size 1 byte(s)
       
   123 #define CSD_SB_RESOURCE_ID_OFFSET_RESOURCEID              	2 //size 1 byte(s)
       
   124 #define CSD_SB_RESOURCE_ID_OFFSET_FILLERBYTE1             	3 //size 1 byte(s)
       
   125 #define SIZE_CSD_SB_RESOURCE_ID                           	4
       
   126 
       
   127 
       
   128 //Definition for CSD_DESTINATION_ADDRESS
       
   129 #define CSD_DESTINATION_ADDRESS                           	0x0F                                                 	
       
   130 #define CSD_DESTINATION_ADDRESS_OFFSET_SUBBLOCKID         	0 //size 1 byte(s)
       
   131 #define CSD_DESTINATION_ADDRESS_OFFSET_SUBBLOCKLEN        	1 //size 1 byte(s)
       
   132 #define CSD_DESTINATION_ADDRESS_OFFSET_ADDRTYPE           	2 //size 1 byte(s)
       
   133 #define CSD_DESTINATION_ADDRESS_OFFSET_PRESENTATION       	3 //size 1 byte(s)
       
   134 #define CSD_DESTINATION_ADDRESS_OFFSET_FILLERBYTE1        	4 //size 1 byte(s)
       
   135 #define CSD_DESTINATION_ADDRESS_OFFSET_ADDRLEN            	5 //size 1 byte(s)
       
   136 #define CSD_DESTINATION_ADDRESS_OFFSET_ADDR               	6 //size 2 byte(s)
       
   137 #define SIZE_CSD_DESTINATION_ADDRESS                      	8
       
   138 //NOTE: Definition contains variable size field(s). SIZE_ and offsets following variable field cannot be defined correctly.
       
   139 
       
   140 
       
   141 //Definition for CSD_DESTINATION_PRE_ADDRESS
       
   142 #define CSD_DESTINATION_PRE_ADDRESS                       	0x10                                              	
       
   143 #define CSD_DESTINATION_PRE_ADDRESS_OFFSET_SUBBLOCKID     	0 //size 1 byte(s)
       
   144 #define CSD_DESTINATION_PRE_ADDRESS_OFFSET_SUBBLOCKLEN    	1 //size 1 byte(s)
       
   145 #define CSD_DESTINATION_PRE_ADDRESS_OFFSET_ADDRINFO       	2 //size 1 byte(s)
       
   146 #define CSD_DESTINATION_PRE_ADDRESS_OFFSET_ADDRLEN        	3 //size 1 byte(s)
       
   147 #define CSD_DESTINATION_PRE_ADDRESS_OFFSET_ADDR           	4 //size 2 byte(s)
       
   148 #define CSD_DESTINATION_PRE_ADDRESS_OFFSET_FILLERBYTE1    	6 //size 1 byte(s)
       
   149 #define CSD_DESTINATION_PRE_ADDRESS_OFFSET_FILLERBYTE2    	7 //size 1 byte(s)
       
   150 #define SIZE_CSD_DESTINATION_PRE_ADDRESS                  	8
       
   151 //NOTE: Definition contains variable size field(s). SIZE_ and offsets following variable field cannot be defined correctly.
       
   152 
       
   153 
       
   154 //Definition for CSD_DESTINATION_POST_ADDRESS
       
   155 #define CSD_DESTINATION_POST_ADDRESS                      	0x11                                              	
       
   156 #define CSD_DESTINATION_POST_ADDRESS_OFFSET_SUBBLOCKID    	0 //size 1 byte(s)
       
   157 #define CSD_DESTINATION_POST_ADDRESS_OFFSET_SUBBLOCKLEN   	1 //size 1 byte(s)
       
   158 #define CSD_DESTINATION_POST_ADDRESS_OFFSET_ADDRINFO      	2 //size 1 byte(s)
       
   159 #define CSD_DESTINATION_POST_ADDRESS_OFFSET_ADDRLEN       	3 //size 1 byte(s)
       
   160 #define CSD_DESTINATION_POST_ADDRESS_OFFSET_ADDR          	4 //size 2 byte(s)
       
   161 #define CSD_DESTINATION_POST_ADDRESS_OFFSET_FILLERBYTE1   	6 //size 1 byte(s)
       
   162 #define CSD_DESTINATION_POST_ADDRESS_OFFSET_FILLERBYTE2   	7 //size 1 byte(s)
       
   163 #define SIZE_CSD_DESTINATION_POST_ADDRESS                 	8
       
   164 //NOTE: Definition contains variable size field(s). SIZE_ and offsets following variable field cannot be defined correctly.
       
   165 
       
   166 
       
   167 //Definition for CSD_ORIGIN_INFO
       
   168 #define CSD_ORIGIN_INFO                                   	0x12                                              	
       
   169 #define CSD_ORIGIN_INFO_OFFSET_SUBBLOCKID                 	0 //size 1 byte(s)
       
   170 #define CSD_ORIGIN_INFO_OFFSET_SUBBLOCKLEN                	1 //size 1 byte(s)
       
   171 #define CSD_ORIGIN_INFO_OFFSET_PRESENTATION               	2 //size 1 byte(s)
       
   172 #define CSD_ORIGIN_INFO_OFFSET_FILLERBYTE1                	3 //size 1 byte(s)
       
   173 #define CSD_ORIGIN_INFO_OFFSET_LINKID                     	4 //size 1 byte(s)
       
   174 #define CSD_ORIGIN_INFO_OFFSET_NAMELEN                    	5 //size 1 byte(s)
       
   175 #define CSD_ORIGIN_INFO_OFFSET_NAME                       	6 //size 2 byte(s)
       
   176 #define SIZE_CSD_ORIGIN_INFO                              	8
       
   177 //NOTE: Definition contains variable size field(s). SIZE_ and offsets following variable field cannot be defined correctly.
       
   178 
       
   179 
       
   180 //Definition for CSD_CBST_PARAMS
       
   181 #define CSD_CBST_PARAMS                                   	0x15                                              	
       
   182 #define CSD_CBST_PARAMS_OFFSET_SUBBLOCKID                 	0 //size 1 byte(s)
       
   183 #define CSD_CBST_PARAMS_OFFSET_SUBBLOCKLEN                	1 //size 1 byte(s)
       
   184 #define CSD_CBST_PARAMS_OFFSET_SPEED                      	2 //size 1 byte(s)
       
   185 #define CSD_CBST_PARAMS_OFFSET_NAME                       	3 //size 1 byte(s)
       
   186 #define CSD_CBST_PARAMS_OFFSET_CE                         	4 //size 1 byte(s)
       
   187 #define CSD_CBST_PARAMS_OFFSET_FILLERBYTE1                	5 //size 3 byte(s)
       
   188 #define SIZE_CSD_CBST_PARAMS                              	8
       
   189 
       
   190 
       
   191 //MESSAGES
       
   192 
       
   193 
       
   194 //Definition for CSD_MULTIMEDIA_DATA_RATE_IND
       
   195 #define CSD_MULTIMEDIA_DATA_RATE_IND                      	0x06                                                 	
       
   196 #define CSD_MULTIMEDIA_DATA_RATE_IND_OFFSET_TID           	0 //size 1 byte(s)
       
   197 #define CSD_MULTIMEDIA_DATA_RATE_IND_OFFSET_MESSAGEID     	1 //size 1 byte(s)
       
   198 #define CSD_MULTIMEDIA_DATA_RATE_IND_OFFSET_FILLERBYTE1   	2 //size 2 byte(s)
       
   199 #define CSD_MULTIMEDIA_DATA_RATE_IND_OFFSET_RATE          	4 //size 4 byte(s)
       
   200 #define SIZE_CSD_MULTIMEDIA_DATA_RATE_IND                 	8
       
   201 
       
   202 
       
   203 //Definition for CSD_CALL_CONTROL_REQ
       
   204 #define CSD_CALL_CONTROL_REQ                              	0x07                                                 	
       
   205 #define CSD_CALL_CONTROL_REQ_OFFSET_TID                   	0 //size 1 byte(s)
       
   206 #define CSD_CALL_CONTROL_REQ_OFFSET_MESSAGEID             	1 //size 1 byte(s)
       
   207 #define CSD_CALL_CONTROL_REQ_OFFSET_OPERID                	2 //size 1 byte(s)
       
   208 #define CSD_CALL_CONTROL_REQ_OFFSET_SUBBLOCKS             	3 //size 1 byte(s)
       
   209 #define SIZE_CSD_CALL_CONTROL_REQ                         	4
       
   210 
       
   211 
       
   212 //Definition for CSD_CALL_CONTROL_RESP
       
   213 #define CSD_CALL_CONTROL_RESP                             	0x08                                                 	
       
   214 #define CSD_CALL_CONTROL_RESP_OFFSET_TID                  	0 //size 1 byte(s)
       
   215 #define CSD_CALL_CONTROL_RESP_OFFSET_MESSAGEID            	1 //size 1 byte(s)
       
   216 #define CSD_CALL_CONTROL_RESP_OFFSET_CAUSE                	2 //size 1 byte(s)
       
   217 #define CSD_CALL_CONTROL_RESP_OFFSET_OPERID               	3 //size 1 byte(s)
       
   218 #define SIZE_CSD_CALL_CONTROL_RESP                        	4
       
   219 
       
   220 
       
   221 //Definition for CSD_RESOURCE_IND
       
   222 #define CSD_RESOURCE_IND                                  	0x0C                                                 	
       
   223 #define CSD_RESOURCE_IND_OFFSET_TID                       	0 //size 1 byte(s)
       
   224 #define CSD_RESOURCE_IND_OFFSET_MESSAGEID                 	1 //size 1 byte(s)
       
   225 #define CSD_RESOURCE_IND_OFFSET_OPERID                    	2 //size 1 byte(s)
       
   226 #define CSD_RESOURCE_IND_OFFSET_BEARERTYPE                	3 //size 1 byte(s)
       
   227 #define CSD_RESOURCE_IND_OFFSET_FILLERBYTE1               	4 //size 3 byte(s)
       
   228 #define CSD_RESOURCE_IND_OFFSET_SUBBLOCKS                 	7 //size 1 byte(s)
       
   229 #define SIZE_CSD_RESOURCE_IND                             	8
       
   230 
       
   231 
       
   232 //Definition for CSD_RESOURCE_REQ
       
   233 #define CSD_RESOURCE_REQ                                  	0x0D                                                 	
       
   234 #define CSD_RESOURCE_REQ_OFFSET_TID                       	0 //size 1 byte(s)
       
   235 #define CSD_RESOURCE_REQ_OFFSET_MESSAGEID                 	1 //size 1 byte(s)
       
   236 #define CSD_RESOURCE_REQ_OFFSET_OPERID                    	2 //size 1 byte(s)
       
   237 #define CSD_RESOURCE_REQ_OFFSET_RESERVATIONID             	3 //size 1 byte(s)
       
   238 #define CSD_RESOURCE_REQ_OFFSET_STATUS                    	4 //size 1 byte(s)
       
   239 #define CSD_RESOURCE_REQ_OFFSET_FILLERBYTE1               	5 //size 3 byte(s)
       
   240 #define SIZE_CSD_RESOURCE_REQ                             	8
       
   241 
       
   242 
       
   243 //Definition for CSD_RESOURCE_RESP
       
   244 #define CSD_RESOURCE_RESP                                 	0x0E                                                 	
       
   245 #define CSD_RESOURCE_RESP_OFFSET_TID                      	0 //size 1 byte(s)
       
   246 #define CSD_RESOURCE_RESP_OFFSET_MESSAGEID                	1 //size 1 byte(s)
       
   247 #define CSD_RESOURCE_RESP_OFFSET_RESULT                   	2 //size 1 byte(s)
       
   248 #define CSD_RESOURCE_RESP_OFFSET_FILLERBYTE1              	3 //size 1 byte(s)
       
   249 #define SIZE_CSD_RESOURCE_RESP                            	4
       
   250 
       
   251 
       
   252 //Definition for CSD_VIDEO_CALL_STATUS_IND
       
   253 #define CSD_VIDEO_CALL_STATUS_IND                         	0x0F                                                 	
       
   254 #define CSD_VIDEO_CALL_STATUS_IND_OFFSET_TID              	0 //size 1 byte(s)
       
   255 #define CSD_VIDEO_CALL_STATUS_IND_OFFSET_MESSAGEID        	1 //size 1 byte(s)
       
   256 #define CSD_VIDEO_CALL_STATUS_IND_OFFSET_STATUS           	2 //size 1 byte(s)
       
   257 #define CSD_VIDEO_CALL_STATUS_IND_OFFSET_FILLERBYTE1      	3 //size 1 byte(s)
       
   258 #define SIZE_CSD_VIDEO_CALL_STATUS_IND                    	4
       
   259 
       
   260 #endif