sbgEComIds.h
Go to the documentation of this file.
1 
27 #ifndef __SBG_ECOM_IDS_H__
28 #define __SBG_ECOM_IDS_H__
29 
30 //----------------------------------------------------------------------//
31 //- Macro definitions -//
32 //----------------------------------------------------------------------//
33 
37 #define SBG_ECOM_BUILD_ID(classId, logId) (((uint16)classId << 8) | (uint8)logId)
38 
39 //----------------------------------------------------------------------//
40 //- Definition of all class id for sbgECom -//
41 //----------------------------------------------------------------------//
42 
46 typedef enum _SbgEComClass
47 {
59 } SbgEComClass;
60 
61 //----------------------------------------------------------------------//
62 //- Definition of all messages id for sbgECom -//
63 //----------------------------------------------------------------------//
64 
68 typedef enum _SbgEComLog
69 {
115 } SbgEComLog;
116 
120 typedef enum _SbgEComLog1MsgId
121 {
124 } SbgEComLog1;
125 
129 typedef enum _SbgEComNmeaLog
130 {
141 
145 typedef enum _SbgEComIdNmea1Log
146 {
159 
164 {
176 
180 typedef enum _SbgEComCmd
181 {
182  /* Acknowledge */
185  /* Special settings commands */
190  /* Device info */
193  /* Sensor parameters */
200  /* Magnetometer configuration */
206  /* Magnetometer onboard calibration */
210  /* GNSS configuration */
216  /* Odometer configuration */
221  /* Interfaces configuration */
226  /* Events configuration */
230  /* Output configuration */
235  /* Avanced configuration */
238  /* Features related commands */
241  /* Licenses related commands */
244  /* Message class output switch */
247  /* Ethernet configuration */
251  /* Misc. */
253 } SbgEComCmd;
254 
258 typedef union _SbgEComUnifiedId
259 {
267 
273 
279 
280 //----------------------------------------------------------------------//
281 //- Inline helpers for log IDs -//
282 //----------------------------------------------------------------------//
283 
290 {
291  //
292  // Test if this class id is part of the enum
293  //
294  if ( (msgClass == SBG_ECOM_CLASS_LOG_ECOM_0) || (msgClass == SBG_ECOM_CLASS_LOG_ECOM_1) )
295  {
296  return TRUE;
297  }
298  else
299  {
300  return FALSE;
301  }
302 }
303 
304 
311 {
312  //
313  // Test if this command id is part of the enum
314  // TODO Improve that test!!
315  //
316  if ( (cmdId >= SBG_ECOM_LOG_STATUS) && (cmdId <= SBG_ECOM_LOG_DEBUG_0) )
317  {
318  return TRUE;
319  }
320  else
321  {
322  return FALSE;
323  }
324 }
325 
326 #endif /* __SBG_ECOM_CMDS_H__ */
SBG_INLINE bool sbgEComBinaryLogIsCmdValid(uint16 cmdId)
Definition: sbgEComIds.h:310
enum _SbgEComLog SbgEComLog
enum _SbgEComCmd SbgEComCmd
_SbgEComNmeaLog
Definition: sbgEComIds.h:129
enum _SbgEComIdNmea1Log SbgEComIdNmea1Log
SbgEComIdThirdParty thirdPartyId
Definition: sbgEComIds.h:264
#define TRUE
Definition: sbgDefines.h:39
_SbgEComLog1MsgId
Definition: sbgEComIds.h:120
union _SbgEComUnifiedId SbgEComUnifiedId
SbgEComCmd eComCmd
Definition: sbgEComIds.h:265
uint16 SbgEComCmdId
Definition: sbgEComIds.h:272
enum _SbgEComIdThirdParty SbgEComIdThirdParty
#define SBG_INLINE
Definition: sbgDefines.h:94
_SbgEComIdThirdParty
Definition: sbgEComIds.h:163
uint8 SbgEComMsgId
Definition: sbgEComIds.h:278
enum _SbgEComNmeaLog SbgEComNmeaLog
_SbgEComIdNmea1Log
Definition: sbgEComIds.h:145
SbgEComIdNmea1Log nmea1Id
Definition: sbgEComIds.h:263
SbgEComLog eComLog
Definition: sbgEComIds.h:260
unsigned char uint8
Definition: sbgTypes.h:56
_SbgEComCmd
Definition: sbgEComIds.h:180
SbgEComNmeaLog nmeaId
Definition: sbgEComIds.h:262
_SbgEComClass
Definition: sbgEComIds.h:46
enum _SbgEComClass SbgEComClass
SBG_INLINE bool sbgEComMsgClassIsALog(SbgEComClass msgClass)
Definition: sbgEComIds.h:289
#define FALSE
Definition: sbgDefines.h:35
enum _SbgEComLog1MsgId SbgEComLog1
unsigned short uint16
Definition: sbgTypes.h:57
_SbgEComLog
Definition: sbgEComIds.h:68
SbgEComLog1 eCom1Log
Definition: sbgEComIds.h:261


sbg_driver
Author(s):
autogenerated on Sun Jan 27 2019 03:42:20