Main header for the SBG Systems common C library.
Defines all sbgECom commands identifiers.
SbgErrorCode sbgEComHandle(SbgEComHandle *pHandle)
SbgErrorCode sbgEComInit(SbgEComHandle *pHandle, SbgInterface *pInterface)
void sbgEComSetReceiveLogCallback(SbgEComHandle *pHandle, SbgEComReceiveLogFunc pReceiveLogCallback, void *pUserArg)
SbgErrorCode(* SbgEComReceiveLogFunc)(SbgEComHandle *pHandle, SbgEComClass msgClass, SbgEComMsgId msg, const SbgEComLogUnion *pLogData, void *pUserArg)
Definition: sbgECom.h:78
void sbgEComErrorToString(SbgErrorCode errorCode, char errorMsg[256])
SbgErrorCode sbgEComHandleOneLog(SbgEComHandle *pHandle)
SbgErrorCode sbgEComClose(SbgEComHandle *pHandle)
void sbgEComSetCmdTrialsAndTimeOut(SbgEComHandle *pHandle, uint32_t numTrials, uint32_t cmdDefaultTimeOut)
SbgErrorCode sbgEComPurgeIncoming(SbgEComHandle *pHandle)
Defines all sbgECom commands identifiers.
uint8_t SbgEComMsgId
Definition: sbgEComIds.h:318
enum _SbgEComClass SbgEComClass
Parse incoming sbgECom logs and store result in an union.
Implementation of the sbgECom binary communication protocol.
enum _SbgErrorCode SbgErrorCode
This file implements the base interface for all Serial and Ethernet ports.
uint32_t numTrials
Definition: sbgECom.h:94
SbgEComProtocol protocolHandle
Definition: sbgECom.h:89
SbgEComReceiveLogFunc pReceiveLogCallback
Definition: sbgECom.h:91
uint32_t cmdDefaultTimeOut
Definition: sbgECom.h:95
void * pUserArg
Definition: sbgECom.h:92
Definition: sbgEComProtocol.h:124
Definition: sbgInterface.h:193
Definition: sbgEComLog.h:80