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 {
63 
64 //----------------------------------------------------------------------//
65 //- Common command reception operations -//
66 //----------------------------------------------------------------------//
67 
85 SbgErrorCode sbgEComReceiveAnyCmd(SbgEComHandle *pHandle, uint8 *pMsgClass, uint8 *pMsg, void *pData, size_t *pSize, size_t maxSize, uint32 timeOut);
86 
104 SbgErrorCode sbgEComReceiveCmd(SbgEComHandle *pHandle, uint8 msgClass, uint8 msg, void *pData, size_t *pSize, size_t maxSize, uint32 timeOut);
105 
106 //----------------------------------------------------------------------//
107 //- ACK related commands operations -//
108 //----------------------------------------------------------------------//
109 
118 SbgErrorCode sbgEComWaitForAck(SbgEComHandle *pHandle, uint8 msgClass, uint8 msg, uint32 timeOut);
119 
128 SbgErrorCode sbgEComSendAck(SbgEComHandle *pHandle, uint8 msgClass, uint8 msg, SbgErrorCode cmdError);
129 
130 //----------------------------------------------------------------------//
131 //- Generic command definitions -//
132 //----------------------------------------------------------------------//
133 
142 SbgErrorCode sbgEComCmdGenericSetModelId(SbgEComHandle *pHandle, uint8 msgClass, uint8 msg, uint32 modelId);
143 
153 
154 #endif
unsigned int uint32
Definition: sbgTypes.h:58
SbgErrorCode sbgEComSendAck(SbgEComHandle *pHandle, uint8 msgClass, uint8 msg, SbgErrorCode cmdError)
SbgErrorCode sbgEComReceiveCmd(SbgEComHandle *pHandle, uint8 msgClass, uint8 msg, void *pData, size_t *pSize, size_t maxSize, uint32 timeOut)
enum _SbgEComRejectionMode SbgEComRejectionMode
SbgErrorCode sbgEComCmdGenericGetModelInfo(SbgEComHandle *pHandle, uint8 msgClass, uint8 msg, SbgEComModelInfo *pModelInfo)
SbgErrorCode sbgEComReceiveAnyCmd(SbgEComHandle *pHandle, uint8 *pMsgClass, uint8 *pMsg, void *pData, size_t *pSize, size_t maxSize, uint32 timeOut)
_SbgEComAxisDirection
struct _SbgEComModelInfo SbgEComModelInfo
enum _SbgEComAxisDirection SbgEComAxisDirection
unsigned char uint8
Definition: sbgTypes.h:56
SbgErrorCode sbgEComWaitForAck(SbgEComHandle *pHandle, uint8 msgClass, uint8 msg, uint32 timeOut)
enum _SbgErrorCode SbgErrorCode
SbgErrorCode sbgEComCmdGenericSetModelId(SbgEComHandle *pHandle, uint8 msgClass, uint8 msg, uint32 modelId)


sbg_driver
Author(s):
autogenerated on Sun Jan 27 2019 03:42:20