sbgECom Library  5.4.1684-stable
Interface SBG Systems IMU/AHRS/INS
Loading...
Searching...
No Matches
sbgEComLogMag.h
Go to the documentation of this file.
1
32
33#ifndef SBG_ECOM_LOG_MAG_H
34#define SBG_ECOM_LOG_MAG_H
35
36// sbgCommonLib headers
37#include <sbgCommon.h>
39
40// Project headers
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47//----------------------------------------------------------------------//
48//- Log magnetometers status definitions -//
49//----------------------------------------------------------------------//
50
54#define SBG_ECOM_MAG_MAG_X_BIT (0x00000001u << 0)
55#define SBG_ECOM_MAG_MAG_Y_BIT (0x00000001u << 1)
56#define SBG_ECOM_MAG_MAG_Z_BIT (0x00000001u << 2)
57
58#define SBG_ECOM_MAG_ACCEL_X_BIT (0x00000001u << 3)
59#define SBG_ECOM_MAG_ACCEL_Y_BIT (0x00000001u << 4)
60#define SBG_ECOM_MAG_ACCEL_Z_BIT (0x00000001u << 5)
61
62#define SBG_ECOM_MAG_MAGS_IN_RANGE (0x00000001u << 6)
63#define SBG_ECOM_MAG_ACCELS_IN_RANGE (0x00000001u << 7)
64
65#define SBG_ECOM_MAG_CALIBRATION_OK (0x00000001u << 8)
66
67//----------------------------------------------------------------------//
68//- Log structure definitions -//
69//----------------------------------------------------------------------//
70
77typedef struct _SbgEComLogMag
78{
79 uint32_t timeStamp;
80 uint16_t status;
81 float magnetometers[3];
82 float accelerometers[3];
84
85//----------------------------------------------------------------------//
86//- Public methods -//
87//----------------------------------------------------------------------//
88
97
106
107//----------------------------------------------------------------------//
108//- Public setters/getters -//
109//----------------------------------------------------------------------//
110
118
126
127//----------------------------------------------------------------------//
128//- DEPRECATED - Used for backward compatibility -//
129//----------------------------------------------------------------------//
130
131SBG_DEPRECATED_TYPEDEF(typedef struct _SbgEComLogMag SbgLogMag);
132
133SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogParseMagData(SbgStreamBuffer *pStreamBuffer, SbgEComLogMag *pLogData));
134SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogWriteMagData(SbgStreamBuffer *pStreamBuffer, const SbgEComLogMag *pLogData));
135
136#ifdef __cplusplus
137}
138#endif
139
140#endif // SBG_ECOM_LOG_MAG_H
Main header for the SBG Systems common C library.
#define SBG_DEPRECATED(func)
Definition sbgDefines.h:316
#define SBG_DEPRECATED_TYPEDEF(decl)
Definition sbgDefines.h:349
Common enumeration and definitions for aiding data.
enum _SbgEComAidingTimeType SbgEComAidingTimeType
struct _SbgEComLogMag SbgEComLogMag
SbgEComAidingTimeType sbgEComLogMagGetTimeType(const SbgEComLogMag *pLogData)
SbgErrorCode sbgEComLogMagWriteToStream(const SbgEComLogMag *pLogData, SbgStreamBuffer *pStreamBuffer)
SbgErrorCode sbgEComLogMagReadFromStream(SbgEComLogMag *pLogData, SbgStreamBuffer *pStreamBuffer)
void sbgEComLogMagSetTimeType(SbgEComLogMag *pLogData, SbgEComAidingTimeType timeType)
enum _SbgErrorCode SbgErrorCode
Used to read/write data from/to a memory buffer stream.
struct _SbgStreamBuffer SbgStreamBuffer
Definition sbgEComLogMag.h:78
float magnetometers[3]
Definition sbgEComLogMag.h:81
uint16_t status
Definition sbgEComLogMag.h:80
uint32_t timeStamp
Definition sbgEComLogMag.h:79
float accelerometers[3]
Definition sbgEComLogMag.h:82