sbgECom Library  5.2.590-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
96SbgErrorCode sbgEComReceiveAnyCmd(SbgEComHandle *pHandle, uint8_t *pMsgClass, uint8_t *pMsgId, void *pData, size_t *pSize, size_t maxSize, uint32_t timeOut);
97
121SbgErrorCode sbgEComReceiveAnyCmd2(SbgEComHandle *pHandle, uint8_t *pMsgClass, uint8_t *pMsgId, SbgEComProtocolPayload *pPayload, uint32_t timeOut);
122
143SbgErrorCode sbgEComReceiveCmd(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msgId, void *pData, size_t *pSize, size_t maxSize, uint32_t timeOut);
144
171SbgErrorCode sbgEComReceiveCmd2(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msgId, SbgEComProtocolPayload *pPayload, uint32_t timeOut);
172
173//----------------------------------------------------------------------//
174//- ACK related commands operations -//
175//----------------------------------------------------------------------//
176
186SbgErrorCode sbgEComWaitForAck(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t timeOut);
187
197SbgErrorCode sbgEComSendAck(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, SbgErrorCode cmdError);
198
199//----------------------------------------------------------------------//
200//- Generic command definitions -//
201//----------------------------------------------------------------------//
202
212SbgErrorCode sbgEComCmdGenericSetModelId(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t modelId);
213
223SbgErrorCode 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.
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