Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_someipClnt_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_SOMEIPCLNT_MESSAGES_H_INCLUDE_GUARD
12 #define TAF_SOMEIPCLNT_MESSAGES_H_INCLUDE_GUARD
13 
14 
15 #include "taf_someipClnt_common.h"
16 
17 #define _MAX_MSG_SIZE IFGEN_TAF_SOMEIPCLNT_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_someipClnt_GetClientId 0
28 #define _MSGID_taf_someipClnt_GetClientIdEx 1
29 #define _MSGID_taf_someipClnt_RequestService 2
30 #define _MSGID_taf_someipClnt_RequestServiceEx 3
31 #define _MSGID_taf_someipClnt_ReleaseService 4
32 #define _MSGID_taf_someipClnt_GetState 5
33 #define _MSGID_taf_someipClnt_GetVersion 6
34 #define _MSGID_taf_someipClnt_AddStateChangeHandler 7
35 #define _MSGID_taf_someipClnt_RemoveStateChangeHandler 8
36 #define _MSGID_taf_someipClnt_CreateMsg 9
37 #define _MSGID_taf_someipClnt_SetNonRet 10
38 #define _MSGID_taf_someipClnt_SetReliable 11
39 #define _MSGID_taf_someipClnt_SetTimeout 12
40 #define _MSGID_taf_someipClnt_SetPayload 13
41 #define _MSGID_taf_someipClnt_DeleteMsg 14
42 #define _MSGID_taf_someipClnt_RequestResponse 15
43 #define _MSGID_taf_someipClnt_EnableEventGroup 16
44 #define _MSGID_taf_someipClnt_DisableEventGroup 17
45 #define _MSGID_taf_someipClnt_SubscribeEventGroup 18
46 #define _MSGID_taf_someipClnt_UnsubscribeEventGroup 19
47 #define _MSGID_taf_someipClnt_AddEventMsgHandler 20
48 #define _MSGID_taf_someipClnt_RemoveEventMsgHandler 21
49 
50 
51 // Define type-safe pack/unpack functions for all enums, including included types
52 
53 static inline bool taf_someipClnt_PackState
54 (
55  uint8_t **bufferPtr,
57 )
58 {
59  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
60 }
61 
62 static inline bool taf_someipClnt_UnpackState
63 (
64  uint8_t **bufferPtr,
65  taf_someipClnt_State_t* valuePtr
66 )
67 {
68  bool result;
69  uint32_t value = 0;
70  result = le_pack_UnpackUint32(bufferPtr, &value);
71  if (result)
72  {
73  *valuePtr = (taf_someipClnt_State_t)value;
74  }
75  return result;
76 }
77 
78 static inline bool taf_someipDef_PackEventType
79 (
80  uint8_t **bufferPtr,
82 )
83 {
84  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
85 }
86 
87 static inline bool taf_someipDef_UnpackEventType
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_someipDef_EventType_t)value;
99  }
100  return result;
101 }
102 
103 // Define pack/unpack functions for all structures, including included types
104 
105 
106 #endif // TAF_SOMEIPCLNT_MESSAGES_H_INCLUDE_GUARD
static bool taf_someipClnt_PackState(uint8_t **bufferPtr, taf_someipClnt_State_t value)
Definition: taf_someipClnt_messages.h:54
static bool taf_someipDef_PackEventType(uint8_t **bufferPtr, taf_someipDef_EventType_t value)
Definition: taf_someipClnt_messages.h:79
static bool taf_someipDef_UnpackEventType(uint8_t **bufferPtr, taf_someipDef_EventType_t *valuePtr)
Definition: taf_someipClnt_messages.h:88
#define _MAX_MSG_SIZE
Definition: taf_someipClnt_messages.h:17
_Message_t
Definition: taf_someipClnt_messages.h:25
LE_DECLARE_INLINE bool le_pack_UnpackUint32(uint8_t **bufferPtr, uint32_t *valuePtr)
Definition: le_pack.h:1205
struct __attribute__((packed))
Definition: taf_someipClnt_messages.h:20
static bool taf_someipClnt_UnpackState(uint8_t **bufferPtr, taf_someipClnt_State_t *valuePtr)
Definition: taf_someipClnt_messages.h:63
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
taf_someipClnt_State_t
Definition: taf_someipClnt_common.h:45