BALTECH Docs |
C API for BALTECH SDK
|
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 brp_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 brp_Iso14L4_SetupAPDU() command can be called anew if communication parameters with the PICC should be changed.
[in] | protocol | used to execute the command |
[in] | SendData | APDU information which shall be sent to the PICC. |
[in] | SendData_len | |
[out] | RecvData | APDU response received from the PICC. |
[out] | RecvData_len | |
[in] | mempool | is 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 |