Mif.ValueSL3

This command performs an operation on a value block.

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

Properties

Parameters (request frame)

Name Type/Size Description
- Bit mask (8 bits) -
RFU Integer (bit mask area 0xFE) Zero padding
NoMacOnResp Integer (bit 0x01) -
Cmd Integer (8 bits) 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.

Block Integer (16 bits) Value block number.
Optional field, condition: (Cmd == 3) or (Cmd == 4)
DestBlock Integer (16 bits) Destination block number for combined IncrementTransfer or IncrementTransfer command.
Optional field, condition: (Cmd == 0) or (Cmd == 1) or (Cmd == 3) or (Cmd == 4)
Value Integer (32 bits) Value for Increment, Decrement, IncrementTransfer, IncrementTransfer.

Returned values (response frame)

Name Type/Size Description
Length of TMCounterTMValue Integer (8 bits) Length of TMCounterTMValue in byte
TMCounterTMValue Raw data Present if targeting a TMProtectedBlock which is configured to return TMC (4 bytes) and TMV (8 bytes)