C API for BALTECH SDK

§ brp_Iso14L4_ExchangeAPDU()

brp_errcode brp_Iso14L4_ExchangeAPDU ( brp_protocol  protocol,
brp_buf  SendData,
size_t  SendData_len,
brp_buf RecvData,
size_t *  RecvData_len,
brp_mempool mempool 
)

This command allows to transmit/receive Application Protocol Data Units (APDUs) according to the ISO 14443-4 standard.

The Iso14L4.SetupAPDU command must be run before Iso14L4.ExchangeAPDU in order to select the required PICC and set the appropriate communication parameters. If an error occurs during the execution of Iso14L4.ExchangeAPDU, it is mandatory to reselect the PICC. The Iso14L4.SetupAPDU command can be called anew if communication parameters with the PICC should be changed.

Parameters
[in]protocolused to execute the command
[in]SendDataAPDU information which shall be sent to the PICC.
[in]SendData_len
[out]RecvDataAPDU response received from the PICC.
[out]RecvData_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