1 // Copyright (c) 2001-2009 Objective Systems, Inc. (http://www.obj-sys.com) |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 |
|
9 /** |
|
10 * This file was generated by the Objective Systems ASN1C Compiler |
|
11 * (http://www.obj-sys.com). |
|
12 */ |
|
13 #ifndef SUPL_START_H |
|
14 #define SUPL_START_H |
|
15 |
|
16 #include <stdio.h> |
|
17 #include <stdlib.h> |
|
18 #include "rtkey.h" |
|
19 #include "rtpersrc/asn1PerCppTypes.h" |
|
20 #include "ULP-Components.h" |
|
21 |
|
22 /** |
|
23 * Header file for ASN.1 module SUPL-START |
|
24 */ |
|
25 /**************************************************************/ |
|
26 /* */ |
|
27 /* PosTechnology */ |
|
28 /* */ |
|
29 /**************************************************************/ |
|
30 |
|
31 #define TV_PosTechnology (TM_UNIV|TM_CONS|16) |
|
32 |
|
33 struct ASN1T_PosTechnology { |
|
34 OSBOOL agpsSETassisted; |
|
35 OSBOOL agpsSETBased; |
|
36 OSBOOL autonomousGPS; |
|
37 OSBOOL aFLT; |
|
38 OSBOOL eCID; |
|
39 OSBOOL eOTD; |
|
40 OSBOOL oTDOA; |
|
41 IMPORT_C ASN1T_PosTechnology (); |
|
42 } ; |
|
43 |
|
44 IMPORT_C int asn1PE_PosTechnology (OSCTXT* pctxt, ASN1T_PosTechnology* pvalue); |
|
45 |
|
46 IMPORT_C int asn1PD_PosTechnology (OSCTXT* pctxt, ASN1T_PosTechnology* pvalue); |
|
47 |
|
48 IMPORT_C void asn1Print_PosTechnology |
|
49 (const char* name, ASN1T_PosTechnology* pvalue); |
|
50 |
|
51 /**************************************************************/ |
|
52 /* */ |
|
53 /* PrefMethod */ |
|
54 /* */ |
|
55 /**************************************************************/ |
|
56 |
|
57 #define TV_PrefMethod (TM_UNIV|TM_PRIM|10) |
|
58 |
|
59 struct PrefMethod { |
|
60 enum Root { |
|
61 agpsSETassistedPreferred = 0, |
|
62 agpsSETBasedPreferred = 1, |
|
63 noPreference = 2 |
|
64 } ; |
|
65 } ; |
|
66 |
|
67 typedef OSUINT32 ASN1T_PrefMethod; |
|
68 |
|
69 IMPORT_C int asn1PE_PrefMethod (OSCTXT* pctxt, ASN1T_PrefMethod value); |
|
70 |
|
71 IMPORT_C int asn1PD_PrefMethod (OSCTXT* pctxt, ASN1T_PrefMethod* pvalue); |
|
72 |
|
73 IMPORT_C void asn1Print_PrefMethod |
|
74 (const char* name, ASN1T_PrefMethod* pvalue); |
|
75 |
|
76 IMPORT_C const OSUTF8CHAR* ASN1T_PrefMethod_ToString (OSINT32 value); |
|
77 |
|
78 IMPORT_C int ASN1T_PrefMethod_ToEnum (OSCTXT* pctxt, |
|
79 const OSUTF8CHAR* value, ASN1T_PrefMethod* pvalue); |
|
80 |
|
81 /**************************************************************/ |
|
82 /* */ |
|
83 /* PosProtocol */ |
|
84 /* */ |
|
85 /**************************************************************/ |
|
86 |
|
87 #define TV_PosProtocol (TM_UNIV|TM_CONS|16) |
|
88 |
|
89 struct ASN1T_PosProtocol { |
|
90 OSBOOL tia801; |
|
91 OSBOOL rrlp; |
|
92 OSBOOL rrc; |
|
93 IMPORT_C ASN1T_PosProtocol (); |
|
94 } ; |
|
95 |
|
96 IMPORT_C int asn1PE_PosProtocol (OSCTXT* pctxt, ASN1T_PosProtocol* pvalue); |
|
97 |
|
98 IMPORT_C int asn1PD_PosProtocol (OSCTXT* pctxt, ASN1T_PosProtocol* pvalue); |
|
99 |
|
100 IMPORT_C void asn1Print_PosProtocol |
|
101 (const char* name, ASN1T_PosProtocol* pvalue); |
|
102 |
|
103 /**************************************************************/ |
|
104 /* */ |
|
105 /* SETCapabilities */ |
|
106 /* */ |
|
107 /**************************************************************/ |
|
108 |
|
109 #define TV_SETCapabilities (TM_UNIV|TM_CONS|16) |
|
110 |
|
111 struct ASN1T_SETCapabilities { |
|
112 ASN1T_PosTechnology posTechnology; |
|
113 ASN1T_PrefMethod prefMethod; |
|
114 ASN1T_PosProtocol posProtocol; |
|
115 IMPORT_C ASN1T_SETCapabilities (); |
|
116 } ; |
|
117 |
|
118 IMPORT_C int asn1PE_SETCapabilities (OSCTXT* pctxt, ASN1T_SETCapabilities* pvalue); |
|
119 |
|
120 IMPORT_C int asn1PD_SETCapabilities (OSCTXT* pctxt, ASN1T_SETCapabilities* pvalue); |
|
121 |
|
122 IMPORT_C void asn1Print_SETCapabilities |
|
123 (const char* name, ASN1T_SETCapabilities* pvalue); |
|
124 |
|
125 /**************************************************************/ |
|
126 /* */ |
|
127 /* SUPLSTART */ |
|
128 /* */ |
|
129 /**************************************************************/ |
|
130 |
|
131 #define TV_SUPLSTART (TM_UNIV|TM_CONS|16) |
|
132 |
|
133 struct ASN1T_SUPLSTART { |
|
134 struct { |
|
135 unsigned qoPPresent : 1; |
|
136 } m; |
|
137 ASN1T_SETCapabilities sETCapabilities; |
|
138 ASN1T_LocationId locationId; |
|
139 ASN1T_QoP qoP; |
|
140 IMPORT_C ASN1T_SUPLSTART (); |
|
141 } ; |
|
142 |
|
143 IMPORT_C int asn1PE_SUPLSTART (OSCTXT* pctxt, ASN1T_SUPLSTART* pvalue); |
|
144 |
|
145 IMPORT_C int asn1PD_SUPLSTART (OSCTXT* pctxt, ASN1T_SUPLSTART* pvalue); |
|
146 |
|
147 IMPORT_C void asn1Print_SUPLSTART |
|
148 (const char* name, ASN1T_SUPLSTART* pvalue); |
|
149 |
|
150 IMPORT_C void asn1Free_SUPLSTART (OSCTXT *pctxt, ASN1T_SUPLSTART* pvalue); |
|
151 |
|
152 #endif |
|