BALTECH SDK wrapper functions reference

§ brp_Mif_ValueSL3()

brp_errcode brp_Mif_ValueSL3 ( brp_Mif_ValueSL3_t  params)

This command performs an operation on a value block.

It can be used for MIFARE Plus cards in security level 3.

Parameters
[in]paramsStruct with the following fields:
  • protocol used to execute the command
  • NoMacOnResp (in)
  • Cmd (in) Selects a value operation.
  • Block (in) Value block number.
  • DestBlock (in) Destination block number for combined IncrementTransfer or IncrementTransfer command.
  • Value (in) Value for Increment, Decrement, IncrementTransfer, IncrementTransfer.
  • TMCounterTMValue (out) Present if targeting a TMProtectedBlock which is configured to return TMC (4 bytes) and TMV (8 bytes)
  • TMCounterTMValue_len (out) Length of TMCounterTMValue (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