sbgECom Library  5.5.2130-stable
Interface SBG Systems IMU/AHRS/INS
Loading...
Searching...
No Matches
sbgEComPager.h
Go to the documentation of this file.
1
32
33#ifndef SBG_ECOM_PAGER_H
34#define SBG_ECOM_PAGER_H
35
36// sbgCommonLib headers
37#include <sbgCommon.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//----------------------------------------------------------------------//
44//- Structure definitions -//
45//----------------------------------------------------------------------//
46
52typedef struct _SbgEComPager
53{
54 uint16_t nrPages;
55 uint16_t pageIndex;
56 size_t size;
57 uint8_t *pBuffer;
58 size_t bufferSize;
60
61//----------------------------------------------------------------------//
62//- Public functions -//
63//----------------------------------------------------------------------//
64
71
72
83SbgErrorCode sbgEComPagerInitForJoin(SbgEComPager *pPager, void *pBuffer, size_t bufferSize);
84
85
99SbgErrorCode sbgEComPagerJoin(SbgEComPager *pPager, uint16_t pageIndex, uint16_t nrPages, const void *pPage, size_t pageSize);
100
108
116
117#ifdef __cplusplus
118}
119#endif
120
121#endif // SBG_ECOM_PAGER_H
Main header for the SBG Systems common C library.
void sbgEComPagerZeroInit(SbgEComPager *pPager)
bool sbgEComPagerJoinIsComplete(const SbgEComPager *pPager)
SbgErrorCode sbgEComPagerInitForJoin(SbgEComPager *pPager, void *pBuffer, size_t bufferSize)
size_t sbgEComPagerGetBufferSize(const SbgEComPager *pPager)
struct _SbgEComPager SbgEComPager
SbgErrorCode sbgEComPagerJoin(SbgEComPager *pPager, uint16_t pageIndex, uint16_t nrPages, const void *pPage, size_t pageSize)
enum _SbgErrorCode SbgErrorCode
Definition sbgEComPager.h:53
size_t size
Definition sbgEComPager.h:56
uint16_t nrPages
Definition sbgEComPager.h:54
uint8_t * pBuffer
Definition sbgEComPager.h:57
uint16_t pageIndex
Definition sbgEComPager.h:55
size_t bufferSize
Definition sbgEComPager.h:58