sbgECom Library  5.3.2276-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
65
76SbgErrorCode sbgEComPagerInitForJoin(SbgEComPager *pPager, void *pBuffer, size_t bufferSize);
77
78
92SbgErrorCode sbgEComPagerJoin(SbgEComPager *pPager, uint16_t pageIndex, uint16_t nrPages, const void *pPage, size_t pageSize);
93
101
109
110#ifdef __cplusplus
111}
112#endif
113
114#endif // SBG_ECOM_PAGER_H
Main header for the SBG Systems common C library.
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