sbgECom Library  4.0.1987-stable
C library to interface SBG Systems IMU/AHRS/INS
sbgEComCmdCommon.h
Go to the documentation of this file.
1 
33 #ifndef SBG_ECOM_CMD_COMMON_H
34 #define SBG_ECOM_CMD_COMMON_H
35 
36 // sbgCommonLib headers
37 #include <sbgCommon.h>
38 
39 // Project headers
40 #include <sbgECom.h>
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 //----------------------------------------------------------------------//
47 //- Definitions -//
48 //----------------------------------------------------------------------//
49 
50 #define SBG_ECOM_DEFAULT_CMD_TIME_OUT (500)
56 {
61 
66 {
74 
75 //----------------------------------------------------------------------//
76 //- Common command reception operations -//
77 //----------------------------------------------------------------------//
78 
96 SbgErrorCode sbgEComReceiveAnyCmd(SbgEComHandle *pHandle, uint8_t *pMsgClass, uint8_t *pMsgId, void *pData, size_t *pSize, size_t maxSize, uint32_t timeOut);
97 
121 SbgErrorCode sbgEComReceiveAnyCmd2(SbgEComHandle *pHandle, uint8_t *pMsgClass, uint8_t *pMsgId, SbgEComProtocolPayload *pPayload, uint32_t timeOut);
122 
143 SbgErrorCode sbgEComReceiveCmd(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msgId, void *pData, size_t *pSize, size_t maxSize, uint32_t timeOut);
144 
171 SbgErrorCode sbgEComReceiveCmd2(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msgId, SbgEComProtocolPayload *pPayload, uint32_t timeOut);
172 
173 //----------------------------------------------------------------------//
174 //- ACK related commands operations -//
175 //----------------------------------------------------------------------//
176 
186 SbgErrorCode sbgEComWaitForAck(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t timeOut);
187 
197 SbgErrorCode sbgEComSendAck(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, SbgErrorCode cmdError);
198 
199 //----------------------------------------------------------------------//
200 //- Generic command definitions -//
201 //----------------------------------------------------------------------//
202 
212 SbgErrorCode sbgEComCmdGenericSetModelId(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t modelId);
213 
223 SbgErrorCode sbgEComCmdGenericGetModelId(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t *pModelId);
224 
225 #ifdef __cplusplus
226 }
227 #endif
228 
229 #endif // SBG_ECOM_CMD_COMMON_H
Main header for the SBG Systems common C library.
Contains main sbgECom methods.
SbgErrorCode sbgEComReceiveCmd(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msgId, void *pData, size_t *pSize, size_t maxSize, uint32_t timeOut)
SbgErrorCode sbgEComReceiveAnyCmd(SbgEComHandle *pHandle, uint8_t *pMsgClass, uint8_t *pMsgId, void *pData, size_t *pSize, size_t maxSize, uint32_t timeOut)
enum _SbgEComAxisDirection SbgEComAxisDirection
SbgErrorCode sbgEComWaitForAck(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t timeOut)
_SbgEComRejectionMode
Definition: sbgEComCmdCommon.h:56
@ SBG_ECOM_AUTOMATIC_MODE
Definition: sbgEComCmdCommon.h:58
@ SBG_ECOM_ALWAYS_ACCEPT_MODE
Definition: sbgEComCmdCommon.h:59
@ SBG_ECOM_NEVER_ACCEPT_MODE
Definition: sbgEComCmdCommon.h:57
enum _SbgEComRejectionMode SbgEComRejectionMode
SbgErrorCode sbgEComReceiveCmd2(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msgId, SbgEComProtocolPayload *pPayload, uint32_t timeOut)
SbgErrorCode sbgEComCmdGenericSetModelId(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t modelId)
SbgErrorCode sbgEComCmdGenericGetModelId(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t *pModelId)
_SbgEComAxisDirection
Definition: sbgEComCmdCommon.h:66
@ SBG_ECOM_ALIGNMENT_DOWN
Definition: sbgEComCmdCommon.h:72
@ SBG_ECOM_ALIGNMENT_RIGHT
Definition: sbgEComCmdCommon.h:70
@ SBG_ECOM_ALIGNMENT_BACKWARD
Definition: sbgEComCmdCommon.h:68
@ SBG_ECOM_ALIGNMENT_FORWARD
Definition: sbgEComCmdCommon.h:67
@ SBG_ECOM_ALIGNMENT_UP
Definition: sbgEComCmdCommon.h:71
@ SBG_ECOM_ALIGNMENT_LEFT
Definition: sbgEComCmdCommon.h:69
SbgErrorCode sbgEComReceiveAnyCmd2(SbgEComHandle *pHandle, uint8_t *pMsgClass, uint8_t *pMsgId, SbgEComProtocolPayload *pPayload, uint32_t timeOut)
SbgErrorCode sbgEComSendAck(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, SbgErrorCode cmdError)
enum _SbgErrorCode SbgErrorCode
Definition: sbgECom.h:88
Definition: sbgEComProtocol.h:112