C API for BALTECH SDK
ar.h
Go to the documentation of this file.
1 
17 #ifndef __BRP_BALTECH_API_CMDS_AR_H__
18 #define __BRP_BALTECH_API_CMDS_AR_H__
19 #include "../typedefs.h"
23 #define BRP_AR_ErrNoMessage BRP_ERR_STATUS(0x0500, 0x01)
24 
27 #define BRP_AR_ErrScriptRuntime BRP_ERR_STATUS(0x0500, 0x02)
28 
31 #define BRP_AR_ErrScriptSyntax BRP_ERR_STATUS(0x0500, 0x03)
32 
36 #define BRP_AR_ErrScriptNotImplemented BRP_ERR_STATUS(0x0500, 0x04)
37 
40 #define BRP_AR_ErrArDisabled BRP_ERR_STATUS(0x0500, 0x10)
41 
77 brp_errcode brp_AR_GetMessage(brp_protocol protocol, brp_MessageType* MsgType, brp_buf* MsgData, size_t* MsgData_len, brp_mempool *mempool);
171 brp_errcode brp_AR_RunScript(brp_protocol protocol, brp_buf Script, size_t Script_len);
172 #endif
173 
brp_MessageType
Event that triggered the message.
Definition: typedefs.h:3137
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:4482
brp_errcode brp_AR_SetMode(brp_protocol protocol, brp_AutoReadMode Mode)
This command controls Autoread mode at runtime.
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)
This command runs a BaltechScript.
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)
This command checks if a card has been presented to the reader since the last AR.GetMessage execution...
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61