User manual
NXP Semiconductors
UM10663
NXP Reader Library User Manual
UM10663
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2013. All rights reserved.
User Manual
COMPANY PUBLIC
Rev. 1.2 — 24 July 2013
257412
33 of 47
uint8_t bBlockNo, [In]
uint8_t * pValue ); [In]
*pDataParams: pointer MIFARE Classic the AL layer data parameter structure.
bBlockNo: block number to be decremented.
*pValue: pValue[4] containing value (LSB first) to be decremented on the MIFARE(R)
card
returnValues:
PH_ERR_SUCCESS
- operation successful.
Other: depending on implementation and underlaying component.
2.4.7 Restore
- phalMfc_Restore()
It copies the value of the addressed block into a volatile memory.
phStatus_t phalMfc_Restore(
void * pDataParams, [In]
uint8_t bBlockNo ); [In]
*pDataParams: pointer to the MIFARE Classic AL layer data parameter structure.
bBlockNo: block number the transfer buffer shall be restored from.
returnValues:
PH_ERR_SUCCESS
- operation successful.
Other: depending on implementation and underlaying component.
2.4.8 Transfer
- phalMfc_Transfer()
This function writes the value stored in the volatile memory into one MIFARE Classic
block.
phStatus_t phalMfc_Transfer(
void * pDataParams, [In]
uint8_t bBlockNo ); [In]
*pDataParams: pointer to the MIFARE Classic AL layer data parameter structure.
bBlockNo: block number the transfer buffer shall be transferred to.
returnValues:
PH_ERR_SUCCESS
- operation successful.
Other: depending on implementation and underlaying component.
2.4.9 IncrementTransfer
- phalMfc_IncrementTransfer()
This function executes both Increment and Transfer command respectively. Value from
source block is copied into volatile memory where it is incremented by given value then
stored into destination in EEPROM memory. All the mentioned is executed within the
MIFARE Classic card.
phStatus_t phalMfc_IncrementTransfer(
*pDataParams, [In]
uint8_t bSrcBlockNo, [In]
uint8_t bDstBlockNo, [In]
uint8_t * pValue ); [In]
*pDataParams: pointer to the MIFARE Classic AL layer data parameter structure.