10 #ifndef __BRP_BALTECH_API_CMDS_ISO14CE_H__ 11 #define __BRP_BALTECH_API_CMDS_ISO14CE_H__ 12 #include "../typedefs.h" 19 #define BRP_Iso14CE_ErrIso144State BRP_ERR_STATUS(0x4A00, 0x01) 23 #define BRP_Iso14CE_ErrCom BRP_ERR_STATUS(0x4A00, 0x02) 27 #define BRP_Iso14CE_ErrTransmission BRP_ERR_STATUS(0x4A00, 0x03) 31 #define BRP_Iso14CE_ErrTimeout BRP_ERR_STATUS(0x4A00, 0x04) 36 #define BRP_Iso14CE_ErrOverflow BRP_ERR_STATUS(0x4A00, 0x05) 40 #define BRP_Iso14CE_ErrInternal BRP_ERR_STATUS(0x4A00, 0x06) 44 #define BRP_Iso14CE_ErrDeselect BRP_ERR_STATUS(0x4A00, 0x07) 115 brp_errcode brp_Iso14CE_ActivateCardAPDU(
brp_protocol protocol,
bool SpecifyTimeoutApdu,
bool AutoWTX,
unsigned ATQA,
brp_buf Snr,
bool DSEqualToDR,
bool DS8,
bool DS4,
bool DS2,
bool DR8,
bool DR4,
bool DR2,
unsigned FWT,
unsigned TimeoutPCD,
unsigned TimeoutApdu,
brp_buf ATS,
size_t ATS_len,
brp_buf* FirstCmd,
size_t* FirstCmd_len,
brp_mempool *mempool);
brp_errcode brp_Iso14CE_ExchangeCardAPDU(brp_protocol protocol, brp_buf Rsp, size_t Rsp_len, unsigned Timeout, brp_buf *Cmd, size_t *Cmd_len, brp_mempool *mempool)
Send an APDU response to the APDU request received during the last call of Iso14CE.ExchangeInverseAPDU or brp_Iso14CE_ActivateCardAPDU(), and receive the next PCD APDU request.
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
struct brp_mempool_object_t * brp_mempool
mempool handle.
brp_errcode brp_Iso14CE_ExtendWaitingTime(brp_protocol protocol, unsigned WaitingTimeout, unsigned WTXM, unsigned RefreshTimeRatio)
This command enables to extend the waiting time for the response from the PCD.
brp_errcode brp_Iso14CE_GetExternalHfStatus(brp_protocol protocol, unsigned *ExtFieldStat)
Polls for an external HF field and returns the status in the ExtFieldStat variable.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
brp_errcode brp_Iso14CE_ActivateCardAPDU(brp_protocol protocol, bool SpecifyTimeoutApdu, bool AutoWTX, unsigned ATQA, brp_buf Snr, bool DSEqualToDR, bool DS8, bool DS4, bool DS2, bool DR8, bool DR4, bool DR2, unsigned FWT, unsigned TimeoutPCD, unsigned TimeoutApdu, brp_buf ATS, size_t ATS_len, brp_buf *FirstCmd, size_t *FirstCmd_len, brp_mempool *mempool)
This command starts the reader's passive mode, emulating an ISO14443-4 compatible card...