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) 40 #define BRP_Iso14a_ErrCollision BRP_ERR_STATUS(0x1300, 0x02) 44 #define BRP_Iso14a_ErrHf BRP_ERR_STATUS(0x1300, 0x04) 45 #ifdef BALTECH_SDK_INTERNAL 49 #define BRP_Iso14a_ErrKey BRP_ERR_STATUS(0x1300, 0x06) 50 #endif // BALTECH_SDK_INTERNAL 54 #define BRP_Iso14a_ErrFrame BRP_ERR_STATUS(0x1300, 0x07) 58 #define BRP_Iso14a_ErrCrc BRP_ERR_STATUS(0x1300, 0x08) 62 #define BRP_Iso14a_ErrCom BRP_ERR_STATUS(0x1300, 0x10) 63 #ifdef BALTECH_SDK_INTERNAL 67 #define BRP_Iso14a_ErrEeprom BRP_ERR_STATUS(0x1300, 0x21) 68 #endif // BALTECH_SDK_INTERNAL 69 #ifdef BALTECH_SDK_INTERNAL 73 #define BRP_Iso14a_ErrCardNotSupported BRP_ERR_STATUS(0x1300, 0x22) 74 #endif // BALTECH_SDK_INTERNAL 75 #ifdef BALTECH_SDK_INTERNAL 79 #define BRP_Iso14a_ErrHwNotSupported BRP_ERR_STATUS(0x1300, 0x23) 80 #endif // BALTECH_SDK_INTERNAL 81 #ifdef BALTECH_SDK_INTERNAL 85 #define BRP_Iso14a_BreakErr BRP_ERR_STATUS(0x1300, 0x30) 86 #endif // BALTECH_SDK_INTERNAL 87 #ifdef BALTECH_SDK_INTERNAL 91 brp_Iso14a_RequestLegacy_UIDSize* UIDSize;
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);
118 brp_errcode brp_Iso14a_RequestLegacy(brp_Iso14a_RequestLegacy_t params);
120 #endif // BALTECH_SDK_INTERNAL 166 #ifdef BRP_SUPPORT_LEGACY_METHODS 184 #ifdef BRP_SUPPORT_LEGACY_METHODS 221 #ifdef BRP_SUPPORT_LEGACY_METHODS 247 #ifdef BRP_SUPPORT_LEGACY_METHODS 275 #ifdef BRP_SUPPORT_LEGACY_METHODS 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);
322 #ifdef BALTECH_SDK_INTERNAL 329 } brp_Iso14a_Anticoll_t;
340 #ifdef BRP_SUPPORT_LEGACY_METHODS 343 brp_errcode brp_Iso14a_Anticoll(brp_Iso14a_Anticoll_t params);
345 #endif // BALTECH_SDK_INTERNAL 346 #ifdef BALTECH_SDK_INTERNAL 351 } brp_Iso14a_SelectOnly_t;
360 #ifdef BRP_SUPPORT_LEGACY_METHODS 363 brp_errcode brp_Iso14a_SelectOnly(brp_Iso14a_SelectOnly_t params);
365 #endif // BALTECH_SDK_INTERNAL 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);
410 #ifdef BALTECH_SDK_INTERNAL 415 unsigned SendDataLen;
421 unsigned* RecvDataLen;
422 unsigned* CollisionPosition;
424 size_t* RecvData_len;
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);
449 brp_errcode brp_Iso14a_TransparentCmdBitlen(brp_Iso14a_TransparentCmdBitlen_t params);
451 #endif // BALTECH_SDK_INTERNAL
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_DivisorInteger
Divisor Send/Receive Integer (DSI/DRI)
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
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.
brp_Iso14a_RequestATS_FSDI FSDI
struct brp_mempool_object_t * brp_mempool
mempool handle.
brp_errcode brp_Iso14a_PerformPPS(brp_Iso14a_PerformPPS_t params)
This command sets up the communication parameters for ISO 14443-4 commands.
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...
unsigned TerminalTypeDataLength
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...
brp_errcode brp_Iso14a_Halt(brp_Iso14a_Halt_t params)
Switch PICC to halt state.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
brp_Iso14a_RequestATS_FSDI
Frame Size proximity coupling Device Integer (FSDI) value.
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.