Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_radio_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_RADIO_MESSAGES_H_INCLUDE_GUARD
12 #define TAF_RADIO_MESSAGES_H_INCLUDE_GUARD
13 
14 
15 #include "taf_radio_common.h"
16 
17 #define _MAX_MSG_SIZE IFGEN_TAF_RADIO_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_radio_AddNetRegRejectHandler 0
28 #define _MSGID_taf_radio_RemoveNetRegRejectHandler 1
29 #define _MSGID_taf_radio_AddRatChangeHandler 2
30 #define _MSGID_taf_radio_RemoveRatChangeHandler 3
31 #define _MSGID_taf_radio_AddNetRegStateEventHandler 4
32 #define _MSGID_taf_radio_RemoveNetRegStateEventHandler 5
33 #define _MSGID_taf_radio_AddPacketSwitchedChangeHandler 6
34 #define _MSGID_taf_radio_RemovePacketSwitchedChangeHandler 7
35 #define _MSGID_taf_radio_AddSignalStrengthChangeHandler 8
36 #define _MSGID_taf_radio_RemoveSignalStrengthChangeHandler 9
37 #define _MSGID_taf_radio_AddImsRegStatusChangeHandler 10
38 #define _MSGID_taf_radio_RemoveImsRegStatusChangeHandler 11
39 #define _MSGID_taf_radio_AddOpModeChangeHandler 12
40 #define _MSGID_taf_radio_RemoveOpModeChangeHandler 13
41 #define _MSGID_taf_radio_AddNetStatusChangeHandler 14
42 #define _MSGID_taf_radio_RemoveNetStatusChangeHandler 15
43 #define _MSGID_taf_radio_AddImsStatusChangeHandler 16
44 #define _MSGID_taf_radio_RemoveImsStatusChangeHandler 17
45 #define _MSGID_taf_radio_AddCellInfoChangeHandler 18
46 #define _MSGID_taf_radio_RemoveCellInfoChangeHandler 19
47 #define _MSGID_taf_radio_SetRadioPower 20
48 #define _MSGID_taf_radio_GetRadioPower 21
49 #define _MSGID_taf_radio_SetAutomaticRegisterMode 22
50 #define _MSGID_taf_radio_SetManualRegisterMode 23
51 #define _MSGID_taf_radio_SetManualRegisterModeAsync 24
52 #define _MSGID_taf_radio_GetRegisterMode 25
53 #define _MSGID_taf_radio_GetPlatformSpecificRegistrationErrorCode 26
54 #define _MSGID_taf_radio_GetBandCapabilities 27
55 #define _MSGID_taf_radio_GetLteBandCapabilities 28
56 #define _MSGID_taf_radio_SetBandPreferences 29
57 #define _MSGID_taf_radio_GetBandPreferences 30
58 #define _MSGID_taf_radio_SetLteBandPreferences 31
59 #define _MSGID_taf_radio_GetLteBandPreferences 32
60 #define _MSGID_taf_radio_AddPreferredOperator 33
61 #define _MSGID_taf_radio_RemovePreferredOperator 34
62 #define _MSGID_taf_radio_DeletePreferredOperatorsList 35
63 #define _MSGID_taf_radio_GetPreferredOperatorsList 36
64 #define _MSGID_taf_radio_GetFirstPreferredOperator 37
65 #define _MSGID_taf_radio_GetNextPreferredOperator 38
66 #define _MSGID_taf_radio_GetPreferredOperatorDetails 39
67 #define _MSGID_taf_radio_GetRadioAccessTechInUse 40
68 #define _MSGID_taf_radio_SetRatPreferences 41
69 #define _MSGID_taf_radio_GetRatPreferences 42
70 #define _MSGID_taf_radio_GetNetRegState 43
71 #define _MSGID_taf_radio_GetPacketSwitchedState 44
72 #define _MSGID_taf_radio_SetSignalStrengthIndThresholds 45
73 #define _MSGID_taf_radio_SetSignalStrengthIndDelta 46
74 #define _MSGID_taf_radio_GetSignalQual 47
75 #define _MSGID_taf_radio_MeasureSignalMetrics 48
76 #define _MSGID_taf_radio_DeleteSignalMetrics 49
77 #define _MSGID_taf_radio_GetRatOfSignalMetrics 50
78 #define _MSGID_taf_radio_GetGsmSignalMetrics 51
79 #define _MSGID_taf_radio_GetUmtsSignalMetrics 52
80 #define _MSGID_taf_radio_GetLteSignalMetrics 53
81 #define _MSGID_taf_radio_GetCdmaSignalMetrics 54
82 #define _MSGID_taf_radio_GetNr5gSignalMetrics 55
83 #define _MSGID_taf_radio_GetServingCellId 56
84 #define _MSGID_taf_radio_GetServingNrCellId 57
85 #define _MSGID_taf_radio_GetServingCellLocAreaCode 58
86 #define _MSGID_taf_radio_GetServingCellLteTracAreaCode 59
87 #define _MSGID_taf_radio_GetServingCellNrTracAreaCode 60
88 #define _MSGID_taf_radio_GetServingCellEarfcn 61
89 #define _MSGID_taf_radio_GetServingCellNrArfcn 62
90 #define _MSGID_taf_radio_GetServingCellTimingAdvance 63
91 #define _MSGID_taf_radio_GetPhysicalServingLteCellId 64
92 #define _MSGID_taf_radio_GetPhysicalServingNrCellId 65
93 #define _MSGID_taf_radio_GetServingCellGsmBsic 66
94 #define _MSGID_taf_radio_GetServingCellScramblingCode 67
95 #define _MSGID_taf_radio_GetCurrentNetworkName 68
96 #define _MSGID_taf_radio_GetCurrentNetworkMccMnc 69
97 #define _MSGID_taf_radio_PerformCellularNetworkScan 70
98 #define _MSGID_taf_radio_PerformCellularNetworkScanAsync 71
99 #define _MSGID_taf_radio_GetFirstCellularNetworkScan 72
100 #define _MSGID_taf_radio_GetNextCellularNetworkScan 73
101 #define _MSGID_taf_radio_DeleteCellularNetworkScan 74
102 #define _MSGID_taf_radio_GetCellularNetworkMccMnc 75
103 #define _MSGID_taf_radio_GetCellularNetworkName 76
104 #define _MSGID_taf_radio_GetCellularNetworkRat 77
105 #define _MSGID_taf_radio_IsCellularNetworkInUse 78
106 #define _MSGID_taf_radio_IsCellularNetworkAvailable 79
107 #define _MSGID_taf_radio_IsCellularNetworkHome 80
108 #define _MSGID_taf_radio_IsCellularNetworkForbidden 81
109 #define _MSGID_taf_radio_PerformPciNetworkScan 82
110 #define _MSGID_taf_radio_PerformPciNetworkScanAsync 83
111 #define _MSGID_taf_radio_GetFirstPciScanInfo 84
112 #define _MSGID_taf_radio_GetNextPciScanInfo 85
113 #define _MSGID_taf_radio_DeletePciNetworkScan 86
114 #define _MSGID_taf_radio_GetFirstPlmnInfo 87
115 #define _MSGID_taf_radio_GetNextPlmnInfo 88
116 #define _MSGID_taf_radio_GetPciScanCellId 89
117 #define _MSGID_taf_radio_GetPciScanGlobalCellId 90
118 #define _MSGID_taf_radio_GetPciScanMccMnc 91
119 #define _MSGID_taf_radio_GetNeighborCellsInfo 92
120 #define _MSGID_taf_radio_DeleteNeighborCellsInfo 93
121 #define _MSGID_taf_radio_GetFirstNeighborCellInfo 94
122 #define _MSGID_taf_radio_GetNextNeighborCellInfo 95
123 #define _MSGID_taf_radio_GetNeighborCellId 96
124 #define _MSGID_taf_radio_GetNeighborCellLocAreaCode 97
125 #define _MSGID_taf_radio_GetNeighborCellRxLevel 98
126 #define _MSGID_taf_radio_GetNeighborCellRat 99
127 #define _MSGID_taf_radio_GetPhysicalNeighborLteCellId 100
128 #define _MSGID_taf_radio_GetPhysicalNeighborNrCellId 101
129 #define _MSGID_taf_radio_GetNeighborCellGsmBsic 102
130 #define _MSGID_taf_radio_GetNetStatus 103
131 #define _MSGID_taf_radio_GetRatSvcStatus 104
132 #define _MSGID_taf_radio_GetLteCsCap 105
133 #define _MSGID_taf_radio_GetIms 106
134 #define _MSGID_taf_radio_GetImsRegStatus 107
135 #define _MSGID_taf_radio_GetImsSvcStatus 108
136 #define _MSGID_taf_radio_GetImsPdpError 109
137 #define _MSGID_taf_radio_SetImsSvcCfg 110
138 #define _MSGID_taf_radio_GetImsSvcCfg 111
139 #define _MSGID_taf_radio_SetImsUserAgent 112
140 #define _MSGID_taf_radio_GetImsUserAgent 113
141 #define _MSGID_taf_radio_GetNrDualConnectivityStatus 114
142 #define _MSGID_taf_radio_GetCurrentNetworkLongName 115
143 #define _MSGID_taf_radio_GetHardwareSimConfig 116
144 #define _MSGID_taf_radio_GetHardwareSimRatCapabilities 117
145 #define _MSGID_taf_radio_SetSignalStrengthIndHysteresis 118
146 #define _MSGID_taf_radio_SetSignalStrengthIndHysteresisTimer 119
147 
148 
149 // Define type-safe pack/unpack functions for all enums, including included types
150 
151 static inline bool taf_radio_PackRat
152 (
153  uint8_t **bufferPtr,
154  taf_radio_Rat_t value
155 )
156 {
157  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
158 }
159 
160 static inline bool taf_radio_UnpackRat
161 (
162  uint8_t **bufferPtr,
163  taf_radio_Rat_t* valuePtr
164 )
165 {
166  bool result;
167  uint32_t value = 0;
168  result = le_pack_UnpackUint32(bufferPtr, &value);
169  if (result)
170  {
171  *valuePtr = (taf_radio_Rat_t)value;
172  }
173  return result;
174 }
175 
176 static inline bool taf_radio_PackRatSvcStatus
177 (
178  uint8_t **bufferPtr,
180 )
181 {
182  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
183 }
184 
185 static inline bool taf_radio_UnpackRatSvcStatus
186 (
187  uint8_t **bufferPtr,
188  taf_radio_RatSvcStatus_t* valuePtr
189 )
190 {
191  bool result;
192  uint32_t value = 0;
193  result = le_pack_UnpackUint32(bufferPtr, &value);
194  if (result)
195  {
196  *valuePtr = (taf_radio_RatSvcStatus_t)value;
197  }
198  return result;
199 }
200 
201 static inline bool taf_radio_PackCsCap
202 (
203  uint8_t **bufferPtr,
204  taf_radio_CsCap_t value
205 )
206 {
207  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
208 }
209 
210 static inline bool taf_radio_UnpackCsCap
211 (
212  uint8_t **bufferPtr,
213  taf_radio_CsCap_t* valuePtr
214 )
215 {
216  bool result;
217  uint32_t value = 0;
218  result = le_pack_UnpackUint32(bufferPtr, &value);
219  if (result)
220  {
221  *valuePtr = (taf_radio_CsCap_t)value;
222  }
223  return result;
224 }
225 
226 static inline bool taf_radio_PackNetRejCause
227 (
228  uint8_t **bufferPtr,
230 )
231 {
232  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
233 }
234 
235 static inline bool taf_radio_UnpackNetRejCause
236 (
237  uint8_t **bufferPtr,
238  taf_radio_NetRejCause_t* valuePtr
239 )
240 {
241  bool result;
242  uint32_t value = 0;
243  result = le_pack_UnpackUint32(bufferPtr, &value);
244  if (result)
245  {
246  *valuePtr = (taf_radio_NetRejCause_t)value;
247  }
248  return result;
249 }
250 
251 static inline bool taf_radio_PackNetRegState
252 (
253  uint8_t **bufferPtr,
255 )
256 {
257  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
258 }
259 
260 static inline bool taf_radio_UnpackNetRegState
261 (
262  uint8_t **bufferPtr,
263  taf_radio_NetRegState_t* valuePtr
264 )
265 {
266  bool result;
267  uint32_t value = 0;
268  result = le_pack_UnpackUint32(bufferPtr, &value);
269  if (result)
270  {
271  *valuePtr = (taf_radio_NetRegState_t)value;
272  }
273  return result;
274 }
275 
276 static inline bool taf_radio_PackServiceDomainState
277 (
278  uint8_t **bufferPtr,
280 )
281 {
282  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
283 }
284 
285 static inline bool taf_radio_UnpackServiceDomainState
286 (
287  uint8_t **bufferPtr,
289 )
290 {
291  bool result;
292  uint32_t value = 0;
293  result = le_pack_UnpackUint32(bufferPtr, &value);
294  if (result)
295  {
296  *valuePtr = (taf_radio_ServiceDomainState_t)value;
297  }
298  return result;
299 }
300 
301 static inline bool taf_radio_PackSigType
302 (
303  uint8_t **bufferPtr,
304  taf_radio_SigType_t value
305 )
306 {
307  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
308 }
309 
310 static inline bool taf_radio_UnpackSigType
311 (
312  uint8_t **bufferPtr,
313  taf_radio_SigType_t* valuePtr
314 )
315 {
316  bool result;
317  uint32_t value = 0;
318  result = le_pack_UnpackUint32(bufferPtr, &value);
319  if (result)
320  {
321  *valuePtr = (taf_radio_SigType_t)value;
322  }
323  return result;
324 }
325 
326 static inline bool taf_radio_PackImsRegStatus
327 (
328  uint8_t **bufferPtr,
330 )
331 {
332  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
333 }
334 
335 static inline bool taf_radio_UnpackImsRegStatus
336 (
337  uint8_t **bufferPtr,
338  taf_radio_ImsRegStatus_t* valuePtr
339 )
340 {
341  bool result;
342  uint32_t value = 0;
343  result = le_pack_UnpackUint32(bufferPtr, &value);
344  if (result)
345  {
346  *valuePtr = (taf_radio_ImsRegStatus_t)value;
347  }
348  return result;
349 }
350 
351 static inline bool taf_radio_PackImsSvcType
352 (
353  uint8_t **bufferPtr,
355 )
356 {
357  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
358 }
359 
360 static inline bool taf_radio_UnpackImsSvcType
361 (
362  uint8_t **bufferPtr,
363  taf_radio_ImsSvcType_t* valuePtr
364 )
365 {
366  bool result;
367  uint32_t value = 0;
368  result = le_pack_UnpackUint32(bufferPtr, &value);
369  if (result)
370  {
371  *valuePtr = (taf_radio_ImsSvcType_t)value;
372  }
373  return result;
374 }
375 
376 static inline bool taf_radio_PackImsSvcStatus
377 (
378  uint8_t **bufferPtr,
380 )
381 {
382  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
383 }
384 
385 static inline bool taf_radio_UnpackImsSvcStatus
386 (
387  uint8_t **bufferPtr,
388  taf_radio_ImsSvcStatus_t* valuePtr
389 )
390 {
391  bool result;
392  uint32_t value = 0;
393  result = le_pack_UnpackUint32(bufferPtr, &value);
394  if (result)
395  {
396  *valuePtr = (taf_radio_ImsSvcStatus_t)value;
397  }
398  return result;
399 }
400 
401 static inline bool taf_radio_PackPdpError
402 (
403  uint8_t **bufferPtr,
405 )
406 {
407  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
408 }
409 
410 static inline bool taf_radio_UnpackPdpError
411 (
412  uint8_t **bufferPtr,
413  taf_radio_PdpError_t* valuePtr
414 )
415 {
416  bool result;
417  uint32_t value = 0;
418  result = le_pack_UnpackUint32(bufferPtr, &value);
419  if (result)
420  {
421  *valuePtr = (taf_radio_PdpError_t)value;
422  }
423  return result;
424 }
425 
426 static inline bool taf_radio_PackOpMode
427 (
428  uint8_t **bufferPtr,
429  taf_radio_OpMode_t value
430 )
431 {
432  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
433 }
434 
435 static inline bool taf_radio_UnpackOpMode
436 (
437  uint8_t **bufferPtr,
438  taf_radio_OpMode_t* valuePtr
439 )
440 {
441  bool result;
442  uint32_t value = 0;
443  result = le_pack_UnpackUint32(bufferPtr, &value);
444  if (result)
445  {
446  *valuePtr = (taf_radio_OpMode_t)value;
447  }
448  return result;
449 }
450 
451 static inline bool taf_radio_PackNREndcAvailability
452 (
453  uint8_t **bufferPtr,
455 )
456 {
457  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
458 }
459 
460 static inline bool taf_radio_UnpackNREndcAvailability
461 (
462  uint8_t **bufferPtr,
464 )
465 {
466  bool result;
467  uint32_t value = 0;
468  result = le_pack_UnpackUint32(bufferPtr, &value);
469  if (result)
470  {
471  *valuePtr = (taf_radio_NREndcAvailability_t)value;
472  }
473  return result;
474 }
475 
476 static inline bool taf_radio_PackNRDcnrRestriction
477 (
478  uint8_t **bufferPtr,
480 )
481 {
482  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
483 }
484 
485 static inline bool taf_radio_UnpackNRDcnrRestriction
486 (
487  uint8_t **bufferPtr,
489 )
490 {
491  bool result;
492  uint32_t value = 0;
493  result = le_pack_UnpackUint32(bufferPtr, &value);
494  if (result)
495  {
496  *valuePtr = (taf_radio_NRDcnrRestriction_t)value;
497  }
498  return result;
499 }
500 
501 static inline bool taf_radio_PackCellInfoStatus
502 (
503  uint8_t **bufferPtr,
505 )
506 {
507  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
508 }
509 
510 static inline bool taf_radio_UnpackCellInfoStatus
511 (
512  uint8_t **bufferPtr,
514 )
515 {
516  bool result;
517  uint32_t value = 0;
518  result = le_pack_UnpackUint32(bufferPtr, &value);
519  if (result)
520  {
521  *valuePtr = (taf_radio_CellInfoStatus_t)value;
522  }
523  return result;
524 }
525 
526 static inline bool taf_radio_PackRatBitMask
527 (
528  uint8_t **bufferPtr,
530 )
531 {
532  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
533 }
534 
535 static inline bool taf_radio_UnpackRatBitMask
536 (
537  uint8_t **bufferPtr,
538  taf_radio_RatBitMask_t* valuePtr
539 )
540 {
541  bool result;
542  uint32_t value = 0;
543  result = le_pack_UnpackUint32(bufferPtr, &value);
544  if (result)
545  {
546  *valuePtr = (taf_radio_RatBitMask_t)value;
547  }
548  return result;
549 }
550 
551 static inline bool taf_radio_PackBandBitMask
552 (
553  uint8_t **bufferPtr,
555 )
556 {
557  return le_pack_PackUint64(bufferPtr, (uint64_t)value);
558 }
559 
560 static inline bool taf_radio_UnpackBandBitMask
561 (
562  uint8_t **bufferPtr,
563  taf_radio_BandBitMask_t* valuePtr
564 )
565 {
566  bool result;
567  uint64_t value = 0;
568  result = le_pack_UnpackUint64(bufferPtr, &value);
569  if (result)
570  {
571  *valuePtr = (taf_radio_BandBitMask_t)value;
572  }
573  return result;
574 }
575 
576 static inline bool taf_radio_PackImsIndBitMask
577 (
578  uint8_t **bufferPtr,
580 )
581 {
582  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
583 }
584 
585 static inline bool taf_radio_UnpackImsIndBitMask
586 (
587  uint8_t **bufferPtr,
588  taf_radio_ImsIndBitMask_t* valuePtr
589 )
590 {
591  bool result;
592  uint32_t value = 0;
593  result = le_pack_UnpackUint32(bufferPtr, &value);
594  if (result)
595  {
596  *valuePtr = (taf_radio_ImsIndBitMask_t)value;
597  }
598  return result;
599 }
600 
601 static inline bool taf_radio_PackNetStatusIndBitMask
602 (
603  uint8_t **bufferPtr,
605 )
606 {
607  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
608 }
609 
610 static inline bool taf_radio_UnpackNetStatusIndBitMask
611 (
612  uint8_t **bufferPtr,
614 )
615 {
616  bool result;
617  uint32_t value = 0;
618  result = le_pack_UnpackUint32(bufferPtr, &value);
619  if (result)
620  {
621  *valuePtr = (taf_radio_NetStatusIndBitMask_t)value;
622  }
623  return result;
624 }
625 
626 // Define pack/unpack functions for all structures, including included types
627 
628 
629 static inline bool taf_radio_PackNetRegRejInd
630 (
631  uint8_t **bufferPtr,
632  const taf_radio_NetRegRejInd_t *valuePtr
633 )
634 {
635  __attribute__((unused))
636  bool subResult, result = true;
637 
638  LE_ASSERT(valuePtr);
639  subResult = taf_radio_PackRat( bufferPtr,
640  valuePtr->rat );
641  result = result && subResult;
642  subResult = le_pack_PackString( bufferPtr,
643  valuePtr->mcc, 4);
644  result = result && subResult;
645  subResult = le_pack_PackString( bufferPtr,
646  valuePtr->mnc, 4);
647  result = result && subResult;
648  subResult = taf_radio_PackNetRejCause( bufferPtr,
649  valuePtr->cause );
650  result = result && subResult;
651  subResult = taf_radio_PackServiceDomainState( bufferPtr,
652  valuePtr->domain );
653  result = result && subResult;
654  subResult = le_pack_PackUint8( bufferPtr,
655  valuePtr->phoneId );
656  result = result && subResult;
657 
658  return result;
659 }
660 
661 static inline bool taf_radio_UnpackNetRegRejInd
662 (
663  uint8_t **bufferPtr,
664  taf_radio_NetRegRejInd_t *valuePtr
665 )
666 {
667  bool result = true;
668  if (result)
669  {
670  result = taf_radio_UnpackRat(bufferPtr,
671  &valuePtr->rat );
672  }
673  if (result)
674  {
675  result = le_pack_UnpackString(bufferPtr,
676  valuePtr->mcc,
677  sizeof(valuePtr->mcc),
678  4);
679  }
680  if (result)
681  {
682  result = le_pack_UnpackString(bufferPtr,
683  valuePtr->mnc,
684  sizeof(valuePtr->mnc),
685  4);
686  }
687  if (result)
688  {
689  result = taf_radio_UnpackNetRejCause(bufferPtr,
690  &valuePtr->cause );
691  }
692  if (result)
693  {
694  result = taf_radio_UnpackServiceDomainState(bufferPtr,
695  &valuePtr->domain );
696  }
697  if (result)
698  {
699  result = le_pack_UnpackUint8(bufferPtr,
700  &valuePtr->phoneId );
701  }
702  return result;
703 }
704 
705 static inline bool taf_radio_PackRatChangeInd
706 (
707  uint8_t **bufferPtr,
708  const taf_radio_RatChangeInd_t *valuePtr
709 )
710 {
711  __attribute__((unused))
712  bool subResult, result = true;
713 
714  LE_ASSERT(valuePtr);
715  subResult = taf_radio_PackRat( bufferPtr,
716  valuePtr->rat );
717  result = result && subResult;
718  subResult = le_pack_PackUint8( bufferPtr,
719  valuePtr->phoneId );
720  result = result && subResult;
721 
722  return result;
723 }
724 
725 static inline bool taf_radio_UnpackRatChangeInd
726 (
727  uint8_t **bufferPtr,
728  taf_radio_RatChangeInd_t *valuePtr
729 )
730 {
731  bool result = true;
732  if (result)
733  {
734  result = taf_radio_UnpackRat(bufferPtr,
735  &valuePtr->rat );
736  }
737  if (result)
738  {
739  result = le_pack_UnpackUint8(bufferPtr,
740  &valuePtr->phoneId );
741  }
742  return result;
743 }
744 
745 static inline bool taf_radio_PackNetRegStateInd
746 (
747  uint8_t **bufferPtr,
748  const taf_radio_NetRegStateInd_t *valuePtr
749 )
750 {
751  __attribute__((unused))
752  bool subResult, result = true;
753 
754  LE_ASSERT(valuePtr);
755  subResult = taf_radio_PackNetRegState( bufferPtr,
756  valuePtr->state );
757  result = result && subResult;
758  subResult = le_pack_PackUint8( bufferPtr,
759  valuePtr->phoneId );
760  result = result && subResult;
761 
762  return result;
763 }
764 
765 static inline bool taf_radio_UnpackNetRegStateInd
766 (
767  uint8_t **bufferPtr,
769 )
770 {
771  bool result = true;
772  if (result)
773  {
774  result = taf_radio_UnpackNetRegState(bufferPtr,
775  &valuePtr->state );
776  }
777  if (result)
778  {
779  result = le_pack_UnpackUint8(bufferPtr,
780  &valuePtr->phoneId );
781  }
782  return result;
783 }
784 
785 #endif // TAF_RADIO_MESSAGES_H_INCLUDE_GUARD
taf_radio_Rat_t rat
Definition: taf_radio_common.h:729
uint64_t taf_radio_BandBitMask_t
Definition: taf_radio_common.h:682
taf_radio_ImsSvcStatus_t
Definition: taf_radio_common.h:483
taf_radio_NetRegState_t
Definition: taf_radio_common.h:368
static bool taf_radio_UnpackNetRejCause(uint8_t **bufferPtr, taf_radio_NetRejCause_t *valuePtr)
Definition: taf_radio_messages.h:236
static bool taf_radio_PackRatSvcStatus(uint8_t **bufferPtr, taf_radio_RatSvcStatus_t value)
Definition: taf_radio_messages.h:177
taf_radio_NREndcAvailability_t
Definition: taf_radio_common.h:553
Definition: taf_radio_common.h:710
taf_radio_ServiceDomainState_t domain
Definition: taf_radio_common.h:716
static bool taf_radio_PackBandBitMask(uint8_t **bufferPtr, taf_radio_BandBitMask_t value)
Definition: taf_radio_messages.h:552
static bool taf_radio_UnpackOpMode(uint8_t **bufferPtr, taf_radio_OpMode_t *valuePtr)
Definition: taf_radio_messages.h:436
static bool taf_radio_PackCsCap(uint8_t **bufferPtr, taf_radio_CsCap_t value)
Definition: taf_radio_messages.h:202
uint32_t taf_radio_ImsIndBitMask_t
Definition: taf_radio_common.h:692
static bool taf_radio_PackSigType(uint8_t **bufferPtr, taf_radio_SigType_t value)
Definition: taf_radio_messages.h:302
LE_DECLARE_INLINE bool le_pack_UnpackUint64(uint8_t **bufferPtr, uint64_t *valuePtr)
Definition: le_pack.h:1227
static bool taf_radio_UnpackServiceDomainState(uint8_t **bufferPtr, taf_radio_ServiceDomainState_t *valuePtr)
Definition: taf_radio_messages.h:286
static bool taf_radio_PackNetRegRejInd(uint8_t **bufferPtr, const taf_radio_NetRegRejInd_t *valuePtr)
Definition: taf_radio_messages.h:630
static bool taf_radio_UnpackNREndcAvailability(uint8_t **bufferPtr, taf_radio_NREndcAvailability_t *valuePtr)
Definition: taf_radio_messages.h:461
taf_radio_NetRegState_t state
Definition: taf_radio_common.h:742
taf_radio_OpMode_t
Definition: taf_radio_common.h:529
static bool taf_radio_PackOpMode(uint8_t **bufferPtr, taf_radio_OpMode_t value)
Definition: taf_radio_messages.h:427
LE_DECLARE_INLINE bool le_pack_UnpackString(uint8_t **bufferPtr, char *stringPtr, uint32_t bufferSize, uint32_t maxStringCount)
Definition: le_pack.h:1565
static bool taf_radio_UnpackRat(uint8_t **bufferPtr, taf_radio_Rat_t *valuePtr)
Definition: taf_radio_messages.h:161
static bool taf_radio_UnpackRatChangeInd(uint8_t **bufferPtr, taf_radio_RatChangeInd_t *valuePtr)
Definition: taf_radio_messages.h:726
static bool taf_radio_UnpackNetRegStateInd(uint8_t **bufferPtr, taf_radio_NetRegStateInd_t *valuePtr)
Definition: taf_radio_messages.h:766
Definition: taf_radio_common.h:740
static bool taf_radio_UnpackNRDcnrRestriction(uint8_t **bufferPtr, taf_radio_NRDcnrRestriction_t *valuePtr)
Definition: taf_radio_messages.h:486
static bool taf_radio_UnpackCellInfoStatus(uint8_t **bufferPtr, taf_radio_CellInfoStatus_t *valuePtr)
Definition: taf_radio_messages.h:511
static bool taf_radio_PackRatBitMask(uint8_t **bufferPtr, taf_radio_RatBitMask_t value)
Definition: taf_radio_messages.h:527
_Message_t
Definition: taf_radio_messages.h:25
static bool taf_radio_PackRat(uint8_t **bufferPtr, taf_radio_Rat_t value)
Definition: taf_radio_messages.h:152
taf_radio_Rat_t rat
Definition: taf_radio_common.h:712
static bool taf_radio_PackNetStatusIndBitMask(uint8_t **bufferPtr, taf_radio_NetStatusIndBitMask_t value)
Definition: taf_radio_messages.h:602
static bool taf_radio_PackNREndcAvailability(uint8_t **bufferPtr, taf_radio_NREndcAvailability_t value)
Definition: taf_radio_messages.h:452
taf_radio_CellInfoStatus_t
Definition: taf_radio_common.h:587
uint8_t phoneId
Definition: taf_radio_common.h:730
static bool taf_radio_PackCellInfoStatus(uint8_t **bufferPtr, taf_radio_CellInfoStatus_t value)
Definition: taf_radio_messages.h:502
taf_radio_SigType_t
Definition: taf_radio_common.h:418
taf_radio_NRDcnrRestriction_t
Definition: taf_radio_common.h:570
static bool taf_radio_UnpackImsIndBitMask(uint8_t **bufferPtr, taf_radio_ImsIndBitMask_t *valuePtr)
Definition: taf_radio_messages.h:586
taf_radio_PdpError_t
Definition: taf_radio_common.h:502
taf_radio_ImsSvcType_t
Definition: taf_radio_common.h:464
static bool taf_radio_UnpackBandBitMask(uint8_t **bufferPtr, taf_radio_BandBitMask_t *valuePtr)
Definition: taf_radio_messages.h:561
static bool taf_radio_UnpackPdpError(uint8_t **bufferPtr, taf_radio_PdpError_t *valuePtr)
Definition: taf_radio_messages.h:411
taf_radio_NetRejCause_t cause
Definition: taf_radio_common.h:715
static bool taf_radio_PackNetRegState(uint8_t **bufferPtr, taf_radio_NetRegState_t value)
Definition: taf_radio_messages.h:252
static bool taf_radio_UnpackNetStatusIndBitMask(uint8_t **bufferPtr, taf_radio_NetStatusIndBitMask_t *valuePtr)
Definition: taf_radio_messages.h:611
uint32_t taf_radio_RatBitMask_t
Definition: taf_radio_common.h:611
#define _MAX_MSG_SIZE
Definition: taf_radio_messages.h:17
uint32_t taf_radio_NetStatusIndBitMask_t
Definition: taf_radio_common.h:702
LE_DECLARE_INLINE bool le_pack_UnpackUint32(uint8_t **bufferPtr, uint32_t *valuePtr)
Definition: le_pack.h:1205
static bool taf_radio_PackRatChangeInd(uint8_t **bufferPtr, const taf_radio_RatChangeInd_t *valuePtr)
Definition: taf_radio_messages.h:706
LE_DECLARE_INLINE bool le_pack_UnpackUint8(uint8_t **bufferPtr, uint8_t *valuePtr)
Definition: le_pack.h:1164
static bool taf_radio_PackImsSvcType(uint8_t **bufferPtr, taf_radio_ImsSvcType_t value)
Definition: taf_radio_messages.h:352
#define LE_ASSERT(condition)
Definition: le_log.h:935
static bool taf_radio_PackServiceDomainState(uint8_t **bufferPtr, taf_radio_ServiceDomainState_t value)
Definition: taf_radio_messages.h:277
char mnc[4+1]
Definition: taf_radio_common.h:714
static bool taf_radio_PackNRDcnrRestriction(uint8_t **bufferPtr, taf_radio_NRDcnrRestriction_t value)
Definition: taf_radio_messages.h:477
static bool taf_radio_UnpackRatBitMask(uint8_t **bufferPtr, taf_radio_RatBitMask_t *valuePtr)
Definition: taf_radio_messages.h:536
static bool taf_radio_PackPdpError(uint8_t **bufferPtr, taf_radio_PdpError_t value)
Definition: taf_radio_messages.h:402
taf_radio_Rat_t
Definition: taf_radio_common.h:178
taf_radio_CsCap_t
Definition: taf_radio_common.h:256
struct __attribute__((packed))
Definition: taf_radio_messages.h:20
LE_DECLARE_INLINE bool le_pack_PackUint64(uint8_t **bufferPtr, uint64_t value)
Definition: le_pack.h:251
taf_radio_RatSvcStatus_t
Definition: taf_radio_common.h:233
static bool taf_radio_PackNetRegStateInd(uint8_t **bufferPtr, const taf_radio_NetRegStateInd_t *valuePtr)
Definition: taf_radio_messages.h:746
taf_radio_ServiceDomainState_t
Definition: taf_radio_common.h:399
static bool taf_radio_UnpackSigType(uint8_t **bufferPtr, taf_radio_SigType_t *valuePtr)
Definition: taf_radio_messages.h:311
static bool taf_radio_UnpackRatSvcStatus(uint8_t **bufferPtr, taf_radio_RatSvcStatus_t *valuePtr)
Definition: taf_radio_messages.h:186
static bool taf_radio_PackImsIndBitMask(uint8_t **bufferPtr, taf_radio_ImsIndBitMask_t value)
Definition: taf_radio_messages.h:577
static bool taf_radio_PackImsRegStatus(uint8_t **bufferPtr, taf_radio_ImsRegStatus_t value)
Definition: taf_radio_messages.h:327
Definition: taf_radio_common.h:727
LE_DECLARE_INLINE bool le_pack_PackString(uint8_t **bufferPtr, const char *stringPtr, uint32_t maxStringCount)
Definition: le_pack.h:884
static bool taf_radio_UnpackImsSvcStatus(uint8_t **bufferPtr, taf_radio_ImsSvcStatus_t *valuePtr)
Definition: taf_radio_messages.h:386
static bool taf_radio_UnpackCsCap(uint8_t **bufferPtr, taf_radio_CsCap_t *valuePtr)
Definition: taf_radio_messages.h:211
static bool taf_radio_PackNetRejCause(uint8_t **bufferPtr, taf_radio_NetRejCause_t value)
Definition: taf_radio_messages.h:227
taf_radio_ImsRegStatus_t
Definition: taf_radio_common.h:443
static bool taf_radio_UnpackNetRegState(uint8_t **bufferPtr, taf_radio_NetRegState_t *valuePtr)
Definition: taf_radio_messages.h:261
uint8_t phoneId
Definition: taf_radio_common.h:717
static bool taf_radio_UnpackNetRegRejInd(uint8_t **bufferPtr, taf_radio_NetRegRejInd_t *valuePtr)
Definition: taf_radio_messages.h:662
static bool taf_radio_UnpackImsRegStatus(uint8_t **bufferPtr, taf_radio_ImsRegStatus_t *valuePtr)
Definition: taf_radio_messages.h:336
static bool taf_radio_PackImsSvcStatus(uint8_t **bufferPtr, taf_radio_ImsSvcStatus_t value)
Definition: taf_radio_messages.h:377
LE_DECLARE_INLINE bool le_pack_PackUint32(uint8_t **bufferPtr, uint32_t value)
Definition: le_pack.h:205
taf_radio_NetRejCause_t
Definition: taf_radio_common.h:279
uint8_t phoneId
Definition: taf_radio_common.h:743
char mcc[4+1]
Definition: taf_radio_common.h:713
LE_DECLARE_INLINE bool le_pack_PackUint8(uint8_t **bufferPtr, uint8_t value)
Definition: le_pack.h:118
static bool taf_radio_UnpackImsSvcType(uint8_t **bufferPtr, taf_radio_ImsSvcType_t *valuePtr)
Definition: taf_radio_messages.h:361