Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_simRsp_messages.h
Go to the documentation of this file.
1 /*
2  * ====================== WARNING ======================
3  *
4  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
5  * DO NOT MODIFY IN ANY WAY.
6  *
7  * ====================== WARNING ======================
8  */
9 
10 
11 #ifndef TAF_SIMRSP_MESSAGES_H_INCLUDE_GUARD
12 #define TAF_SIMRSP_MESSAGES_H_INCLUDE_GUARD
13 
14 
15 #include "taf_simRsp_common.h"
16 
17 #define _MAX_MSG_SIZE IFGEN_TAF_SIMRSP_MSG_SIZE
18 
19 // Define the message type for communicating between client and server
20 typedef struct __attribute__((packed))
21 {
22  uint32_t id;
23  uint8_t buffer[_MAX_MSG_SIZE];
24 }
26 
27 #define _MSGID_taf_simRsp_AddProfileDownloadHandler 0
28 #define _MSGID_taf_simRsp_RemoveProfileDownloadHandler 1
29 #define _MSGID_taf_simRsp_AddProfileUserConsentHandler 2
30 #define _MSGID_taf_simRsp_RemoveProfileUserConsentHandler 3
31 #define _MSGID_taf_simRsp_AddProfileConfirmationCodeHandler 4
32 #define _MSGID_taf_simRsp_RemoveProfileConfirmationCodeHandler 5
33 #define _MSGID_taf_simRsp_GetEID 6
34 #define _MSGID_taf_simRsp_AddProfile 7
35 #define _MSGID_taf_simRsp_DeleteProfile 8
36 #define _MSGID_taf_simRsp_SetProfile 9
37 #define _MSGID_taf_simRsp_UpdateNickName 10
38 #define _MSGID_taf_simRsp_GetProfileList 11
39 #define _MSGID_taf_simRsp_SetServerAddress 12
40 #define _MSGID_taf_simRsp_GetServerAddress 13
41 #define _MSGID_taf_simRsp_ProvideUserConsent 14
42 #define _MSGID_taf_simRsp_ProvideConfirmationCode 15
43 #define _MSGID_taf_simRsp_GetProfile 16
44 #define _MSGID_taf_simRsp_GetProfileIndex 17
45 #define _MSGID_taf_simRsp_GetProfileType 18
46 #define _MSGID_taf_simRsp_GetIccid 19
47 #define _MSGID_taf_simRsp_GetProfileActiveStatus 20
48 #define _MSGID_taf_simRsp_GetNickName 21
49 #define _MSGID_taf_simRsp_GetName 22
50 #define _MSGID_taf_simRsp_GetSpn 23
51 #define _MSGID_taf_simRsp_GetIconType 24
52 #define _MSGID_taf_simRsp_GetProfileClass 25
53 #define _MSGID_taf_simRsp_GetMask 26
54 
55 
56 // Define type-safe pack/unpack functions for all enums, including included types
57 
58 static inline bool taf_simRsp_PackProfileType
59 (
60  uint8_t **bufferPtr,
62 )
63 {
64  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
65 }
66 
67 static inline bool taf_simRsp_UnpackProfileType
68 (
69  uint8_t **bufferPtr,
70  taf_simRsp_ProfileType_t* valuePtr
71 )
72 {
73  bool result;
74  uint32_t value = 0;
75  result = le_pack_UnpackUint32(bufferPtr, &value);
76  if (result)
77  {
78  *valuePtr = (taf_simRsp_ProfileType_t)value;
79  }
80  return result;
81 }
82 
83 static inline bool taf_simRsp_PackIconType
84 (
85  uint8_t **bufferPtr,
87 )
88 {
89  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
90 }
91 
92 static inline bool taf_simRsp_UnpackIconType
93 (
94  uint8_t **bufferPtr,
95  taf_simRsp_IconType_t* valuePtr
96 )
97 {
98  bool result;
99  uint32_t value = 0;
100  result = le_pack_UnpackUint32(bufferPtr, &value);
101  if (result)
102  {
103  *valuePtr = (taf_simRsp_IconType_t)value;
104  }
105  return result;
106 }
107 
108 static inline bool taf_simRsp_PackProfileClass
109 (
110  uint8_t **bufferPtr,
112 )
113 {
114  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
115 }
116 
117 static inline bool taf_simRsp_UnpackProfileClass
118 (
119  uint8_t **bufferPtr,
120  taf_simRsp_ProfileClass_t* valuePtr
121 )
122 {
123  bool result;
124  uint32_t value = 0;
125  result = le_pack_UnpackUint32(bufferPtr, &value);
126  if (result)
127  {
128  *valuePtr = (taf_simRsp_ProfileClass_t)value;
129  }
130  return result;
131 }
132 
133 static inline bool taf_simRsp_PackPolicyRuleType
134 (
135  uint8_t **bufferPtr,
137 )
138 {
139  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
140 }
141 
142 static inline bool taf_simRsp_UnpackPolicyRuleType
143 (
144  uint8_t **bufferPtr,
146 )
147 {
148  bool result;
149  uint32_t value = 0;
150  result = le_pack_UnpackUint32(bufferPtr, &value);
151  if (result)
152  {
153  *valuePtr = (taf_simRsp_PolicyRuleType_t)value;
154  }
155  return result;
156 }
157 
158 static inline bool taf_simRsp_PackDownloadStatus
159 (
160  uint8_t **bufferPtr,
162 )
163 {
164  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
165 }
166 
167 static inline bool taf_simRsp_UnpackDownloadStatus
168 (
169  uint8_t **bufferPtr,
171 )
172 {
173  bool result;
174  uint32_t value = 0;
175  result = le_pack_UnpackUint32(bufferPtr, &value);
176  if (result)
177  {
178  *valuePtr = (taf_simRsp_DownloadStatus_t)value;
179  }
180  return result;
181 }
182 
183 static inline bool taf_simRsp_PackDownloadErrorCause
184 (
185  uint8_t **bufferPtr,
187 )
188 {
189  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
190 }
191 
192 static inline bool taf_simRsp_UnpackDownloadErrorCause
193 (
194  uint8_t **bufferPtr,
196 )
197 {
198  bool result;
199  uint32_t value = 0;
200  result = le_pack_UnpackUint32(bufferPtr, &value);
201  if (result)
202  {
203  *valuePtr = (taf_simRsp_DownloadErrorCause_t)value;
204  }
205  return result;
206 }
207 
208 static inline bool taf_simRsp_PackUserConsentReasonType
209 (
210  uint8_t **bufferPtr,
212 )
213 {
214  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
215 }
216 
218 (
219  uint8_t **bufferPtr,
221 )
222 {
223  bool result;
224  uint32_t value = 0;
225  result = le_pack_UnpackUint32(bufferPtr, &value);
226  if (result)
227  {
228  *valuePtr = (taf_simRsp_UserConsentReasonType_t)value;
229  }
230  return result;
231 }
232 
233 static inline bool taf_sim_PackStates
234 (
235  uint8_t **bufferPtr,
236  taf_sim_States_t value
237 )
238 {
239  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
240 }
241 
242 static inline bool taf_sim_UnpackStates
243 (
244  uint8_t **bufferPtr,
245  taf_sim_States_t* valuePtr
246 )
247 {
248  bool result;
249  uint32_t value = 0;
250  result = le_pack_UnpackUint32(bufferPtr, &value);
251  if (result)
252  {
253  *valuePtr = (taf_sim_States_t)value;
254  }
255  return result;
256 }
257 
258 static inline bool taf_sim_PackId
259 (
260  uint8_t **bufferPtr,
261  taf_sim_Id_t value
262 )
263 {
264  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
265 }
266 
267 static inline bool taf_sim_UnpackId
268 (
269  uint8_t **bufferPtr,
270  taf_sim_Id_t* valuePtr
271 )
272 {
273  bool result;
274  uint32_t value = 0;
275  result = le_pack_UnpackUint32(bufferPtr, &value);
276  if (result)
277  {
278  *valuePtr = (taf_sim_Id_t)value;
279  }
280  return result;
281 }
282 
283 static inline bool taf_sim_PackLockType
284 (
285  uint8_t **bufferPtr,
286  taf_sim_LockType_t value
287 )
288 {
289  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
290 }
291 
292 static inline bool taf_sim_UnpackLockType
293 (
294  uint8_t **bufferPtr,
295  taf_sim_LockType_t* valuePtr
296 )
297 {
298  bool result;
299  uint32_t value = 0;
300  result = le_pack_UnpackUint32(bufferPtr, &value);
301  if (result)
302  {
303  *valuePtr = (taf_sim_LockType_t)value;
304  }
305  return result;
306 }
307 
308 static inline bool taf_sim_PackLockResponse
309 (
310  uint8_t **bufferPtr,
312 )
313 {
314  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
315 }
316 
317 static inline bool taf_sim_UnpackLockResponse
318 (
319  uint8_t **bufferPtr,
320  taf_sim_LockResponse_t* valuePtr
321 )
322 {
323  bool result;
324  uint32_t value = 0;
325  result = le_pack_UnpackUint32(bufferPtr, &value);
326  if (result)
327  {
328  *valuePtr = (taf_sim_LockResponse_t)value;
329  }
330  return result;
331 }
332 
333 static inline bool taf_sim_PackAppType
334 (
335  uint8_t **bufferPtr,
336  taf_sim_AppType_t value
337 )
338 {
339  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
340 }
341 
342 static inline bool taf_sim_UnpackAppType
343 (
344  uint8_t **bufferPtr,
345  taf_sim_AppType_t* valuePtr
346 )
347 {
348  bool result;
349  uint32_t value = 0;
350  result = le_pack_UnpackUint32(bufferPtr, &value);
351  if (result)
352  {
353  *valuePtr = (taf_sim_AppType_t)value;
354  }
355  return result;
356 }
357 
358 static inline bool taf_sim_PackManufacturer
359 (
360  uint8_t **bufferPtr,
362 )
363 {
364  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
365 }
366 
367 static inline bool taf_sim_UnpackManufacturer
368 (
369  uint8_t **bufferPtr,
370  taf_sim_Manufacturer_t* valuePtr
371 )
372 {
373  bool result;
374  uint32_t value = 0;
375  result = le_pack_UnpackUint32(bufferPtr, &value);
376  if (result)
377  {
378  *valuePtr = (taf_sim_Manufacturer_t)value;
379  }
380  return result;
381 }
382 
383 static inline bool taf_sim_PackCommand
384 (
385  uint8_t **bufferPtr,
386  taf_sim_Command_t value
387 )
388 {
389  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
390 }
391 
392 static inline bool taf_sim_UnpackCommand
393 (
394  uint8_t **bufferPtr,
395  taf_sim_Command_t* valuePtr
396 )
397 {
398  bool result;
399  uint32_t value = 0;
400  result = le_pack_UnpackUint32(bufferPtr, &value);
401  if (result)
402  {
403  *valuePtr = (taf_sim_Command_t)value;
404  }
405  return result;
406 }
407 
408 // Define pack/unpack functions for all structures, including included types
409 
410 
411 #endif // TAF_SIMRSP_MESSAGES_H_INCLUDE_GUARD
static bool taf_simRsp_UnpackProfileClass(uint8_t **bufferPtr, taf_simRsp_ProfileClass_t *valuePtr)
Definition: taf_simRsp_messages.h:118
static bool taf_simRsp_UnpackProfileType(uint8_t **bufferPtr, taf_simRsp_ProfileType_t *valuePtr)
Definition: taf_simRsp_messages.h:68
taf_simRsp_ProfileClass_t
Definition: taf_simRsp_common.h:160
taf_sim_LockType_t
Definition: taf_sim_common.h:488
static bool taf_simRsp_UnpackDownloadStatus(uint8_t **bufferPtr, taf_simRsp_DownloadStatus_t *valuePtr)
Definition: taf_simRsp_messages.h:168
taf_sim_Command_t
Definition: taf_sim_common.h:574
static bool taf_simRsp_PackDownloadErrorCause(uint8_t **bufferPtr, taf_simRsp_DownloadErrorCause_t value)
Definition: taf_simRsp_messages.h:184
static bool taf_simRsp_PackPolicyRuleType(uint8_t **bufferPtr, taf_simRsp_PolicyRuleType_t value)
Definition: taf_simRsp_messages.h:134
static bool taf_sim_UnpackLockResponse(uint8_t **bufferPtr, taf_sim_LockResponse_t *valuePtr)
Definition: taf_simRsp_messages.h:318
static bool taf_simRsp_UnpackIconType(uint8_t **bufferPtr, taf_simRsp_IconType_t *valuePtr)
Definition: taf_simRsp_messages.h:93
taf_simRsp_ProfileType_t
Definition: taf_simRsp_common.h:126
static bool taf_sim_PackStates(uint8_t **bufferPtr, taf_sim_States_t value)
Definition: taf_simRsp_messages.h:234
static bool taf_simRsp_PackDownloadStatus(uint8_t **bufferPtr, taf_simRsp_DownloadStatus_t value)
Definition: taf_simRsp_messages.h:159
static bool taf_sim_PackLockResponse(uint8_t **bufferPtr, taf_sim_LockResponse_t value)
Definition: taf_simRsp_messages.h:309
taf_simRsp_DownloadErrorCause_t
Definition: taf_simRsp_common.h:210
static bool taf_sim_PackLockType(uint8_t **bufferPtr, taf_sim_LockType_t value)
Definition: taf_simRsp_messages.h:284
static bool taf_simRsp_UnpackPolicyRuleType(uint8_t **bufferPtr, taf_simRsp_PolicyRuleType_t *valuePtr)
Definition: taf_simRsp_messages.h:143
static bool taf_simRsp_UnpackDownloadErrorCause(uint8_t **bufferPtr, taf_simRsp_DownloadErrorCause_t *valuePtr)
Definition: taf_simRsp_messages.h:193
static bool taf_sim_UnpackAppType(uint8_t **bufferPtr, taf_sim_AppType_t *valuePtr)
Definition: taf_simRsp_messages.h:343
static bool taf_sim_PackCommand(uint8_t **bufferPtr, taf_sim_Command_t value)
Definition: taf_simRsp_messages.h:384
static bool taf_sim_UnpackManufacturer(uint8_t **bufferPtr, taf_sim_Manufacturer_t *valuePtr)
Definition: taf_simRsp_messages.h:368
static bool taf_simRsp_PackUserConsentReasonType(uint8_t **bufferPtr, taf_simRsp_UserConsentReasonType_t value)
Definition: taf_simRsp_messages.h:209
static bool taf_sim_PackManufacturer(uint8_t **bufferPtr, taf_sim_Manufacturer_t value)
Definition: taf_simRsp_messages.h:359
taf_sim_Manufacturer_t
Definition: taf_sim_common.h:551
static bool taf_sim_UnpackStates(uint8_t **bufferPtr, taf_sim_States_t *valuePtr)
Definition: taf_simRsp_messages.h:243
LE_DECLARE_INLINE bool le_pack_UnpackUint32(uint8_t **bufferPtr, uint32_t *valuePtr)
Definition: le_pack.h:1205
static bool taf_sim_UnpackLockType(uint8_t **bufferPtr, taf_sim_LockType_t *valuePtr)
Definition: taf_simRsp_messages.h:293
taf_simRsp_IconType_t
Definition: taf_simRsp_common.h:143
static bool taf_sim_UnpackId(uint8_t **bufferPtr, taf_sim_Id_t *valuePtr)
Definition: taf_simRsp_messages.h:268
taf_sim_LockResponse_t
Definition: taf_sim_common.h:508
taf_simRsp_PolicyRuleType_t
Definition: taf_simRsp_common.h:178
static bool taf_sim_PackAppType(uint8_t **bufferPtr, taf_sim_AppType_t value)
Definition: taf_simRsp_messages.h:334
_Message_t
Definition: taf_simRsp_messages.h:25
taf_sim_AppType_t
Definition: taf_sim_common.h:527
taf_sim_Id_t
Definition: taf_sim_common.h:465
static bool taf_simRsp_PackProfileClass(uint8_t **bufferPtr, taf_simRsp_ProfileClass_t value)
Definition: taf_simRsp_messages.h:109
static bool taf_simRsp_PackProfileType(uint8_t **bufferPtr, taf_simRsp_ProfileType_t value)
Definition: taf_simRsp_messages.h:59
taf_sim_States_t
Definition: taf_sim_common.h:418
static bool taf_sim_UnpackCommand(uint8_t **bufferPtr, taf_sim_Command_t *valuePtr)
Definition: taf_simRsp_messages.h:393
struct __attribute__((packed))
Definition: taf_simRsp_messages.h:20
taf_simRsp_UserConsentReasonType_t
Definition: taf_simRsp_common.h:237
static bool taf_simRsp_UnpackUserConsentReasonType(uint8_t **bufferPtr, taf_simRsp_UserConsentReasonType_t *valuePtr)
Definition: taf_simRsp_messages.h:218
taf_simRsp_DownloadStatus_t
Definition: taf_simRsp_common.h:195
#define _MAX_MSG_SIZE
Definition: taf_simRsp_messages.h:17
LE_DECLARE_INLINE bool le_pack_PackUint32(uint8_t **bufferPtr, uint32_t value)
Definition: le_pack.h:205
static bool taf_sim_PackId(uint8_t **bufferPtr, taf_sim_Id_t value)
Definition: taf_simRsp_messages.h:259
static bool taf_simRsp_PackIconType(uint8_t **bufferPtr, taf_simRsp_IconType_t value)
Definition: taf_simRsp_messages.h:84