sbgECom Library
4.0.1987-stable
C library to interface SBG Systems IMU/AHRS/INS
|
#include <sbgEComProtocol.h>
Data Fields | |
SbgInterface * | pLinkedInterface |
uint8_t | rxBuffer [SBG_ECOM_MAX_BUFFER_SIZE] |
size_t | rxBufferSize |
size_t | discardSize |
uint8_t | nextLargeTxId |
SbgEComProtocolFrameCb | pReceiveFrameCb |
void * | pUserArg |
uint8_t * | pLargeBuffer |
size_t | largeBufferSize |
uint8_t | msgClass |
uint8_t | msgId |
uint8_t | transferId |
uint16_t | pageIndex |
uint16_t | nrPages |
Struct containing all protocol related data.
The member variables related to large transfers are valid if and only if the large buffer is valid.
SbgInterface* _SbgEComProtocol::pLinkedInterface |
Associated interface used by the protocol to read/write bytes.
uint8_t _SbgEComProtocol::rxBuffer[SBG_ECOM_MAX_BUFFER_SIZE] |
The reception buffer.
size_t _SbgEComProtocol::rxBufferSize |
The current reception buffer size in bytes.
size_t _SbgEComProtocol::discardSize |
Number of bytes to discard on the next receive attempt.
uint8_t _SbgEComProtocol::nextLargeTxId |
Transfer ID of the next large send.
SbgEComProtocolFrameCb _SbgEComProtocol::pReceiveFrameCb |
Optional callback used to intercept any received sbgECom frame.
void* _SbgEComProtocol::pUserArg |
Optional user supplied argument for the callback.
uint8_t* _SbgEComProtocol::pLargeBuffer |
Buffer for large transfers, allocated with malloc() if valid.
size_t _SbgEComProtocol::largeBufferSize |
Size of the large transfer buffer, in bytes.
uint8_t _SbgEComProtocol::msgClass |
Message class for the current large transfer.
uint8_t _SbgEComProtocol::msgId |
Message ID for the current large transfer.
uint8_t _SbgEComProtocol::transferId |
ID of the current large transfer.
uint16_t _SbgEComProtocol::pageIndex |
Expected page index of the next frame.
uint16_t _SbgEComProtocol::nrPages |
Number of pages in the current transfer.