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_t)classId << 8) | (uint8_t)logId)
38 
39 //----------------------------------------------------------------------//
40 //- Definition of all class id for sbgECom -//
41 //----------------------------------------------------------------------//
42 
46 typedef enum _SbgEComClass
47 {
60 } SbgEComClass;
61 
62 //----------------------------------------------------------------------//
63 //- Definition of all messages id for sbgECom -//
64 //----------------------------------------------------------------------//
65 
69 typedef enum _SbgEComLog
70 {
128 } SbgEComLog;
129 
133 typedef enum _SbgEComLog1MsgId
134 {
137 } SbgEComLog1;
138 
142 typedef enum _SbgEComNmeaLog
143 {
154 
158 typedef enum _SbgEComIdNmea1Log
159 {
173 
178 {
192 
196 typedef enum _SbgEComCmd
197 {
198  /* Acknowledge */
201  /* Special settings commands */
206  /* Device info */
209  /* Sensor parameters */
215  /* Magnetometer configuration */
220  /* Magnetometer on-board calibration */
224  /* GNSS configuration */
230  /* Odometer configuration */
235  /* Interfaces configuration */
240  /* Events configuration */
244  /* Output configuration */
249  /* Advanced configuration */
252  /* Features related commands */
255  /* Licenses related commands */
258  /* Message class output switch */
261  /* Ethernet configuration */
265  /* Validity thresholds */
268  /* DVL configuration */
273  /* AirData configuration */
278  /* Odometer configuration (using CAN) */
281  /* Misc. */
283 } SbgEComCmd;
284 
289 typedef uint8_t SbgEComMsgId;
290 
291 //----------------------------------------------------------------------//
292 //- Inline helpers for log IDs -//
293 //----------------------------------------------------------------------//
294 
302 {
303  //
304  // Test if this class id is part of the enum
305  //
306  if ((msgClass == SBG_ECOM_CLASS_LOG_ECOM_0) || (msgClass == SBG_ECOM_CLASS_LOG_ECOM_1))
307  {
308  return TRUE;
309  }
310  else
311  {
312  return FALSE;
313  }
314 }
315 
316 #endif /* __SBG_ECOM_CMDS_H__ */
enum _SbgEComLog SbgEComLog
enum _SbgEComCmd SbgEComCmd
_SbgEComNmeaLog
Definition: sbgEComIds.h:142
enum _SbgEComIdNmea1Log SbgEComIdNmea1Log
#define TRUE
Definition: sbgDefines.h:77
_SbgEComLog1MsgId
Definition: sbgEComIds.h:133
enum _SbgEComIdThirdParty SbgEComIdThirdParty
#define SBG_INLINE
Definition: sbgDefines.h:186
_SbgEComIdThirdParty
Definition: sbgEComIds.h:177
enum _SbgEComNmeaLog SbgEComNmeaLog
uint8_t SbgEComMsgId
Definition: sbgEComIds.h:289
_SbgEComIdNmea1Log
Definition: sbgEComIds.h:158
_SbgEComCmd
Definition: sbgEComIds.h:196
_SbgEComClass
Definition: sbgEComIds.h:46
enum _SbgEComClass SbgEComClass
SBG_INLINE bool sbgEComMsgClassIsALog(SbgEComClass msgClass)
Definition: sbgEComIds.h:301
#define FALSE
Definition: sbgDefines.h:73
enum _SbgEComLog1MsgId SbgEComLog1
_SbgEComLog
Definition: sbgEComIds.h:69


sbg_driver
Author(s): SBG Systems
autogenerated on Sat Sep 3 2022 02:53:36