BALTECH SDK wrapper functions reference
iso14a.h
Go to the documentation of this file.
1 
28 #ifndef __BRP_BALTECH_SDK_CMDS_ISO14A_H__
29 #define __BRP_BALTECH_SDK_CMDS_ISO14A_H__
30 #include "../typedefs.h"
34 #define BRP_Iso14a_ErrNoTag BRP_ERR_STATUS(0x1300, 0x01)
35 
40 #define BRP_Iso14a_ErrCollision BRP_ERR_STATUS(0x1300, 0x02)
41 
44 #define BRP_Iso14a_ErrHf BRP_ERR_STATUS(0x1300, 0x04)
45 #ifdef BALTECH_SDK_INTERNAL
46 
49 #define BRP_Iso14a_ErrKey BRP_ERR_STATUS(0x1300, 0x06)
50 #endif // BALTECH_SDK_INTERNAL
51 
54 #define BRP_Iso14a_ErrFrame BRP_ERR_STATUS(0x1300, 0x07)
55 
58 #define BRP_Iso14a_ErrCrc BRP_ERR_STATUS(0x1300, 0x08)
59 
62 #define BRP_Iso14a_ErrCom BRP_ERR_STATUS(0x1300, 0x10)
63 #ifdef BALTECH_SDK_INTERNAL
64 
67 #define BRP_Iso14a_ErrEeprom BRP_ERR_STATUS(0x1300, 0x21)
68 #endif // BALTECH_SDK_INTERNAL
69 #ifdef BALTECH_SDK_INTERNAL
70 
73 #define BRP_Iso14a_ErrCardNotSupported BRP_ERR_STATUS(0x1300, 0x22)
74 #endif // BALTECH_SDK_INTERNAL
75 #ifdef BALTECH_SDK_INTERNAL
76 
79 #define BRP_Iso14a_ErrHwNotSupported BRP_ERR_STATUS(0x1300, 0x23)
80 #endif // BALTECH_SDK_INTERNAL
81 #ifdef BALTECH_SDK_INTERNAL
82 
85 #define BRP_Iso14a_BreakErr BRP_ERR_STATUS(0x1300, 0x30)
86 #endif // BALTECH_SDK_INTERNAL
87 #ifdef BALTECH_SDK_INTERNAL
88 typedef struct {
89  brp_protocol protocol;
90  bool ReqAll;
91  brp_Iso14a_RequestLegacy_UIDSize* UIDSize;
92  unsigned* Coll;
93  unsigned* ProprietaryCoding;
94 } brp_Iso14a_RequestLegacy_t;
115 #ifdef BRP_SUPPORT_LEGACY_METHODS
116 brp_errcode brp_Iso14a_RequestLegacy(brp_protocol protocol, bool ReqAll, brp_Iso14a_RequestLegacy_UIDSize* UIDSize, unsigned* Coll, unsigned* ProprietaryCoding);
117 #else
118 brp_errcode brp_Iso14a_RequestLegacy(brp_Iso14a_RequestLegacy_t params);
119 #endif
120 #endif // BALTECH_SDK_INTERNAL
121 typedef struct {
123  unsigned CascLev;
124  unsigned BitCount;
127  unsigned* SAK;
129  size_t* Serial_len;
166 #ifdef BRP_SUPPORT_LEGACY_METHODS
167 brp_errcode brp_Iso14a_Select(brp_protocol protocol, unsigned CascLev, unsigned BitCount, brp_buf PreSelSer, size_t PreSelSer_len, unsigned* SAK, brp_buf* Serial, size_t* Serial_len, brp_mempool *mempool);
168 #else
170 #endif
171 typedef struct {
184 #ifdef BRP_SUPPORT_LEGACY_METHODS
186 #else
188 #endif
189 typedef struct {
192  unsigned CID;
194  size_t* ATS_len;
221 #ifdef BRP_SUPPORT_LEGACY_METHODS
222 brp_errcode brp_Iso14a_RequestATS(brp_protocol protocol, brp_Iso14a_RequestATS_FSDI FSDI, unsigned CID, brp_buf* ATS, size_t* ATS_len, brp_mempool *mempool);
223 #else
225 #endif
226 typedef struct {
228  unsigned CID;
247 #ifdef BRP_SUPPORT_LEGACY_METHODS
249 #else
251 #endif
252 typedef struct {
254  bool ReqAll;
256  bool* Collision;
275 #ifdef BRP_SUPPORT_LEGACY_METHODS
276 brp_errcode brp_Iso14a_Request(brp_protocol protocol, bool ReqAll, brp_buf* ATQA, bool* Collision, brp_mempool *mempool);
277 #else
279 #endif
280 typedef struct {
282  bool ReqAll;
283  unsigned FormatVersion;
287  unsigned TerminalType;
289  size_t TCI_len;
291  bool* Collision;
317 #ifdef BRP_SUPPORT_LEGACY_METHODS
318 brp_errcode brp_Iso14a_RequestVasup(brp_protocol protocol, bool ReqAll, unsigned FormatVersion, bool VasSupported, bool AuthUserRequested, unsigned TerminalTypeDataLength, unsigned TerminalType, brp_buf TCI, size_t TCI_len, brp_buf* ATQA, bool* Collision, brp_mempool *mempool);
319 #else
321 #endif
322 #ifdef BALTECH_SDK_INTERNAL
323 typedef struct {
324  brp_protocol protocol;
325  unsigned BitCount;
326  brp_buf PreSelectedSnr;
327  brp_buf* SelectedSnr;
328  brp_mempool *mempool;
329 } brp_Iso14a_Anticoll_t;
340 #ifdef BRP_SUPPORT_LEGACY_METHODS
341 brp_errcode brp_Iso14a_Anticoll(brp_protocol protocol, unsigned BitCount, brp_buf PreSelectedSnr, brp_buf* SelectedSnr, brp_mempool *mempool);
342 #else
343 brp_errcode brp_Iso14a_Anticoll(brp_Iso14a_Anticoll_t params);
344 #endif
345 #endif // BALTECH_SDK_INTERNAL
346 #ifdef BALTECH_SDK_INTERNAL
347 typedef struct {
348  brp_protocol protocol;
349  brp_buf Snr;
350  unsigned* SAK;
351 } brp_Iso14a_SelectOnly_t;
360 #ifdef BRP_SUPPORT_LEGACY_METHODS
361 brp_errcode brp_Iso14a_SelectOnly(brp_protocol protocol, brp_buf Snr, unsigned* SAK);
362 #else
363 brp_errcode brp_Iso14a_SelectOnly(brp_Iso14a_SelectOnly_t params);
364 #endif
365 #endif // BALTECH_SDK_INTERNAL
366 typedef struct {
369  bool EnBitmode;
370  bool EnCRCRX;
371  bool EnCRCTX;
373  bool EnParity;
374  unsigned SendDataLen;
375  unsigned Timeout;
379  size_t SendData_len;
381  size_t* RcvData_len;
405 #ifdef BRP_SUPPORT_LEGACY_METHODS
406 brp_errcode brp_Iso14a_TransparentCmd(brp_protocol protocol, bool EnMifBwProt, bool EnBitmode, bool EnCRCRX, bool EnCRCTX, bool ParityMode, bool EnParity, unsigned SendDataLen, unsigned Timeout, brp_DivisorInteger DSI, brp_DivisorInteger DRI, brp_buf SendData, size_t SendData_len, brp_buf* RcvData, size_t* RcvData_len, brp_mempool *mempool);
407 #else
409 #endif
410 #ifdef BALTECH_SDK_INTERNAL
411 typedef struct {
412  brp_protocol protocol;
413  bool EnHighBaudOld;
414  bool EnParTx;
415  unsigned SendDataLen;
416  unsigned Timeout;
417  brp_DivisorInteger DSI;
418  brp_DivisorInteger DRI;
419  brp_buf SendData;
420  size_t SendData_len;
421  unsigned* RecvDataLen;
422  unsigned* CollisionPosition;
423  brp_buf* RecvData;
424  size_t* RecvData_len;
425  brp_mempool *mempool;
426 } brp_Iso14a_TransparentCmdBitlen_t;
446 #ifdef BRP_SUPPORT_LEGACY_METHODS
447 brp_errcode brp_Iso14a_TransparentCmdBitlen(brp_protocol protocol, bool EnHighBaudOld, bool EnParTx, unsigned SendDataLen, unsigned Timeout, brp_DivisorInteger DSI, brp_DivisorInteger DRI, brp_buf SendData, size_t SendData_len, unsigned* RecvDataLen, unsigned* CollisionPosition, brp_buf* RecvData, size_t* RecvData_len, brp_mempool *mempool);
448 #else
449 brp_errcode brp_Iso14a_TransparentCmdBitlen(brp_Iso14a_TransparentCmdBitlen_t params);
450 #endif
451 #endif // BALTECH_SDK_INTERNAL
452 #endif
453 
unsigned BitCount
Definition: iso14a.h:124
unsigned * SAK
Definition: iso14a.h:127
brp_protocol protocol
Definition: iso14a.h:122
brp_errcode brp_Iso14a_TransparentCmd(brp_Iso14a_TransparentCmd_t params)
This command sends a data stream to a card and returns the communication status and the received card...
brp_mempool * mempool
Definition: iso14a.h:292
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
brp_buf * ATQA
Definition: iso14a.h:255
brp_errcode brp_Iso14a_Select(brp_Iso14a_Select_t params)
This command Performs the anti-collision and selection sequence of a PICC in the field of the antenna...
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
brp_DivisorInteger DSI
Definition: iso14a.h:376
brp_protocol protocol
Definition: iso14a.h:190
brp_Iso14a_RequestATS_FSDI FSDI
Definition: iso14a.h:191
brp_DivisorInteger DRI
Definition: iso14a.h:377
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:29
brp_errcode brp_Iso14a_PerformPPS(brp_Iso14a_PerformPPS_t params)
This command sets up the communication parameters for ISO 14443-4 commands.
brp_protocol protocol
Definition: iso14a.h:253
brp_protocol protocol
Definition: iso14a.h:172
brp_protocol protocol
Definition: iso14a.h:367
brp_errcode brp_Iso14a_RequestATS(brp_Iso14a_RequestATS_t params)
This command requests the Answer to Select (ATS) of the PICC according to the ISO 14443-3 (Type A) st...
brp_DivisorInteger DRI
Definition: iso14a.h:230
unsigned TerminalTypeDataLength
Definition: iso14a.h:286
size_t * Serial_len
Definition: iso14a.h:129
brp_errcode brp_Iso14a_RequestVasup(brp_Iso14a_RequestVasup_t params)
This commands scans for ISO 14443-3 (Type A) compliant PICCs in the field of the antenna and enhances...
unsigned CascLev
Definition: iso14a.h:123
brp_DivisorInteger DSI
Definition: iso14a.h:229
brp_mempool * mempool
Definition: iso14a.h:195
brp_mempool * mempool
Definition: iso14a.h:130
brp_mempool * mempool
Definition: iso14a.h:382
brp_errcode brp_Iso14a_Halt(brp_Iso14a_Halt_t params)
Switch PICC to halt state.
brp_buf PreSelSer
Definition: iso14a.h:125
brp_buf * Serial
Definition: iso14a.h:128
brp_mempool * mempool
Definition: iso14a.h:257
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
brp_Iso14a_RequestATS_FSDI
Frame Size proximity coupling Device Integer (FSDI) value.
Definition: typedefs.h:1066
brp_errcode brp_Iso14a_Request(brp_Iso14a_Request_t params)
This commands scans for ISO 14443-3 (Type A) compliant PICCs in the field of the antenna.
size_t PreSelSer_len
Definition: iso14a.h:126
brp_protocol protocol
Definition: iso14a.h:281
brp_protocol protocol
Definition: iso14a.h:227