Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_diagUpdate_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_DIAGUPDATE_MESSAGES_H_INCLUDE_GUARD
12 #define TAF_DIAGUPDATE_MESSAGES_H_INCLUDE_GUARD
13 
14 
15 #include "taf_diagUpdate_common.h"
16 
17 #define _MAX_MSG_SIZE IFGEN_TAF_DIAGUPDATE_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_diagUpdate_GetService 0
28 #define _MSGID_taf_diagUpdate_AddRxFileXferMsgHandler 1
29 #define _MSGID_taf_diagUpdate_RemoveRxFileXferMsgHandler 2
30 #define _MSGID_taf_diagUpdate_GetFilePathAndName 3
31 #define _MSGID_taf_diagUpdate_GetDataFormatID 4
32 #define _MSGID_taf_diagUpdate_GetUnCompFileSize 5
33 #define _MSGID_taf_diagUpdate_GetCompFileSize 6
34 #define _MSGID_taf_diagUpdate_SetFilePosition 7
35 #define _MSGID_taf_diagUpdate_SetFileSizeOrDirInfoLength 8
36 #define _MSGID_taf_diagUpdate_SendFileXferResp 9
37 #define _MSGID_taf_diagUpdate_AddRxXferDataMsgHandler 10
38 #define _MSGID_taf_diagUpdate_RemoveRxXferDataMsgHandler 11
39 #define _MSGID_taf_diagUpdate_GetblockSeqCount 12
40 #define _MSGID_taf_diagUpdate_GetXferDataParamRecLen 13
41 #define _MSGID_taf_diagUpdate_GetXferDataParamRec 14
42 #define _MSGID_taf_diagUpdate_SendXferDataResp 15
43 #define _MSGID_taf_diagUpdate_AddRxXferExitMsgHandler 16
44 #define _MSGID_taf_diagUpdate_RemoveRxXferExitMsgHandler 17
45 #define _MSGID_taf_diagUpdate_GetXferExitParamRecLen 18
46 #define _MSGID_taf_diagUpdate_GetXferExitParamRec 19
47 #define _MSGID_taf_diagUpdate_SendXferExitResp 20
48 #define _MSGID_taf_diagUpdate_RemoveSvc 21
49 
50 
51 // Define type-safe pack/unpack functions for all enums, including included types
52 
53 static inline bool taf_diagUpdate_PackModeOfOpsType
54 (
55  uint8_t **bufferPtr,
57 )
58 {
59  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
60 }
61 
62 static inline bool taf_diagUpdate_UnpackModeOfOpsType
63 (
64  uint8_t **bufferPtr,
66 )
67 {
68  bool result;
69  uint32_t value = 0;
70  result = le_pack_UnpackUint32(bufferPtr, &value);
71  if (result)
72  {
73  *valuePtr = (taf_diagUpdate_ModeOfOpsType_t)value;
74  }
75  return result;
76 }
77 
78 static inline bool taf_diagUpdate_PackFileXferErrorCode
79 (
80  uint8_t **bufferPtr,
82 )
83 {
84  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
85 }
86 
88 (
89  uint8_t **bufferPtr,
91 )
92 {
93  bool result;
94  uint32_t value = 0;
95  result = le_pack_UnpackUint32(bufferPtr, &value);
96  if (result)
97  {
98  *valuePtr = (taf_diagUpdate_FileXferErrorCode_t)value;
99  }
100  return result;
101 }
102 
103 static inline bool taf_diagUpdate_PackXferDataErrorCode
104 (
105  uint8_t **bufferPtr,
107 )
108 {
109  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
110 }
111 
113 (
114  uint8_t **bufferPtr,
116 )
117 {
118  bool result;
119  uint32_t value = 0;
120  result = le_pack_UnpackUint32(bufferPtr, &value);
121  if (result)
122  {
123  *valuePtr = (taf_diagUpdate_XferDataErrorCode_t)value;
124  }
125  return result;
126 }
127 
128 static inline bool taf_diagUpdate_PackXferExitErrorCode
129 (
130  uint8_t **bufferPtr,
132 )
133 {
134  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
135 }
136 
138 (
139  uint8_t **bufferPtr,
141 )
142 {
143  bool result;
144  uint32_t value = 0;
145  result = le_pack_UnpackUint32(bufferPtr, &value);
146  if (result)
147  {
148  *valuePtr = (taf_diagUpdate_XferExitErrorCode_t)value;
149  }
150  return result;
151 }
152 
153 // Define pack/unpack functions for all structures, including included types
154 
155 
156 #endif // TAF_DIAGUPDATE_MESSAGES_H_INCLUDE_GUARD
static bool taf_diagUpdate_UnpackFileXferErrorCode(uint8_t **bufferPtr, taf_diagUpdate_FileXferErrorCode_t *valuePtr)
Definition: taf_diagUpdate_messages.h:88
static bool taf_diagUpdate_UnpackXferExitErrorCode(uint8_t **bufferPtr, taf_diagUpdate_XferExitErrorCode_t *valuePtr)
Definition: taf_diagUpdate_messages.h:138
static bool taf_diagUpdate_UnpackModeOfOpsType(uint8_t **bufferPtr, taf_diagUpdate_ModeOfOpsType_t *valuePtr)
Definition: taf_diagUpdate_messages.h:63
static bool taf_diagUpdate_PackFileXferErrorCode(uint8_t **bufferPtr, taf_diagUpdate_FileXferErrorCode_t value)
Definition: taf_diagUpdate_messages.h:79
static bool taf_diagUpdate_PackXferDataErrorCode(uint8_t **bufferPtr, taf_diagUpdate_XferDataErrorCode_t value)
Definition: taf_diagUpdate_messages.h:104
taf_diagUpdate_ModeOfOpsType_t
Definition: taf_diagUpdate_common.h:64
static bool taf_diagUpdate_PackModeOfOpsType(uint8_t **bufferPtr, taf_diagUpdate_ModeOfOpsType_t value)
Definition: taf_diagUpdate_messages.h:54
LE_DECLARE_INLINE bool le_pack_UnpackUint32(uint8_t **bufferPtr, uint32_t *valuePtr)
Definition: le_pack.h:1205
static bool taf_diagUpdate_PackXferExitErrorCode(uint8_t **bufferPtr, taf_diagUpdate_XferExitErrorCode_t value)
Definition: taf_diagUpdate_messages.h:129
taf_diagUpdate_XferExitErrorCode_t
Definition: taf_diagUpdate_common.h:123
struct __attribute__((packed))
Definition: taf_diagUpdate_messages.h:20
static bool taf_diagUpdate_UnpackXferDataErrorCode(uint8_t **bufferPtr, taf_diagUpdate_XferDataErrorCode_t *valuePtr)
Definition: taf_diagUpdate_messages.h:113
taf_diagUpdate_FileXferErrorCode_t
Definition: taf_diagUpdate_common.h:87
taf_diagUpdate_XferDataErrorCode_t
Definition: taf_diagUpdate_common.h:104
_Message_t
Definition: taf_diagUpdate_messages.h:25
LE_DECLARE_INLINE bool le_pack_PackUint32(uint8_t **bufferPtr, uint32_t value)
Definition: le_pack.h:205
#define _MAX_MSG_SIZE
Definition: taf_diagUpdate_messages.h:17