BALTECH SDK wrapper functions reference
ar.h
Go to the documentation of this file.
1 
12 #ifndef __BRP_BALTECH_SDK_CMDS_AR_H__
13 #define __BRP_BALTECH_SDK_CMDS_AR_H__
14 #include "../typedefs.h"
18 #define BRP_AR_ErrNoMessage BRP_ERR_STATUS(0x0500, 0x01)
19 
22 #define BRP_AR_ErrScriptRuntime BRP_ERR_STATUS(0x0500, 0x02)
23 
26 #define BRP_AR_ErrScriptSyntax BRP_ERR_STATUS(0x0500, 0x03)
27 
30 #define BRP_AR_ErrScriptNotImplemented BRP_ERR_STATUS(0x0500, 0x04)
31 
34 #define BRP_AR_ErrArDisabled BRP_ERR_STATUS(0x0500, 0x10)
35 typedef struct {
48 #ifdef BRP_SUPPORT_LEGACY_METHODS
50 #else
52 #endif
53 typedef struct {
57  size_t* MsgData_len;
74 #ifdef BRP_SUPPORT_LEGACY_METHODS
75 brp_errcode brp_AR_GetMessage(brp_protocol protocol, brp_MessageType* MsgType, brp_buf* MsgData, size_t* MsgData_len, brp_mempool *mempool);
76 #else
78 #endif
79 typedef struct {
82  size_t Script_len;
163 #ifdef BRP_SUPPORT_LEGACY_METHODS
164 brp_errcode brp_AR_RunScript(brp_protocol protocol, brp_buf Script, size_t Script_len);
165 #else
167 #endif
168 typedef struct {
179 #ifdef BRP_SUPPORT_LEGACY_METHODS
181 #else
183 #endif
184 #endif
185 
brp_errcode brp_AR_GetMessage(brp_AR_GetMessage_t params)
This command checks if a card has been presented to the reader since the last AR.GetMessage execution...
brp_MessageType
Event that triggered the message.
Definition: typedefs.h:3165
brp_AutoReadMode Mode
Definition: ar.h:37
size_t * MsgData_len
Definition: ar.h:57
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_mempool * mempool
Definition: ar.h:58
brp_AutoReadMode
Definition: typedefs.h:4405
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
brp_protocol protocol
Definition: ar.h:54
brp_MessageType * MsgType
Definition: ar.h:55
brp_protocol protocol
Definition: ar.h:80
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:29
brp_protocol protocol
Definition: ar.h:36
brp_buf * MsgData
Definition: ar.h:56
size_t Script_len
Definition: ar.h:82
brp_errcode brp_AR_RestrictScanCardFamilies(brp_AR_RestrictScanCardFamilies_t params)
This command restricts the card families that Autoread will scan for.
brp_CardFamilies CardFamiliesFilter
Definition: ar.h:170
brp_errcode brp_AR_SetMode(brp_AR_SetMode_t params)
This command controls Autoread mode at runtime.
brp_buf Script
Definition: ar.h:81
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
brp_errcode brp_AR_RunScript(brp_AR_RunScript_t params)
This command runs a BaltechScript.