BALTECH SDK wrapper functions reference
iso14l4.h
Go to the documentation of this file.
1 
16 #ifndef __BRP_BALTECH_SDK_CMDS_ISO14L4_H__
17 #define __BRP_BALTECH_SDK_CMDS_ISO14L4_H__
18 #include "../typedefs.h"
22 #define BRP_Iso14L4_ErrNoTag BRP_ERR_STATUS(0x1600, 0x01)
23 
26 #define BRP_Iso14L4_ErrHf BRP_ERR_STATUS(0x1600, 0x04)
27 
30 #define BRP_Iso14L4_ErrCard BRP_ERR_STATUS(0x1600, 0x05)
31 
34 #define BRP_Iso14L4_ErrCom BRP_ERR_STATUS(0x1600, 0x10)
35 
38 #define BRP_Iso14L4_ErrCmd BRP_ERR_STATUS(0x1600, 0x23)
39 typedef struct {
41  bool EnDefault;
42  bool ToggleAB;
43  bool EnNAD;
44  bool EnCID;
45  unsigned CID;
46  unsigned NAD;
84 #ifdef BRP_SUPPORT_LEGACY_METHODS
85 brp_errcode brp_Iso14L4_SetupAPDU(brp_protocol protocol, bool EnDefault, bool ToggleAB, bool EnNAD, bool EnCID, unsigned CID, unsigned NAD, brp_Iso14L4_SetupAPDU_FSCI FSCI, brp_Iso14L4_SetupAPDU_FWI FWI, brp_DivisorInteger DSI, brp_DivisorInteger DRI);
86 #else
88 #endif
89 typedef struct {
92  size_t SendData_len;
94  size_t* RecvData_len;
110 #ifdef BRP_SUPPORT_LEGACY_METHODS
111 brp_errcode brp_Iso14L4_ExchangeAPDU(brp_protocol protocol, brp_buf SendData, size_t SendData_len, brp_buf* RecvData, size_t* RecvData_len, brp_mempool *mempool);
112 #else
114 #endif
115 typedef struct {
126 #ifdef BRP_SUPPORT_LEGACY_METHODS
128 #else
130 #endif
131 #endif
132 
brp_Iso14L4_SetupAPDU_FSCI FSCI
Definition: iso14l4.h:47
brp_errcode brp_Iso14L4_Deselect(brp_Iso14L4_Deselect_t params)
This command switches one or multiple PICC(s) to halt state.
brp_DivisorInteger
Divisor Send/Receive Integer (DSI/DRI)
Definition: typedefs.h:3339
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
Definition: errorcodes.h:23
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
brp_Iso14L4_SetupAPDU_FSCI
Frame Size proximity Card Integer (FSCI).
Definition: typedefs.h:1520
brp_Iso14L4_SetupAPDU_FWI FWI
Definition: iso14l4.h:48
brp_protocol protocol
Definition: iso14l4.h:90
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:29
brp_DivisorInteger DRI
Definition: iso14l4.h:50
brp_errcode brp_Iso14L4_ExchangeAPDU(brp_Iso14L4_ExchangeAPDU_t params)
This command allows to transmit/receive Application Protocol Data Units (APDUs) according to the ISO ...
brp_protocol protocol
Definition: iso14l4.h:40
brp_protocol protocol
Definition: iso14l4.h:116
brp_DivisorInteger DSI
Definition: iso14l4.h:49
brp_mempool * mempool
Definition: iso14l4.h:95
brp_errcode brp_Iso14L4_SetupAPDU(brp_Iso14L4_SetupAPDU_t params)
Setup communication parameters and select a certain PICC for APDU exchange.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
brp_Iso14L4_SetupAPDU_FWI
Frame Waiting time Integer (FWI).
Definition: typedefs.h:1566