sbgECom Library  4.0.1987-stable
C library to interface SBG Systems IMU/AHRS/INS
sbgEComCmdApi.h
Go to the documentation of this file.
1 
33 #ifndef SBG_ECOM_CMD_API_H
34 #define SBG_ECOM_CMD_API_H
35 
36 // sbgCommonLib headers
37 #include <sbgCommon.h>
38 
39 // Project headers
40 #include <sbgECom.h>
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 //----------------------------------------------------------------------//
48 //- Structure definitions -//
49 //----------------------------------------------------------------------//
50 
58 typedef struct _SbgEComCmdApiReply
59 {
61  uint16_t statusCode;
62  const char *pContent;
64 
65 //----------------------------------------------------------------------//
66 //- Public methods -//
67 //----------------------------------------------------------------------//
68 
75 
82 
90 
102 SbgErrorCode sbgEComCmdApiGet(SbgEComHandle *pHandle, const char *pPath, const char *pQuery, SbgEComCmdApiReply *pReply);
103 
116 SbgErrorCode sbgEComCmdApiPost(SbgEComHandle *pHandle, const char *pPath, const char *pQuery, const char *pBody, SbgEComCmdApiReply *pReply);
117 
118 #ifdef __cplusplus
119 }
120 #endif
121 
122 #endif // SBG_ECOM_CMD_API_H
Main header for the SBG Systems common C library.
Contains main sbgECom methods.
SbgErrorCode sbgEComCmdApiGet(SbgEComHandle *pHandle, const char *pPath, const char *pQuery, SbgEComCmdApiReply *pReply)
bool sbgEComCmdApiReplySuccessful(const SbgEComCmdApiReply *pReply)
void sbgEComCmdApiReplyDestroy(SbgEComCmdApiReply *pReply)
struct _SbgEComCmdApiReply SbgEComCmdApiReply
SbgErrorCode sbgEComCmdApiPost(SbgEComHandle *pHandle, const char *pPath, const char *pQuery, const char *pBody, SbgEComCmdApiReply *pReply)
void sbgEComCmdApiReplyConstruct(SbgEComCmdApiReply *pReply)
Implementation of the sbgECom binary communication protocol.
enum _SbgErrorCode SbgErrorCode
Definition: sbgEComCmdApi.h:59
uint16_t statusCode
Definition: sbgEComCmdApi.h:61
SbgEComProtocolPayload payload
Definition: sbgEComCmdApi.h:60
const char * pContent
Definition: sbgEComCmdApi.h:62
Definition: sbgECom.h:88
Definition: sbgEComProtocol.h:112