sbgECom Library  4.0.1987-stable
C library to interface SBG Systems IMU/AHRS/INS
sbgEComLogEvent.h File Reference

Parse event markers logs used to timestamp external signals. More...

Go to the source code of this file.

Data Structures

struct  _SbgEComLogEvent
 

Macros

#define SBG_ECOM_EVENT_OVERFLOW   (0x00000001u << 0)
 
#define SBG_ECOM_EVENT_OFFSET_0_VALID   (0x00000001u << 1)
 
#define SBG_ECOM_EVENT_OFFSET_1_VALID   (0x00000001u << 2)
 
#define SBG_ECOM_EVENT_OFFSET_2_VALID   (0x00000001u << 3)
 
#define SBG_ECOM_EVENT_OFFSET_3_VALID   (0x00000001u << 4)
 

Typedefs

typedef struct _SbgEComLogEvent SbgEComLogEvent
 

Functions

SbgErrorCode sbgEComLogEventReadFromStream (SbgEComLogEvent *pLogData, SbgStreamBuffer *pStreamBuffer)
 
SbgErrorCode sbgEComLogEventWriteToStream (const SbgEComLogEvent *pLogData, SbgStreamBuffer *pStreamBuffer)
 

Detailed Description

Parse event markers logs used to timestamp external signals.

Author
SBG Systems
Date
28 October 2013
License

The MIT license

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Macro Definition Documentation

◆ SBG_ECOM_EVENT_OVERFLOW

#define SBG_ECOM_EVENT_OVERFLOW   (0x00000001u << 0)

Log market events status mask definitions Set to 1 if we have received events at a higher rate than 1 kHz.

◆ SBG_ECOM_EVENT_OFFSET_0_VALID

#define SBG_ECOM_EVENT_OFFSET_0_VALID   (0x00000001u << 1)

Set to 1 if at least two events have been received.

◆ SBG_ECOM_EVENT_OFFSET_1_VALID

#define SBG_ECOM_EVENT_OFFSET_1_VALID   (0x00000001u << 2)

Set to 1 if at least three events have been received.

◆ SBG_ECOM_EVENT_OFFSET_2_VALID

#define SBG_ECOM_EVENT_OFFSET_2_VALID   (0x00000001u << 3)

Set to 1 if at least four events have been received.

◆ SBG_ECOM_EVENT_OFFSET_3_VALID

#define SBG_ECOM_EVENT_OFFSET_3_VALID   (0x00000001u << 4)

Set to 1 if at least five events have been received.

Typedef Documentation

◆ SbgEComLogEvent

Structure that stores data for the SBG_ECOM_LOG_EVENT_# message.

Function Documentation

◆ sbgEComLogEventReadFromStream()

SbgErrorCode sbgEComLogEventReadFromStream ( SbgEComLogEvent pLogData,
SbgStreamBuffer pStreamBuffer 
)

Parse data for the SBG_ECOM_LOG_EVENT_# message and fill the corresponding structure.

Parameters
[out]pLogDataLog structure instance to fill.
[in]pStreamBufferInput stream buffer to read the log from.
Returns
SBG_NO_ERROR if a valid log has been read from the stream buffer.

◆ sbgEComLogEventWriteToStream()

SbgErrorCode sbgEComLogEventWriteToStream ( const SbgEComLogEvent pLogData,
SbgStreamBuffer pStreamBuffer 
)

Write data for the SBG_ECOM_LOG_EVENT_# message to the output stream buffer from the provided structure.

Parameters
[in]pLogDataLog structure instance to write.
[out]pStreamBufferOutput stream buffer to write the log to.
Returns
SBG_NO_ERROR if the log has been written to the stream buffer.