C API for BALTECH SDK
iso14a.h
Go to the documentation of this file.
1 
54 #ifndef __BRP_BALTECH_API_CMDS_ISO14A_H__
55 #define __BRP_BALTECH_API_CMDS_ISO14A_H__
56 #include "../typedefs.h"
61 #define BRP_Iso14a_ErrNoTag BRP_ERR_STATUS(0x1300, 0x01)
62 
72 #define BRP_Iso14a_ErrCollision BRP_ERR_STATUS(0x1300, 0x02)
73 
76 #define BRP_Iso14a_ErrHf BRP_ERR_STATUS(0x1300, 0x04)
77 
80 #define BRP_Iso14a_ErrKey BRP_ERR_STATUS(0x1300, 0x06)
81 
84 #define BRP_Iso14a_ErrFrame BRP_ERR_STATUS(0x1300, 0x07)
85 
88 #define BRP_Iso14a_ErrCrc BRP_ERR_STATUS(0x1300, 0x08)
89 
92 #define BRP_Iso14a_ErrCom BRP_ERR_STATUS(0x1300, 0x10)
93 
96 #define BRP_Iso14a_ErrEeprom BRP_ERR_STATUS(0x1300, 0x21)
97 
100 #define BRP_Iso14a_ErrCardNotSupported BRP_ERR_STATUS(0x1300, 0x22)
101 
104 #define BRP_Iso14a_ErrHwNotSupported BRP_ERR_STATUS(0x1300, 0x23)
105 
108 #define BRP_Iso14a_BreakErr BRP_ERR_STATUS(0x1300, 0x30)
109 
137 brp_errcode brp_Iso14a_RequestLegacy(brp_protocol protocol, bool ReqAll, brp_Iso14a_RequestLegacy_UIDSize* UIDSize, unsigned* Coll, unsigned* ProprietaryCoding);
196 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);
241 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);
280 brp_errcode brp_Iso14a_Request(brp_protocol protocol, bool ReqAll, brp_buf* ATQA, bool* Collision, brp_mempool *mempool);
290 brp_errcode brp_Iso14a_Anticoll(brp_protocol protocol, unsigned BitCount, brp_buf PreSelectedSnr, brp_buf* SelectedSnr, brp_mempool *mempool);
298 brp_errcode brp_Iso14a_SelectOnly(brp_protocol protocol, brp_buf Snr, unsigned* SAK);
320 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);
340 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);
341 #endif
342 
brp_errcode brp_Iso14a_SelectOnly(brp_protocol protocol, brp_buf Snr, unsigned *SAK)
This command selects a PICC with a 4 Byte serial number.
brp_DivisorInteger
Divisor Send/Receive Integer (DSI/DRI)
Definition: typedefs.h:3321
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_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)
This command Performs the anti-collision and selection sequence of a PICC in the field of the antenna...
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:27
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)
This command is similar to Iso14a.TransparentCmd.
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)
This command requests the Answer to Select (ATS) of the PICC according to the ISO 14443-3 (Type A) st...
brp_errcode brp_Iso14a_Request(brp_protocol protocol, bool ReqAll, brp_buf *ATQA, bool *Collision, brp_mempool *mempool)
This commands scans for ISO 14443-3 (Type A) compliant PICCs in the field of the antenna.
brp_errcode brp_Iso14a_Halt(brp_protocol protocol)
Switch PICC to halt state.
brp_Iso14a_RequestLegacy_UIDSize
Length of "Unique IDentifier" (UID).
Definition: typedefs.h:1133
brp_errcode brp_Iso14a_Anticoll(brp_protocol protocol, unsigned BitCount, brp_buf PreSelectedSnr, brp_buf *SelectedSnr, brp_mempool *mempool)
This command performs an anti-collision sequence.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
brp_errcode brp_Iso14a_PerformPPS(brp_protocol protocol, unsigned CID, brp_DivisorInteger DSI, brp_DivisorInteger DRI)
This command sets up the communication parameters for ISO 14443-4 commands.
brp_Iso14a_RequestATS_FSDI
Frame Size proximity coupling Device Integer (FSDI) value.
Definition: typedefs.h:1157
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)
This command sends a data stream to a card and returns the communication status and the received card...
brp_errcode brp_Iso14a_RequestLegacy(brp_protocol protocol, bool ReqAll, brp_Iso14a_RequestLegacy_UIDSize *UIDSize, unsigned *Coll, unsigned *ProprietaryCoding)
This commands scans for ISO 14443-3 (Type A) compliant PICCs in the field of the antenna.