C API for BALTECH SDK

§ brp_Iso14a_TransparentCmd()

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 data stream to the host.

Parameters
[in]protocolused to execute the command
[in]EnMifBwProtEnables Mifare backwards compatibility protocol: * Data bytes sent to the card are counted in Bytes, and bits 0..3 of Mode bit mask are taken into account. * Data bytes received from the card are counted in Bytes, 4 bit error codes (Mifare, Mifare+) are counted as one byte. * First data byte in answer (byte 2) specifies data type: 0x00 for normal data, 0x01 for 4 bit error codes.
[in]EnBitmodeEnable bit mode used for anti-collision sequence (send single bits instead of whole bytes). When this flag is set, the EnParity , ParityMode , EnCRCTX , and EnCRCRX flags will be automatically disabled by the reader and therefore will have no effect. SendDataLen and RcvDataLen are interpreted in bits instead of bytes.
[in]EnCRCRXEnable CRC check over received data.
[in]EnCRCTXEnable CRC check over transmitted data.
[in]ParityModeToggle even/odd parity mode. ISO 14443 (Type A) uses odd parity. Possible values are 0 (even parity) and 1 (odd parity).
[in]EnParityParity generation is enabled when this flag is set.
[in]SendDataLenNumber of bytes to send.
[in]TimeoutTimeout in ms between sending the last bit to the card and receiving the first bit from the card.
[in]DSIDivisor Send/Receive Integer (DSI/DRI) This parameter is mapped to the Divisor Send/Receive (DS/DI) value, which determines bit rate for sending data from PICC to PCD. The possible DS/DR values (mapped to the DSI/DRI index) are listed below.
[in]DRIDivisor Send/Receive Integer (DSI/DRI) This parameter is mapped to the Divisor Send/Receive (DS/DI) value, which determines bit rate for sending data from PICC to PCD. The possible DS/DR values (mapped to the DSI/DRI index) are listed below.
[in]SendDataData to send Bits will always be transferred LSB first.
[in]SendData_len
[out]RcvDataReturned data
[out]RcvData_len
[in]mempoolis used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool