C API for BALTECH SDK

§ brp_Mif_ChangeValueBackup()

brp_errcode brp_Mif_ChangeValueBackup ( brp_protocol  protocol,
unsigned  Mode,
unsigned  Block,
unsigned  Value 
)

This command is identical to brp_Mif_ChangeValue(), but can only be used for MIFARE cards which support automatic transfer, such as Pro or Light MIFARE variants.

This command is not supported by LEGIC readers.

Parameters
[in]protocolused to execute the command
[in]ModeAccess mode. Possible values, 0x00: decrement, 0x01: increment, 0x02: restore/load.
[in]BlockBlock to load data from (only value blocks are supported).
[in]ValueValue to add/subtract. This parameter is ignored when Mode = 0x02.