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
32 of 47
- data or address bytes within the 16 byte receive buffer do not
satisfy MIFARE Block data rules according to Fig 4.
PH_ERR_SUCCESS
- operation successful.
Other: depending on implementation and underlaying component.
2.4.4 WriteValue
- phalMfc_WriteValue()
Firstly, this function creates from 4 byte input value and input address the 16 byte
formatted structure according to Fig 4. Then it performs MIFARE Classic Write command
of that 16 byte value. Formatting is done automatically by MCU software -
phalMfc_Int_CreateValueBlockFormat()
.
phStatus_t phalMfc_WriteValue(
void * pDataParams, [In]
uint8_t bBlockNo, [In]
uint8_t * pValue, [In]
uint8_t bAddrData ) [In]
*pDataParams: pointer to the MIFARE Classic AL layer data parameter structure.
bBlockNo: block number to be written into.
*pValue: 4 byte array to be written to the MIFARE Classic card value block. This function
converts and includes it to the 16 byte format ready to be written.
bAddrData: one byte array of address data to be written to the MIFARE Classic card
value block. This function converts and includes it to the 16 byte format ready to be
written.
returnValues:
PH_ERR_SUCCESS
- operation successful.
Other: depending on implementation and underlaying component.
2.4.5 Increment
- phalMfc_Increment()
It adds the operand to the value of the addressed block, and stores the result in a volatile
phStatus_t phalMfc_Increment(
void * pDataParams, [In]
uint8_t bBlockNo, [In]
uint8_t * pValue ) [In]
*pDataParams: pointer to the MIFARE Classic AL layer data parameter structure.
bBlockNo: block number to be incremented.
*pValue: pValue[4] containing value (LSB first) to be incremented on the MIFARE(R)
card.
returnValues:
PH_ERR_SUCCESS
- operation successful.
Other: depending on implementation and underlaying component.
2.4.6 Decrement
- phalMfc_Decrement()
It subtracts the operand from the value of the addressed block, and stores the result in a
volatile memory.
phStatus_t phalMfc_Decrement(
void * pDataParams, [In]