sbgECom Library  5.1.708-stable
Interface SBG Systems IMU/AHRS/INS
sbgEComLogPtp.h
Go to the documentation of this file.
1 
33 #ifndef SBG_ECOM_LOG_PTP_H
34 #define SBG_ECOM_LOG_PTP_H
35 
36 // sbgCommonLib headers
37 #include <sbgCommon.h>
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 //----------------------------------------------------------------------//
45 //- Enumeration definitions -//
46 //----------------------------------------------------------------------//
47 
53 typedef enum _SbgEComLogPtpState
54 {
60 
67 {
72 
73 //----------------------------------------------------------------------//
74 //- Log structure definitions -//
75 //----------------------------------------------------------------------//
76 
86 typedef struct _SbgEComLogPtp
87 {
88  uint32_t timeStamp;
91  double timeScaleOffset;
93  uint64_t localClockIdentity;
96  uint8_t localClockClass;
108  uint32_t masterIpAddress;
112  double clockOffset;
117 
118 //----------------------------------------------------------------------//
119 //- Public functions -//
120 //----------------------------------------------------------------------//
121 
128 
137 
146 
147 #ifdef __cplusplus
148 }
149 #endif
150 
151 #endif // SBG_ECOM_LOG_PTP_H
Main header for the SBG Systems common C library.
SbgErrorCode sbgEComLogPtpWriteToStream(const SbgEComLogPtp *pLogData, SbgStreamBuffer *pStreamBuffer)
SbgErrorCode sbgEComLogPtpReadFromStream(SbgEComLogPtp *pLogData, SbgStreamBuffer *pStreamBuffer)
struct _SbgEComLogPtp SbgEComLogPtp
void sbgEComLogPtpZeroInit(SbgEComLogPtp *pLogData)
enum _SbgEComLogPtpTimeScale SbgEComLogPtpTimeScale
enum _SbgEComLogPtpState SbgEComLogPtpState
_SbgEComLogPtpState
Definition: sbgEComLogPtp.h:54
@ SBG_ECOM_LOG_PTP_STATE_DISABLED
Definition: sbgEComLogPtp.h:55
@ SBG_ECOM_LOG_PTP_STATE_PASSIVE
Definition: sbgEComLogPtp.h:58
@ SBG_ECOM_LOG_PTP_STATE_MASTER
Definition: sbgEComLogPtp.h:57
@ SBG_ECOM_LOG_PTP_STATE_FAULTY
Definition: sbgEComLogPtp.h:56
_SbgEComLogPtpTimeScale
Definition: sbgEComLogPtp.h:67
@ SBG_ECOM_LOG_PTP_TIME_SCALE_GPS
Definition: sbgEComLogPtp.h:70
@ SBG_ECOM_LOG_PTP_TIME_SCALE_UTC
Definition: sbgEComLogPtp.h:69
@ SBG_ECOM_LOG_PTP_TIME_SCALE_TAI
Definition: sbgEComLogPtp.h:68
enum _SbgErrorCode SbgErrorCode
Used to read/write data from/to a memory buffer stream.
Definition: sbgEComLogPtp.h:87
uint8_t localClockPriority1
Definition: sbgEComLogPtp.h:94
float clockFreqOffsetStdDev
Definition: sbgEComLogPtp.h:115
uint8_t localClockClass
Definition: sbgEComLogPtp.h:96
float meanPathDelay
Definition: sbgEComLogPtp.h:110
uint16_t localClockLog2Variance
Definition: sbgEComLogPtp.h:98
uint8_t localClockAccuracy
Definition: sbgEComLogPtp.h:97
double timeScaleOffset
Definition: sbgEComLogPtp.h:91
float clockFreqOffset
Definition: sbgEComLogPtp.h:114
uint64_t localClockIdentity
Definition: sbgEComLogPtp.h:93
uint8_t localClockPriority2
Definition: sbgEComLogPtp.h:95
uint32_t timeStamp
Definition: sbgEComLogPtp.h:88
double clockOffset
Definition: sbgEComLogPtp.h:112
SbgEComLogPtpTimeScale timeScale
Definition: sbgEComLogPtp.h:90
float meanPathDelayStdDev
Definition: sbgEComLogPtp.h:111
uint16_t masterClockLog2Variance
Definition: sbgEComLogPtp.h:106
uint8_t localClockTimeSource
Definition: sbgEComLogPtp.h:99
float clockOffsetStdDev
Definition: sbgEComLogPtp.h:113
uint32_t masterIpAddress
Definition: sbgEComLogPtp.h:108
uint8_t masterClockAccuracy
Definition: sbgEComLogPtp.h:105
uint8_t masterClockPriority1
Definition: sbgEComLogPtp.h:102
uint64_t masterClockIdentity
Definition: sbgEComLogPtp.h:101
uint8_t masterClockClass
Definition: sbgEComLogPtp.h:104
SbgEComLogPtpState state
Definition: sbgEComLogPtp.h:89
uint8_t masterClockPriority2
Definition: sbgEComLogPtp.h:103
uint8_t masterClockTimeSource
Definition: sbgEComLogPtp.h:107
Definition: sbgStreamBufferCommon.h:201