![]() |
BALTECH Docs |
BALTECH SDK wrapper functions reference
|
| brp_errcode brp_Mif_ChangeValue | ( | brp_Mif_ChangeValue_t | params | ) |
This command uses the value block specified by the Block parameter and performs an operation given by the Mode parameter.
The result is stored in the card's Transfer Buffer.
Mode = 1 increments the value , Mode = 0 decrements the value, Mode = 0x02 simply transfers the value to the Transfer Buffer - the Value parameter is ignored.
In order to persistently store the calculated value on the card, a transfer operation, using the brp_Mif_TransferBlock() command, has to be performed directly after the completion of this command.
This command can be used for MIFARE Classic cards and only works on value sectors.
This command is not supported by LEGIC readers.
| [in] | params | Struct with the following fields:
|