Snapdragon® Telematics Application Framework (TelAF) Interface Specification
le_updateCtrl_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 LE_UPDATECTRL_MESSAGES_H_INCLUDE_GUARD
12 #define LE_UPDATECTRL_MESSAGES_H_INCLUDE_GUARD
13 
14 
15 #include "le_updateCtrl_common.h"
16 
17 #define _MAX_MSG_SIZE IFGEN_LE_UPDATECTRL_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_le_updateCtrl_Defer 0
28 #define _MSGID_le_updateCtrl_Allow 1
29 #define _MSGID_le_updateCtrl_LockProbation 2
30 #define _MSGID_le_updateCtrl_UnlockProbation 3
31 #define _MSGID_le_updateCtrl_MarkGood 4
32 #define _MSGID_le_updateCtrl_FailProbation 5
33 #define _MSGID_le_updateCtrl_GetSystemState 6
34 
35 
36 // Define type-safe pack/unpack functions for all enums, including included types
37 
38 static inline bool le_updateCtrl_PackSystemState
39 (
40  uint8_t **bufferPtr,
42 )
43 {
44  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
45 }
46 
47 static inline bool le_updateCtrl_UnpackSystemState
48 (
49  uint8_t **bufferPtr,
51 )
52 {
53  bool result;
54  uint32_t value = 0;
55  result = le_pack_UnpackUint32(bufferPtr, &value);
56  if (result)
57  {
58  *valuePtr = (le_updateCtrl_SystemState_t)value;
59  }
60  return result;
61 }
62 
63 // Define pack/unpack functions for all structures, including included types
64 
65 
66 #endif // LE_UPDATECTRL_MESSAGES_H_INCLUDE_GUARD
#define _MAX_MSG_SIZE
Definition: le_updateCtrl_messages.h:17
le_updateCtrl_SystemState_t
Definition: le_updateCtrl_common.h:26
static bool le_updateCtrl_PackSystemState(uint8_t **bufferPtr, le_updateCtrl_SystemState_t value)
Definition: le_updateCtrl_messages.h:39
LE_DECLARE_INLINE bool le_pack_UnpackUint32(uint8_t **bufferPtr, uint32_t *valuePtr)
Definition: le_pack.h:1205
struct __attribute__((packed))
Definition: le_updateCtrl_messages.h:20
static bool le_updateCtrl_UnpackSystemState(uint8_t **bufferPtr, le_updateCtrl_SystemState_t *valuePtr)
Definition: le_updateCtrl_messages.h:48
_Message_t
Definition: le_updateCtrl_messages.h:25
LE_DECLARE_INLINE bool le_pack_PackUint32(uint8_t **bufferPtr, uint32_t value)
Definition: le_pack.h:205