sbgEComBinaryLogMag.h
Go to the documentation of this file.
1 
20 #ifndef __SBG_ECOM_BINARY_LOG_MAG_H__
21 #define __SBG_ECOM_BINARY_LOG_MAG_H__
22 
23 #include <sbgCommon.h>
25 
26 //----------------------------------------------------------------------//
27 //- Log magnetometers status definitions -//
28 //----------------------------------------------------------------------//
29 
33 #define SBG_ECOM_MAG_MAG_X_BIT (0x00000001u << 0)
34 #define SBG_ECOM_MAG_MAG_Y_BIT (0x00000001u << 1)
35 #define SBG_ECOM_MAG_MAG_Z_BIT (0x00000001u << 2)
37 #define SBG_ECOM_MAG_ACCEL_X_BIT (0x00000001u << 3)
38 #define SBG_ECOM_MAG_ACCEL_Y_BIT (0x00000001u << 4)
39 #define SBG_ECOM_MAG_ACCEL_Z_BIT (0x00000001u << 5)
41 #define SBG_ECOM_MAG_MAGS_IN_RANGE (0x00000001u << 6)
42 #define SBG_ECOM_MAG_ACCELS_IN_RANGE (0x00000001u << 7)
44 #define SBG_ECOM_MAG_CALIBRATION_OK (0x00000001u << 8)
46 //----------------------------------------------------------------------//
47 //- Log structure definitions -//
48 //----------------------------------------------------------------------//
49 
53 typedef struct _SbgLogMag
54 {
57  float magnetometers[3];
58  float accelerometers[3];
59 } SbgLogMag;
60 
64 typedef struct _SbgLogMagCalib
65 {
68  uint8 magData[16];
70 
71 //----------------------------------------------------------------------//
72 //- Operations -//
73 //----------------------------------------------------------------------//
74 
82 
89 SbgErrorCode sbgEComBinaryLogWriteMagData(SbgStreamBuffer *pOutputStream, const SbgLogMag *pInputData);
90 
98 
106 
107 #endif
struct _SbgLogMagCalib SbgLogMagCalib
SbgErrorCode sbgEComBinaryLogWriteMagCalibData(SbgStreamBuffer *pOutputStream, const SbgLogMagCalib *pInputData)
unsigned int uint32
Definition: sbgTypes.h:58
struct _SbgLogMag SbgLogMag
Used to read/write data from/to a memory buffer stream.
float accelerometers[3]
SbgErrorCode sbgEComBinaryLogParseMagCalibData(SbgStreamBuffer *pInputStream, SbgLogMagCalib *pOutputData)
float magnetometers[3]
SbgErrorCode sbgEComBinaryLogParseMagData(SbgStreamBuffer *pInputStream, SbgLogMag *pOutputData)
Main header file for SBG Systems common C library.
SbgErrorCode sbgEComBinaryLogWriteMagData(SbgStreamBuffer *pOutputStream, const SbgLogMag *pInputData)
unsigned char uint8
Definition: sbgTypes.h:56
unsigned short uint16
Definition: sbgTypes.h:57
enum _SbgErrorCode SbgErrorCode


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