Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_diagRoutineCtrl_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_DIAGROUTINECTRL_MESSAGES_H_INCLUDE_GUARD
12 #define TAF_DIAGROUTINECTRL_MESSAGES_H_INCLUDE_GUARD
13 
14 
16 
17 #define _MAX_MSG_SIZE IFGEN_TAF_DIAGROUTINECTRL_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_diagRoutineCtrl_GetService 0
28 #define _MSGID_taf_diagRoutineCtrl_AddRxMsgHandler 1
29 #define _MSGID_taf_diagRoutineCtrl_RemoveRxMsgHandler 2
30 #define _MSGID_taf_diagRoutineCtrl_GetRoutineCtrlRec 3
31 #define _MSGID_taf_diagRoutineCtrl_SendResp 4
32 #define _MSGID_taf_diagRoutineCtrl_RemoveSvc 5
33 
34 
35 // Define type-safe pack/unpack functions for all enums, including included types
36 
37 static inline bool taf_diagRoutineCtrl_PackType
38 (
39  uint8_t **bufferPtr,
41 )
42 {
43  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
44 }
45 
46 static inline bool taf_diagRoutineCtrl_UnpackType
47 (
48  uint8_t **bufferPtr,
50 )
51 {
52  bool result;
53  uint32_t value = 0;
54  result = le_pack_UnpackUint32(bufferPtr, &value);
55  if (result)
56  {
57  *valuePtr = (taf_diagRoutineCtrl_Type_t)value;
58  }
59  return result;
60 }
61 
62 static inline bool taf_diagRoutineCtrl_PackErrorCode
63 (
64  uint8_t **bufferPtr,
66 )
67 {
68  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
69 }
70 
71 static inline bool taf_diagRoutineCtrl_UnpackErrorCode
72 (
73  uint8_t **bufferPtr,
75 )
76 {
77  bool result;
78  uint32_t value = 0;
79  result = le_pack_UnpackUint32(bufferPtr, &value);
80  if (result)
81  {
82  *valuePtr = (taf_diagRoutineCtrl_ErrorCode_t)value;
83  }
84  return result;
85 }
86 
87 // Define pack/unpack functions for all structures, including included types
88 
89 
90 #endif // TAF_DIAGROUTINECTRL_MESSAGES_H_INCLUDE_GUARD
struct __attribute__((packed))
Definition: taf_diagRoutineCtrl_messages.h:20
static bool taf_diagRoutineCtrl_PackErrorCode(uint8_t **bufferPtr, taf_diagRoutineCtrl_ErrorCode_t value)
Definition: taf_diagRoutineCtrl_messages.h:63
static bool taf_diagRoutineCtrl_PackType(uint8_t **bufferPtr, taf_diagRoutineCtrl_Type_t value)
Definition: taf_diagRoutineCtrl_messages.h:38
_Message_t
Definition: taf_diagRoutineCtrl_messages.h:25
LE_DECLARE_INLINE bool le_pack_UnpackUint32(uint8_t **bufferPtr, uint32_t *valuePtr)
Definition: le_pack.h:1205
#define _MAX_MSG_SIZE
Definition: taf_diagRoutineCtrl_messages.h:17
static bool taf_diagRoutineCtrl_UnpackErrorCode(uint8_t **bufferPtr, taf_diagRoutineCtrl_ErrorCode_t *valuePtr)
Definition: taf_diagRoutineCtrl_messages.h:72
static bool taf_diagRoutineCtrl_UnpackType(uint8_t **bufferPtr, taf_diagRoutineCtrl_Type_t *valuePtr)
Definition: taf_diagRoutineCtrl_messages.h:47
taf_diagRoutineCtrl_ErrorCode_t
Definition: taf_diagRoutineCtrl_common.h:53
taf_diagRoutineCtrl_Type_t
Definition: taf_diagRoutineCtrl_common.h:36
LE_DECLARE_INLINE bool le_pack_PackUint32(uint8_t **bufferPtr, uint32_t value)
Definition: le_pack.h:205