C API for BALTECH SDK

§ brp_Mif_ValueSL3()

brp_errcode brp_Mif_ValueSL3 ( brp_protocol  protocol,
unsigned  NoMacOnResp,
unsigned  Cmd,
unsigned  Block,
unsigned  DestBlock,
unsigned  Value,
brp_buf TMCounterTMValue,
size_t *  TMCounterTMValue_len,
brp_mempool mempool 
)

This command performs an operation on a value block.

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

Parameters
[in]protocolused to execute the command
[in]NoMacOnResp
[in]CmdSelects a value operation. 0 - Increment: Increments a value block by the given value and stores the result in the Transfer Buffer. 1 - Decrement: Decrements a value block by the given value and stores the result in the Transfer Buffer. 2 - Transfer: Transfers the content of the Transfer Buffer to the specified address. Can only be executed after an Increment, Decrement, IncrementTransfer, DecrementTransfer, or Restore command. 3 - IncrementTransfer: Combined Increment and Transfer. 4 - DecrementTransfer: Combined Decrement and Transfer. 5 - Restore: Copies the value block content to the TransferBuffer.
[in]BlockValue block number.
[in]DestBlockDestination block number for combined IncrementTransfer or IncrementTransfer command.
[in]ValueValue for Increment, Decrement, IncrementTransfer, IncrementTransfer.
[out]TMCounterTMValuePresent if targeting a TMProtectedBlock which is configured to return TMC (4 bytes) and TMV (8 bytes)
[out]TMCounterTMValue_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