BALTECH SDK wrapper functions reference
iso14b.h
Go to the documentation of this file.
1 
28 #ifndef __BRP_BALTECH_SDK_CMDS_ISO14B_H__
29 #define __BRP_BALTECH_SDK_CMDS_ISO14B_H__
30 #include "../typedefs.h"
34 #define BRP_Iso14b_ErrNoTag BRP_ERR_STATUS(0x1400, 0x01)
35 
38 #define BRP_Iso14b_ErrCollision BRP_ERR_STATUS(0x1400, 0x02)
39 #ifdef BALTECH_SDK_INTERNAL
40 
43 #define BRP_Iso14b_ErrAuth BRP_ERR_STATUS(0x1400, 0x03)
44 #endif // BALTECH_SDK_INTERNAL
45 
48 #define BRP_Iso14b_ErrHf BRP_ERR_STATUS(0x1400, 0x04)
49 
52 #define BRP_Iso14b_ErrFrame BRP_ERR_STATUS(0x1400, 0x07)
53 #ifdef BALTECH_SDK_INTERNAL
54 
57 #define BRP_Iso14b_ErrCrc BRP_ERR_STATUS(0x1400, 0x08)
58 #endif // BALTECH_SDK_INTERNAL
59 
62 #define BRP_Iso14b_ErrCom BRP_ERR_STATUS(0x1400, 0x10)
63 #ifdef BALTECH_SDK_INTERNAL
64 
67 #define BRP_Iso14b_ErrEeprom BRP_ERR_STATUS(0x1400, 0x21)
68 #endif // BALTECH_SDK_INTERNAL
69 #ifdef BALTECH_SDK_INTERNAL
70 
73 #define BRP_Iso14b_ErrCardNotSupported BRP_ERR_STATUS(0x1400, 0x22)
74 #endif // BALTECH_SDK_INTERNAL
75 
78 #define BRP_Iso14b_ErrMem BRP_ERR_STATUS(0x1400, 0x23)
79 #ifdef BALTECH_SDK_INTERNAL
80 
83 #define BRP_Iso14b_ErrHwNotSupported BRP_ERR_STATUS(0x1400, 0x24)
84 #endif // BALTECH_SDK_INTERNAL
85 typedef struct {
88  bool ReqAll;
90  unsigned AFI;
92  size_t* ValueList_len;
114 #ifdef BRP_SUPPORT_LEGACY_METHODS
115 brp_errcode brp_Iso14b_Request(brp_protocol protocol, bool ExtendedATQB, bool ReqAll, brp_Iso14b_Request_TimeSlots TimeSlots, unsigned AFI, brp_Iso14b_Request_ValueList_Entry** ValueList, size_t* ValueList_len, brp_mempool *mempool);
116 #else
118 #endif
119 typedef struct {
129  unsigned ProtocolType;
130  unsigned CID;
131  bool EnHLR;
132  bool EnMBLI;
133  bool EnCID;
134  unsigned* AssignedCID;
135  unsigned* MBLI;
137  size_t* HLR_len;
170 #ifdef BRP_SUPPORT_LEGACY_METHODS
171 brp_errcode brp_Iso14b_Attrib(brp_protocol protocol, brp_buf PUPI, brp_Iso14b_Attrib_TR0 TR0, brp_Iso14b_Attrib_TR1 TR1, brp_Iso14b_Attrib_EOF_ EOF_, brp_Iso14b_Attrib_SOF SOF, brp_DivisorInteger DSI, brp_DivisorInteger DRI, brp_Iso14b_Attrib_FSDI FSDI, unsigned ProtocolType, unsigned CID, bool EnHLR, bool EnMBLI, bool EnCID, unsigned* AssignedCID, unsigned* MBLI, brp_buf* HLR, size_t* HLR_len, brp_mempool *mempool);
172 #else
174 #endif
175 typedef struct {
188 #ifdef BRP_SUPPORT_LEGACY_METHODS
190 #else
192 #endif
193 typedef struct {
195  bool EnCRCRX;
196  bool EnCRCTX;
197  unsigned SendDataLen;
198  unsigned Timeout;
202  size_t SendData_len;
204  size_t* RecvData_len;
224 #ifdef BRP_SUPPORT_LEGACY_METHODS
225 brp_errcode brp_Iso14b_TransparentCmd(brp_protocol protocol, bool EnCRCRX, bool EnCRCTX, unsigned SendDataLen, unsigned Timeout, brp_DivisorInteger DSI, brp_DivisorInteger DRI, brp_buf SendData, size_t SendData_len, brp_buf* RecvData, size_t* RecvData_len, brp_mempool *mempool);
226 #else
228 #endif
229 #endif
230 
brp_Iso14b_Attrib_SOF SOF
Definition: iso14b.h:125
brp_buf * HLR
Definition: iso14b.h:136
brp_errcode brp_Iso14b_Halt(brp_Iso14b_Halt_t params)
Switch the PICC with the given PUPI serial number into halt state, so that it will not answer to furt...
brp_Iso14b_Attrib_EOF_
End Of Frame (EOF) flag for sending data to reader.
Definition: typedefs.h:1448
brp_Iso14b_Attrib_FSDI FSDI
Definition: iso14b.h:128
size_t * HLR_len
Definition: iso14b.h:137
brp_DivisorInteger
Divisor Send/Receive Integer (DSI/DRI)
Definition: typedefs.h:3339
brp_Iso14b_Request_TimeSlots TimeSlots
Definition: iso14b.h:89
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
Definition: errorcodes.h:23
unsigned ProtocolType
Definition: iso14b.h:129
size_t * ValueList_len
Definition: iso14b.h:92
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
brp_errcode brp_Iso14b_Attrib(brp_Iso14b_Attrib_t params)
Select the PICC with given PUPI serial number for further communication.
brp_Iso14b_Attrib_SOF
Start Of Frame (SOF) flag for sending data to reader.
Definition: typedefs.h:1462
brp_buf PUPI
Definition: iso14b.h:177
brp_Iso14b_Request_TimeSlots
Number of time slots which should be used for requesting PICCs.
Definition: typedefs.h:1108
brp_errcode brp_Iso14b_Request(brp_Iso14b_Request_t params)
Scan for ISO 14443 (Type B) compliant PICCs in the field of the antenna.
brp_mempool * mempool
Definition: iso14b.h:93
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:29
brp_protocol protocol
Definition: iso14b.h:120
brp_Iso14b_Attrib_TR0
PICC's minimum delay before responding after the end of a command sent by PCD.
Definition: typedefs.h:1412
brp_protocol protocol
Definition: iso14b.h:86
brp_Iso14b_Request_ValueList_Entry ** ValueList
Definition: iso14b.h:91
brp_DivisorInteger DRI
Definition: iso14b.h:127
brp_Iso14b_Attrib_TR1
Minimum delay between subcarrier modulation start and beginning of data transmission.
Definition: typedefs.h:1430
brp_Iso14b_Attrib_FSDI
Frame Size proximity coupling Device Integer (FSDI) value.
Definition: typedefs.h:1478
brp_protocol protocol
Definition: iso14b.h:194
brp_DivisorInteger DSI
Definition: iso14b.h:199
brp_Iso14b_Attrib_EOF_ EOF_
Definition: iso14b.h:124
brp_mempool * mempool
Definition: iso14b.h:138
unsigned * MBLI
Definition: iso14b.h:135
brp_DivisorInteger DSI
Definition: iso14b.h:126
brp_Iso14b_Attrib_TR0 TR0
Definition: iso14b.h:122
brp_mempool * mempool
Definition: iso14b.h:205
brp_errcode brp_Iso14b_TransparentCmd(brp_Iso14b_TransparentCmd_t params)
This command sends a data stream to a card and returns the communication status and the received card...
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
unsigned * AssignedCID
Definition: iso14b.h:134
unsigned CID
Definition: iso14b.h:130
brp_DivisorInteger DRI
Definition: iso14b.h:200
Definition: typedefs.h:1330
unsigned AFI
Definition: iso14b.h:90
brp_Iso14b_Attrib_TR1 TR1
Definition: iso14b.h:123
brp_protocol protocol
Definition: iso14b.h:176