Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_diagSecBackend_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_DIAGSECBACKEND_MESSAGES_H_INCLUDE_GUARD
12 #define TAF_DIAGSECBACKEND_MESSAGES_H_INCLUDE_GUARD
13 
14 
16 
17 #define _MAX_MSG_SIZE IFGEN_TAF_DIAGSECBACKEND_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_diagSecBackend_AddSesTypeCheckHandler 0
28 #define _MSGID_taf_diagSecBackend_RemoveSesTypeCheckHandler 1
29 #define _MSGID_taf_diagSecBackend_SendSesTypeCheckResp 2
30 #define _MSGID_taf_diagSecBackend_AddSesChangeHandler 3
31 #define _MSGID_taf_diagSecBackend_RemoveSesChangeHandler 4
32 
33 
34 // Define type-safe pack/unpack functions for all enums, including included types
35 
36 static inline bool taf_diagSecBackend_PackSessionType
37 (
38  uint8_t **bufferPtr,
40 )
41 {
42  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
43 }
44 
45 static inline bool taf_diagSecBackend_UnpackSessionType
46 (
47  uint8_t **bufferPtr,
49 )
50 {
51  bool result;
52  uint32_t value = 0;
53  result = le_pack_UnpackUint32(bufferPtr, &value);
54  if (result)
55  {
56  *valuePtr = (taf_diagSecBackend_SessionType_t)value;
57  }
58  return result;
59 }
60 
62 (
63  uint8_t **bufferPtr,
65 )
66 {
67  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
68 }
69 
71 (
72  uint8_t **bufferPtr,
74 )
75 {
76  bool result;
77  uint32_t value = 0;
78  result = le_pack_UnpackUint32(bufferPtr, &value);
79  if (result)
80  {
82  }
83  return result;
84 }
85 
86 // Define pack/unpack functions for all structures, including included types
87 
88 
89 #endif // TAF_DIAGSECBACKEND_MESSAGES_H_INCLUDE_GUARD
static bool taf_diagSecBackend_UnpackSesControlErrorCode(uint8_t **bufferPtr, taf_diagSecBackend_SesControlErrorCode_t *valuePtr)
Definition: taf_diagSecBackend_messages.h:71
taf_diagSecBackend_SessionType_t
Definition: taf_diagSecBackend_common.h:36
static bool taf_diagSecBackend_PackSesControlErrorCode(uint8_t **bufferPtr, taf_diagSecBackend_SesControlErrorCode_t value)
Definition: taf_diagSecBackend_messages.h:62
_Message_t
Definition: taf_diagSecBackend_messages.h:25
taf_diagSecBackend_SesControlErrorCode_t
Definition: taf_diagSecBackend_common.h:59
struct __attribute__((packed))
Definition: taf_diagSecBackend_messages.h:20
LE_DECLARE_INLINE bool le_pack_UnpackUint32(uint8_t **bufferPtr, uint32_t *valuePtr)
Definition: le_pack.h:1205
static bool taf_diagSecBackend_PackSessionType(uint8_t **bufferPtr, taf_diagSecBackend_SessionType_t value)
Definition: taf_diagSecBackend_messages.h:37
#define _MAX_MSG_SIZE
Definition: taf_diagSecBackend_messages.h:17
static bool taf_diagSecBackend_UnpackSessionType(uint8_t **bufferPtr, taf_diagSecBackend_SessionType_t *valuePtr)
Definition: taf_diagSecBackend_messages.h:46
LE_DECLARE_INLINE bool le_pack_PackUint32(uint8_t **bufferPtr, uint32_t value)
Definition: le_pack.h:205