sbgECom Library  6.0.4661-stable
Interface SBG Systems IMU/AHRS/INS
Loading...
Searching...
No Matches
sbgEComCmdCommon.h
Go to the documentation of this file.
1
32
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
43extern "C" {
44#endif
45
46//----------------------------------------------------------------------//
47//- Definitions -//
48//----------------------------------------------------------------------//
49
50#define SBG_ECOM_DEFAULT_CMD_TIME_OUT (500)
51
61
74
75//----------------------------------------------------------------------//
76//- Common command reception operations -//
77//----------------------------------------------------------------------//
78
95SbgErrorCode sbgEComReceiveAnyCmd(SbgEComHandle *pHandle, uint8_t *pMsgClass, uint8_t *pMsgId, void *pData, size_t *pSize, size_t maxSize, uint32_t timeOut);
96
119SbgErrorCode sbgEComReceiveAnyCmd2(SbgEComHandle *pHandle, uint8_t *pMsgClass, uint8_t *pMsgId, SbgEComProtocolPayload *pPayload, uint32_t timeOut);
120
140SbgErrorCode sbgEComReceiveCmd(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msgId, void *pData, size_t *pSize, size_t maxSize, uint32_t timeOut);
141
168SbgErrorCode sbgEComReceiveCmd2(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msgId, SbgEComProtocolPayload *pPayload, uint32_t timeOut);
169
170//----------------------------------------------------------------------//
171//- ACK related commands operations -//
172//----------------------------------------------------------------------//
173
183SbgErrorCode sbgEComWaitForAck(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t timeOut);
184
194SbgErrorCode sbgEComSendAck(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, SbgErrorCode cmdError);
195
196//----------------------------------------------------------------------//
197//- Generic command definitions -//
198//----------------------------------------------------------------------//
199
209SbgErrorCode sbgEComCmdGenericSetModelId(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t modelId);
210
220SbgErrorCode sbgEComCmdGenericGetModelId(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t *pModelId);
221
222#ifdef __cplusplus
223}
224#endif
225
226#endif // SBG_ECOM_CMD_COMMON_H
Main header for the SBG Systems common C library.
Contains main sbgECom methods.
struct _SbgEComHandle SbgEComHandle
Definition sbgECom.h:62
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)
struct _SbgEComProtocolPayload SbgEComProtocolPayload
enum _SbgErrorCode SbgErrorCode