Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_therm_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_THERM_MESSAGES_H_INCLUDE_GUARD
12 #define TAF_THERM_MESSAGES_H_INCLUDE_GUARD
13 
14 
15 #include "taf_therm_common.h"
16 
17 #define _MAX_MSG_SIZE IFGEN_TAF_THERM_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_therm_AddTripEventHandler 0
28 #define _MSGID_taf_therm_RemoveTripEventHandler 1
29 #define _MSGID_taf_therm_AddCoolingLevelChangeEventHandler 2
30 #define _MSGID_taf_therm_RemoveCoolingLevelChangeEventHandler 3
31 #define _MSGID_taf_therm_GetThermalZonesList 4
32 #define _MSGID_taf_therm_GetThermalZonesListSize 5
33 #define _MSGID_taf_therm_GetFirstThermalZone 6
34 #define _MSGID_taf_therm_GetNextThermalZone 7
35 #define _MSGID_taf_therm_GetFirstTripPoint 8
36 #define _MSGID_taf_therm_GetNextTripPoint 9
37 #define _MSGID_taf_therm_GetFirstBoundCDev 10
38 #define _MSGID_taf_therm_GetNextBoundCDev 11
39 #define _MSGID_taf_therm_GetFirstBoundTripPoint 12
40 #define _MSGID_taf_therm_GetNextBoundTripPoint 13
41 #define _MSGID_taf_therm_GetThermalZoneID 14
42 #define _MSGID_taf_therm_GetThermalZoneType 15
43 #define _MSGID_taf_therm_GetThermalZoneCurrentTemp 16
44 #define _MSGID_taf_therm_GetThermalZonePassiveTemp 17
45 #define _MSGID_taf_therm_GetTripPointListSize 18
46 #define _MSGID_taf_therm_GetBoundCoolingDeviceListSize 19
47 #define _MSGID_taf_therm_GetTripPointType 20
48 #define _MSGID_taf_therm_GetTripPointThreshold 21
49 #define _MSGID_taf_therm_GetTripPointHysterisis 22
50 #define _MSGID_taf_therm_GetTripPointTripID 23
51 #define _MSGID_taf_therm_GetTripPointThermalZoneID 24
52 #define _MSGID_taf_therm_GetBoundCoolingId 25
53 #define _MSGID_taf_therm_GetBoundTripPointListSize 26
54 #define _MSGID_taf_therm_GetBoundTripPointType 27
55 #define _MSGID_taf_therm_GetBoundTripPointThreshold 28
56 #define _MSGID_taf_therm_GetBoundTripPointHysterisis 29
57 #define _MSGID_taf_therm_GetBoundTripPointTripID 30
58 #define _MSGID_taf_therm_GetBoundTripPointThermalZoneID 31
59 #define _MSGID_taf_therm_DeleteThermalZoneList 32
60 #define _MSGID_taf_therm_GetCoolingDeviceList 33
61 #define _MSGID_taf_therm_GetCoolingDeviceListSize 34
62 #define _MSGID_taf_therm_GetFirstCoolingDevice 35
63 #define _MSGID_taf_therm_GetNextCoolingDevice 36
64 #define _MSGID_taf_therm_GetCDevID 37
65 #define _MSGID_taf_therm_GetCDevDescription 38
66 #define _MSGID_taf_therm_GetCDevMaxCoolingLevel 39
67 #define _MSGID_taf_therm_GetCDevCurrentCoolingLevel 40
68 #define _MSGID_taf_therm_DeleteCoolingDeviceList 41
69 #define _MSGID_taf_therm_GetThermalZoneByName 42
70 #define _MSGID_taf_therm_GetCoolingDeviceByName 43
71 #define _MSGID_taf_therm_ReleaseTripEventRef 44
72 #define _MSGID_taf_therm_ReleaseCoolingDeviceRef 45
73 #define _MSGID_taf_therm_ReleaseThermalZoneRef 46
74 
75 
76 // Define type-safe pack/unpack functions for all enums, including included types
77 
78 static inline bool taf_therm_PackTripType
79 (
80  uint8_t **bufferPtr,
82 )
83 {
84  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
85 }
86 
87 static inline bool taf_therm_UnpackTripType
88 (
89  uint8_t **bufferPtr,
90  taf_therm_TripType_t* valuePtr
91 )
92 {
93  bool result;
94  uint32_t value = 0;
95  result = le_pack_UnpackUint32(bufferPtr, &value);
96  if (result)
97  {
98  *valuePtr = (taf_therm_TripType_t)value;
99  }
100  return result;
101 }
102 
103 static inline bool taf_therm_PackTripEventType
104 (
105  uint8_t **bufferPtr,
107 )
108 {
109  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
110 }
111 
112 static inline bool taf_therm_UnpackTripEventType
113 (
114  uint8_t **bufferPtr,
115  taf_therm_TripEventType_t* valuePtr
116 )
117 {
118  bool result;
119  uint32_t value = 0;
120  result = le_pack_UnpackUint32(bufferPtr, &value);
121  if (result)
122  {
123  *valuePtr = (taf_therm_TripEventType_t)value;
124  }
125  return result;
126 }
127 
128 // Define pack/unpack functions for all structures, including included types
129 
130 
131 #endif // TAF_THERM_MESSAGES_H_INCLUDE_GUARD
static bool taf_therm_UnpackTripType(uint8_t **bufferPtr, taf_therm_TripType_t *valuePtr)
Definition: taf_therm_messages.h:88
static bool taf_therm_PackTripType(uint8_t **bufferPtr, taf_therm_TripType_t value)
Definition: taf_therm_messages.h:79
_Message_t
Definition: taf_therm_messages.h:25
static bool taf_therm_PackTripEventType(uint8_t **bufferPtr, taf_therm_TripEventType_t value)
Definition: taf_therm_messages.h:104
static bool taf_therm_UnpackTripEventType(uint8_t **bufferPtr, taf_therm_TripEventType_t *valuePtr)
Definition: taf_therm_messages.h:113
LE_DECLARE_INLINE bool le_pack_UnpackUint32(uint8_t **bufferPtr, uint32_t *valuePtr)
Definition: le_pack.h:1205
taf_therm_TripEventType_t
Definition: taf_therm_common.h:113
struct __attribute__((packed))
Definition: taf_therm_messages.h:20
taf_therm_TripType_t
Definition: taf_therm_common.h:89
LE_DECLARE_INLINE bool le_pack_PackUint32(uint8_t **bufferPtr, uint32_t value)
Definition: le_pack.h:205
#define _MAX_MSG_SIZE
Definition: taf_therm_messages.h:17