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) 27 #define BRP_AR_ErrScriptRuntime BRP_ERR_STATUS(0x0500, 0x02) 31 #define BRP_AR_ErrScriptSyntax BRP_ERR_STATUS(0x0500, 0x03) 36 #define BRP_AR_ErrScriptNotImplemented BRP_ERR_STATUS(0x0500, 0x04) 40 #define BRP_AR_ErrArDisabled BRP_ERR_STATUS(0x0500, 0x10) brp_MessageType
Event that triggered the message.
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
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.
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.
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.