C API for BALTECH SDK
ar.h
Go to the documentation of this file.
1 
18 #ifndef __BRP_BALTECH_API_CMDS_AR_H__
19 #define __BRP_BALTECH_API_CMDS_AR_H__
20 #include "../typedefs.h"
25 #define BRP_AR_ErrNoMessage BRP_ERR_STATUS(0x0500, 0x01)
26 
30 #define BRP_AR_ErrScriptRuntime BRP_ERR_STATUS(0x0500, 0x02)
31 
35 #define BRP_AR_ErrScriptSyntax BRP_ERR_STATUS(0x0500, 0x03)
36 
41 #define BRP_AR_ErrScriptNotImplemented BRP_ERR_STATUS(0x0500, 0x04)
42 
46 #define BRP_AR_ErrArDisabled BRP_ERR_STATUS(0x0500, 0x10)
47 
85 brp_errcode brp_AR_GetMessage(brp_protocol protocol, brp_MessageType* MsgType, brp_buf* MsgData, size_t* MsgData_len, brp_mempool *mempool);
180 brp_errcode brp_AR_RunScript(brp_protocol protocol, brp_buf Script, size_t Script_len);
181 #endif
182 
brp_MessageType
Definition: typedefs.h:3213
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
Definition: errorcodes.h:23
brp_AutoReadMode
Definition: typedefs.h:4553
brp_errcode brp_AR_SetMode(brp_protocol protocol, brp_AutoReadMode Mode)
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
brp_errcode brp_AR_RunScript(brp_protocol protocol, brp_buf Script, size_t Script_len)
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:27
brp_errcode brp_AR_GetMessage(brp_protocol protocol, brp_MessageType *MsgType, brp_buf *MsgData, size_t *MsgData_len, brp_mempool *mempool)
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61