Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_someipDef_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_SOMEIPDEF_MESSAGES_H_INCLUDE_GUARD
12 #define TAF_SOMEIPDEF_MESSAGES_H_INCLUDE_GUARD
13 
14 
15 #include "taf_someipDef_common.h"
16 
17 #define _MAX_MSG_SIZE IFGEN_TAF_SOMEIPDEF_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 
28 
29 // Define type-safe pack/unpack functions for all enums, including included types
30 
31 static inline bool taf_someipDef_PackEventType
32 (
33  uint8_t **bufferPtr,
35 )
36 {
37  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
38 }
39 
40 static inline bool taf_someipDef_UnpackEventType
41 (
42  uint8_t **bufferPtr,
44 )
45 {
46  bool result;
47  uint32_t value = 0;
48  result = le_pack_UnpackUint32(bufferPtr, &value);
49  if (result)
50  {
51  *valuePtr = (taf_someipDef_EventType_t)value;
52  }
53  return result;
54 }
55 
56 // Define pack/unpack functions for all structures, including included types
57 
58 
59 #endif // TAF_SOMEIPDEF_MESSAGES_H_INCLUDE_GUARD
struct __attribute__((packed))
Definition: taf_someipDef_messages.h:20
static bool taf_someipDef_UnpackEventType(uint8_t **bufferPtr, taf_someipDef_EventType_t *valuePtr)
Definition: taf_someipDef_messages.h:41
#define _MAX_MSG_SIZE
Definition: taf_someipDef_messages.h:17
_Message_t
Definition: taf_someipDef_messages.h:25
LE_DECLARE_INLINE bool le_pack_UnpackUint32(uint8_t **bufferPtr, uint32_t *valuePtr)
Definition: le_pack.h:1205
static bool taf_someipDef_PackEventType(uint8_t **bufferPtr, taf_someipDef_EventType_t value)
Definition: taf_someipDef_messages.h:32
taf_someipDef_EventType_t
Definition: taf_someipDef_common.h:171
LE_DECLARE_INLINE bool le_pack_PackUint32(uint8_t **bufferPtr, uint32_t value)
Definition: le_pack.h:205