![]()  | 
     BALTECH Docs | 
    C API for BALTECH SDK
   
    
   
   | 
   
| 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.
| [in] | protocol | used to execute the command | 
| [in] | NoMacOnResp | |
| [in] | Cmd | Selects 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] | Block | Value block number. | 
| [in] | DestBlock | Destination block number for combined IncrementTransfer or IncrementTransfer command. | 
| [in] | Value | Value for Increment, Decrement, IncrementTransfer, IncrementTransfer. | 
| [out] | TMCounterTMValue | Present if targeting a TMProtectedBlock which is configured to return TMC (4 bytes) and TMV (8 bytes) | 
| [out] | TMCounterTMValue_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 |