C API for BALTECH SDK
iso14ce.h
Go to the documentation of this file.
1 
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)
20 
23 #define BRP_Iso14CE_ErrCom BRP_ERR_STATUS(0x4A00, 0x02)
24 
27 #define BRP_Iso14CE_ErrTransmission BRP_ERR_STATUS(0x4A00, 0x03)
28 
31 #define BRP_Iso14CE_ErrTimeout BRP_ERR_STATUS(0x4A00, 0x04)
32 
36 #define BRP_Iso14CE_ErrOverflow BRP_ERR_STATUS(0x4A00, 0x05)
37 
40 #define BRP_Iso14CE_ErrInternal BRP_ERR_STATUS(0x4A00, 0x06)
41 
44 #define BRP_Iso14CE_ErrDeselect BRP_ERR_STATUS(0x4A00, 0x07)
45 
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);
148 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);
183 brp_errcode brp_Iso14CE_ExtendWaitingTime(brp_protocol protocol, unsigned WaitingTimeout, unsigned WTXM, unsigned RefreshTimeRatio);
191 brp_errcode brp_Iso14CE_GetExternalHfStatus(brp_protocol protocol, unsigned* ExtFieldStat);
192 #endif
193 
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.
Definition: errorcodes.h:23
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:27
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.
Definition: common.h:61
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...