BALTECH SDK wrapper functions reference

§ brp_Iso14L4_ExchangeAPDU()

brp_errcode brp_Iso14L4_ExchangeAPDU ( brp_Iso14L4_ExchangeAPDU_t  params)

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.

Parameters
[in]paramsStruct with the following fields:
  • protocol used to execute the command
  • SendData (in) APDU information which shall be sent to the PICC.
  • SendData_len (in) Length of SendData (in bytes).
  • RecvData (out) APDU response received from the PICC.
  • RecvData_len (out) Length of RecvData (in bytes).
  • mempool (in) 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