sbgEComCmdCommon.h
Go to the documentation of this file.
1 
20 #ifndef __SBG_ECOM_CMD_COMMON_H__
21 #define __SBG_ECOM_CMD_COMMON_H__
22 
23 #include "../sbgECom.h"
24 
25 //----------------------------------------------------------------------//
26 //- Defintions -//
27 //----------------------------------------------------------------------//
28 
29 #define SBG_ECOM_DEFAULT_CMD_TIME_OUT (500)
34 typedef enum _SbgEComRejectionMode
35 {
40 
45 {
53 
58 typedef struct _SbgEComModelInfo
59 {
60  uint32_t id;
61  uint32_t revision;
63 
64 //----------------------------------------------------------------------//
65 //- Common command reception operations -//
66 //----------------------------------------------------------------------//
67 
85 SbgErrorCode sbgEComReceiveAnyCmd(SbgEComHandle *pHandle, uint8_t *pMsgClass, uint8_t *pMsg, void *pData, size_t *pSize, size_t maxSize, uint32_t timeOut);
86 
104 SbgErrorCode sbgEComReceiveCmd(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, void *pData, size_t *pSize, size_t maxSize, uint32_t timeOut);
105 
106 //----------------------------------------------------------------------//
107 //- ACK related commands operations -//
108 //----------------------------------------------------------------------//
109 
119 SbgErrorCode sbgEComWaitForAck(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t timeOut);
120 
130 SbgErrorCode sbgEComSendAck(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, SbgErrorCode cmdError);
131 
132 //----------------------------------------------------------------------//
133 //- Generic command definitions -//
134 //----------------------------------------------------------------------//
135 
145 SbgErrorCode sbgEComCmdGenericSetModelId(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t modelId);
146 
156 SbgErrorCode sbgEComCmdGenericGetModelId(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t *pModelId);
157 
167 SbgErrorCode sbgEComCmdGenericGetModelInfo(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, SbgEComModelInfo *pModelInfo);
168 
169 #endif
enum _SbgEComRejectionMode SbgEComRejectionMode
_SbgEComAxisDirection
struct _SbgEComModelInfo SbgEComModelInfo
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)
SbgErrorCode sbgEComReceiveAnyCmd(SbgEComHandle *pHandle, uint8_t *pMsgClass, uint8_t *pMsg, void *pData, size_t *pSize, size_t maxSize, uint32_t timeOut)
SbgErrorCode sbgEComReceiveCmd(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, void *pData, size_t *pSize, size_t maxSize, uint32_t timeOut)
enum _SbgEComAxisDirection SbgEComAxisDirection
SbgErrorCode sbgEComCmdGenericGetModelInfo(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, SbgEComModelInfo *pModelInfo)
SbgErrorCode sbgEComSendAck(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, SbgErrorCode cmdError)
SbgErrorCode sbgEComWaitForAck(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, uint32_t timeOut)
enum _SbgErrorCode SbgErrorCode


sbg_driver
Author(s): SBG Systems
autogenerated on Sat Sep 3 2022 02:53:35