Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_someipSvr_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_SOMEIPSVR_MESSAGES_H_INCLUDE_GUARD
12 #define TAF_SOMEIPSVR_MESSAGES_H_INCLUDE_GUARD
13 
14 
15 #include "taf_someipSvr_common.h"
16 
17 #define _MAX_MSG_SIZE IFGEN_TAF_SOMEIPSVR_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_someipSvr_GetService 0
28 #define _MSGID_taf_someipSvr_GetServiceEx 1
29 #define _MSGID_taf_someipSvr_SetServiceVersion 2
30 #define _MSGID_taf_someipSvr_SetServicePort 3
31 #define _MSGID_taf_someipSvr_OfferService 4
32 #define _MSGID_taf_someipSvr_StopOfferService 5
33 #define _MSGID_taf_someipSvr_EnableEvent 6
34 #define _MSGID_taf_someipSvr_SetEventType 7
35 #define _MSGID_taf_someipSvr_SetEventCycleTime 8
36 #define _MSGID_taf_someipSvr_DisableEvent 9
37 #define _MSGID_taf_someipSvr_OfferEvent 10
38 #define _MSGID_taf_someipSvr_StopOfferEvent 11
39 #define _MSGID_taf_someipSvr_Notify 12
40 #define _MSGID_taf_someipSvr_AddRxMsgHandler 13
41 #define _MSGID_taf_someipSvr_RemoveRxMsgHandler 14
42 #define _MSGID_taf_someipSvr_AddSubscriptionHandler 15
43 #define _MSGID_taf_someipSvr_RemoveSubscriptionHandler 16
44 #define _MSGID_taf_someipSvr_GetServiceId 17
45 #define _MSGID_taf_someipSvr_GetMethodId 18
46 #define _MSGID_taf_someipSvr_GetClientId 19
47 #define _MSGID_taf_someipSvr_GetMsgType 20
48 #define _MSGID_taf_someipSvr_GetPayloadSize 21
49 #define _MSGID_taf_someipSvr_GetPayloadData 22
50 #define _MSGID_taf_someipSvr_SendResponse 23
51 #define _MSGID_taf_someipSvr_ReleaseRxMsg 24
52 
53 
54 // Define type-safe pack/unpack functions for all enums, including included types
55 
56 static inline bool taf_someipDef_PackEventType
57 (
58  uint8_t **bufferPtr,
60 )
61 {
62  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
63 }
64 
65 static inline bool taf_someipDef_UnpackEventType
66 (
67  uint8_t **bufferPtr,
69 )
70 {
71  bool result;
72  uint32_t value = 0;
73  result = le_pack_UnpackUint32(bufferPtr, &value);
74  if (result)
75  {
76  *valuePtr = (taf_someipDef_EventType_t)value;
77  }
78  return result;
79 }
80 
81 // Define pack/unpack functions for all structures, including included types
82 
83 
84 #endif // TAF_SOMEIPSVR_MESSAGES_H_INCLUDE_GUARD
#define _MAX_MSG_SIZE
Definition: taf_someipSvr_messages.h:17
static bool taf_someipDef_PackEventType(uint8_t **bufferPtr, taf_someipDef_EventType_t value)
Definition: taf_someipSvr_messages.h:57
LE_DECLARE_INLINE bool le_pack_UnpackUint32(uint8_t **bufferPtr, uint32_t *valuePtr)
Definition: le_pack.h:1205
static bool taf_someipDef_UnpackEventType(uint8_t **bufferPtr, taf_someipDef_EventType_t *valuePtr)
Definition: taf_someipSvr_messages.h:66
struct __attribute__((packed))
Definition: taf_someipSvr_messages.h:20
_Message_t
Definition: taf_someipSvr_messages.h:25
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