Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_mrc_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_MRC_MESSAGES_H_INCLUDE_GUARD
12 #define TAF_MRC_MESSAGES_H_INCLUDE_GUARD
13 
14 
15 #include "taf_mrc_common.h"
16 
17 #define _MAX_MSG_SIZE IFGEN_TAF_MRC_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_mrc_SendOtaStartMsg 0
28 #define _MSGID_taf_mrc_SendOtaResumeMsg 1
29 #define _MSGID_taf_mrc_SendOtaEndMsg 2
30 #define _MSGID_taf_mrc_SendOtaAbsyncMsg 3
31 
32 
33 // Define type-safe pack/unpack functions for all enums, including included types
34 
35 static inline bool taf_mrc_PackOtaOperationStatus
36 (
37  uint8_t **bufferPtr,
39 )
40 {
41  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
42 }
43 
44 static inline bool taf_mrc_UnpackOtaOperationStatus
45 (
46  uint8_t **bufferPtr,
48 )
49 {
50  bool result;
51  uint32_t value = 0;
52  result = le_pack_UnpackUint32(bufferPtr, &value);
53  if (result)
54  {
55  *valuePtr = (taf_mrc_OtaOperationStatus_t)value;
56  }
57  return result;
58 }
59 
60 // Define pack/unpack functions for all structures, including included types
61 
62 
63 #endif // TAF_MRC_MESSAGES_H_INCLUDE_GUARD
#define _MAX_MSG_SIZE
Definition: taf_mrc_messages.h:17
LE_DECLARE_INLINE bool le_pack_UnpackUint32(uint8_t **bufferPtr, uint32_t *valuePtr)
Definition: le_pack.h:1205
struct __attribute__((packed))
Definition: taf_mrc_messages.h:20
_Message_t
Definition: taf_mrc_messages.h:25
taf_mrc_OtaOperationStatus_t
Definition: taf_mrc_common.h:28
static bool taf_mrc_UnpackOtaOperationStatus(uint8_t **bufferPtr, taf_mrc_OtaOperationStatus_t *valuePtr)
Definition: taf_mrc_messages.h:45
LE_DECLARE_INLINE bool le_pack_PackUint32(uint8_t **bufferPtr, uint32_t value)
Definition: le_pack.h:205
static bool taf_mrc_PackOtaOperationStatus(uint8_t **bufferPtr, taf_mrc_OtaOperationStatus_t value)
Definition: taf_mrc_messages.h:36