comparison gsm-fw/cdg/cdginc-conservative/p_8010_136_simdrv_sap.h @ 656:9ba088a875bd

gsm-fw/cdg: "conservative" version created
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 25 Sep 2014 10:00:35 +0000
parents
children
comparison
equal deleted inserted replaced
655:6c363c453db2 656:9ba088a875bd
1 /*
2 +--------------------------------------------------------------------------+
3 | PROJECT : PROTOCOL STACK |
4 | FILE : p_8010_136_simdrv_sap.h |
5 | SOURCE : "sap\8010_136_SIMDRV_SAP.pdf" |
6 | LastModified : "2004-06-10" |
7 | IdAndVersion : "8010.136.03.009" |
8 | SrcFileTime : "Thu Nov 29 09:27:56 2007" |
9 | Generated by CCDGEN_2.5.5A on Thu Sep 25 09:52:55 2014 |
10 | !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!! |
11 +--------------------------------------------------------------------------+
12 */
13
14 /* PRAGMAS
15 * PREFIX : SIMDRV
16 * COMPATIBILITY_DEFINES : NO
17 * ALWAYS_ENUM_IN_VAL_FILE: YES
18 * ENABLE_GROUP: YES
19 * CAPITALIZE_TYPENAME: NO
20 */
21
22
23 #ifndef P_8010_136_SIMDRV_SAP_H
24 #define P_8010_136_SIMDRV_SAP_H
25
26
27 #define CDG_ENTER__P_8010_136_SIMDRV_SAP_H
28
29 #define CDG_ENTER__FILENAME _P_8010_136_SIMDRV_SAP_H
30 #define CDG_ENTER__P_8010_136_SIMDRV_SAP_H__FILE_TYPE CDGINC
31 #define CDG_ENTER__P_8010_136_SIMDRV_SAP_H__LAST_MODIFIED _2004_06_10
32 #define CDG_ENTER__P_8010_136_SIMDRV_SAP_H__ID_AND_VERSION _8010_136_03_009
33
34 #define CDG_ENTER__P_8010_136_SIMDRV_SAP_H__SRC_FILE_TIME _Thu_Nov_29_09_27_56_2007
35
36 #include "CDG_ENTER.h"
37
38 #undef CDG_ENTER__P_8010_136_SIMDRV_SAP_H
39
40 #undef CDG_ENTER__FILENAME
41
42
43 #include "p_8010_136_simdrv_sap.val"
44
45
46 /*
47 * typedef between var and valtab enums
48 */
49 #ifndef __T_SIMDRV_reset_return_val__
50 #define __T_SIMDRV_reset_return_val__
51 typedef T_SIMDRV_VAL_reset_return_val T_SIMDRV_reset_return_val;
52 #endif
53
54 #ifndef __T_SIMDRV_len__
55 #define __T_SIMDRV_len__
56 typedef T_SIMDRV_VAL_len T_SIMDRV_len;
57 #endif
58
59 #ifndef __T_SIMDRV_sw1_2__
60 #define __T_SIMDRV_sw1_2__
61 typedef T_SIMDRV_VAL_sw1_2 T_SIMDRV_sw1_2;
62 #endif
63
64 #ifndef __T_SIMDRV_cla__
65 #define __T_SIMDRV_cla__
66 typedef T_SIMDRV_VAL_cla T_SIMDRV_cla;
67 #endif
68
69 #ifndef __T_SIMDRV_ins__
70 #define __T_SIMDRV_ins__
71 typedef T_SIMDRV_VAL_ins T_SIMDRV_ins;
72 #endif
73
74 #ifndef __T_SIMDRV_voltage_select__
75 #define __T_SIMDRV_voltage_select__
76 typedef T_SIMDRV_VAL_voltage_select T_SIMDRV_voltage_select;
77 #endif
78
79 #ifndef __T_SIMDRV_config_requested__
80 #define __T_SIMDRV_config_requested__
81 typedef T_SIMDRV_VAL_config_requested T_SIMDRV_config_requested;
82 #endif
83
84 #ifndef __T_SIMDRV_reader_id__
85 #define __T_SIMDRV_reader_id__
86 typedef T_SIMDRV_VAL_reader_id T_SIMDRV_reader_id;
87 #endif
88
89 #ifndef __T_SIMDRV_atr_string_info__
90 #define __T_SIMDRV_atr_string_info__
91 /*
92 * SIM Card Info
93 * CCDGEN:WriteStruct_Count==1283
94 */
95 typedef struct
96 {
97 U8 c_atr_string; /*< 0: 1> counter */
98 U8 atr_string[SIMDRV_SIZE_ATR_INFO]; /*< 1: 33> SIM Card Answer to reset string */
99 U8 _align0; /*< 34: 1> alignment */
100 U8 _align1; /*< 35: 1> alignment */
101 } T_SIMDRV_atr_string_info;
102 #endif
103
104 #ifndef __T_SIMDRV_result_info__
105 #define __T_SIMDRV_result_info__
106 /*
107 * Result Buffer
108 * CCDGEN:WriteStruct_Count==1285
109 */
110 typedef struct
111 {
112 U16 len; /*< 0: 2> T_SIMDRV_len, Maximum length of expected data */
113 U16 c_result; /*< 2: 2> counter */
114 U8 *result; /*< 4: 4> pointer codetransparent to Result byte */
115 } T_SIMDRV_result_info;
116 #endif
117
118 #ifndef __T_SIMDRV_data_info__
119 #define __T_SIMDRV_data_info__
120 /*
121 * Data element info
122 * CCDGEN:WriteStruct_Count==1287
123 */
124 typedef struct
125 {
126 U8 _align0; /*< 0: 1> alignment */
127 U8 _align1; /*< 1: 1> alignment */
128 U8 _align2; /*< 2: 1> alignment */
129 U8 c_data; /*< 3: 1> counter */
130 U8 *data; /*< 4: 4> pointer codetransparent to Data element */
131 } T_SIMDRV_data_info;
132 #endif
133
134 #ifndef __T_SIMDRV_cmd_header__
135 #define __T_SIMDRV_cmd_header__
136 /*
137 * Transparent command header
138 * CCDGEN:WriteStruct_Count==1289
139 */
140 typedef struct
141 {
142 U8 cla; /*< 0: 1> T_SIMDRV_cla, Class Byte */
143 U8 ins; /*< 1: 1> T_SIMDRV_ins, instruction code */
144 U8 p1; /*< 2: 1> Parameter 1 of the SIM APDU */
145 U8 p2; /*< 3: 1> Parameter 2 of the SIM APDU */
146 } T_SIMDRV_cmd_header;
147 #endif
148
149 #ifndef __T_SIMDRV_config_characteristics__
150 #define __T_SIMDRV_config_characteristics__
151 /*
152 * Configuration Characteristics
153 * CCDGEN:WriteStruct_Count==1291
154 */
155 typedef struct
156 {
157 U8 uicc_characteristics; /*< 0: 1> UICC Characteristics */
158 U8 _align0; /*< 1: 1> alignment */
159 U8 _align1; /*< 2: 1> alignment */
160 U8 _align2; /*< 3: 1> alignment */
161 } T_SIMDRV_config_characteristics;
162 #endif
163
164
165 /*
166 * End of substructure section, begin of primitive definition section
167 */
168
169 #ifndef __T_SIMDRV_DUMMY__
170 #define __T_SIMDRV_DUMMY__
171 /*
172 *
173 * CCDGEN:WriteStruct_Count==1293
174 */
175 typedef struct
176 {
177 T_SIMDRV_atr_string_info *ptr_atr_string_info; /*< 0: 4> pointer to SIM Card Info */
178 U8 reset_return_val; /*< 4: 1> T_SIMDRV_reset_return_val, Reset return value */
179 U8 _align0; /*< 5: 1> alignment */
180 U8 _align1; /*< 6: 1> alignment */
181 U8 _align2; /*< 7: 1> alignment */
182 T_SIMDRV_result_info *ptr_result_info; /*< 8: 4> pointer to Result Buffer */
183 U16 len; /*< 12: 2> T_SIMDRV_len, Maximum length of expected data */
184 U8 _align3; /*< 14: 1> alignment */
185 U8 _align4; /*< 15: 1> alignment */
186 T_SIMDRV_data_info *ptr_data_info; /*< 16: 4> pointer to Data element info */
187 U16 sw1_2; /*< 20: 2> T_SIMDRV_sw1_2, Status Words */
188 U8 cla; /*< 22: 1> T_SIMDRV_cla, Class Byte */
189 U8 ins; /*< 23: 1> T_SIMDRV_ins, instruction code */
190 T_SIMDRV_cmd_header cmd_header; /*< 24: 4> Transparent command header */
191 U8 voltage_select; /*< 28: 1> T_SIMDRV_voltage_select, Perform Voltage Selection */
192 U8 p1; /*< 29: 1> Parameter 1 of the SIM APDU */
193 U8 p2; /*< 30: 1> Parameter 2 of the SIM APDU */
194 U8 config_requested; /*< 31: 1> T_SIMDRV_config_requested, Configuration Characteristics requested */
195 T_SIMDRV_config_characteristics *ptr_config_characteristics; /*< 32: 4> pointer to Configuration Characteristics */
196 U8 reader_id; /*< 36: 1> T_SIMDRV_reader_id, Reader Id */
197 U8 uicc_characteristics; /*< 37: 1> UICC Characteristics */
198 U8 _align5; /*< 38: 1> alignment */
199 U8 _align6; /*< 39: 1> alignment */
200 } T_SIMDRV_DUMMY;
201 #endif
202
203
204 #include "CDG_LEAVE.h"
205
206
207 #endif