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.224 July 2013
257412
15 of 47
phStatus_t phhalHw_Rc663_Cmd_WriteE2(
phhalHw_Rc663_DataParams_t * pDataParams, [In]
uint16_t wAddress, [In]
uint8_t bData ); [In]
*pDataParams: pointer to the HAL layer data parameter structure.
wAddress: address in EEPROM, where data byte shall be written to. Firmware does not
verify validity of address.
bData: data byte to be written.
returnValues:
PH_ERR_READ_WRITE_ERROR
error occurred during writing data into EEPROM invalid
wAddress
parameter
PH_ERR_SUCCESS
- operation successful.
Other: depending on implementation and underlaying component.
2.1.10 WriteE2 Page
- phhalHw_Rc663_Cmd_WriteE2Page
Write up to 64 bytes of data to a given EEPROM page. There is no software waiting loop
to stop program flow, while writing data into EEPROM. In comparison with previous
function, this function handles medium amount of data.
phStatus_t phhalHw_Rc663_Cmd_WriteE2Page(
phhalHw_Rc663_DataParams_t * pDataParams, [In]
uint16_t wAddress, [In]
uint8_t *pData, [In]
uint8_t bDataLen ); [In]
*pDataParams: pointer to the HAL layer data parameter structure.
wAddress: 2 byte address. Better said page number in range from 0 to 128.
*pData: pointer to data byte array to be stored in EEPROM.
bDataLen: length of data to be written, up to 64 bytes.
returnValues:
PH_ERR_INVALID_PARAMETER
-
wAddress
greater than 64
-
bDataLen
out of range 0 128
PH_ERR_READ_WRITE_ERROR
error occurred during writing data into EEPROM
PH_ERR_SUCCESS
- operation successful.
Other: depending on implementation and underlaying component.
2.1.11 ReadE2
- phhalHw_Rc663_Cmd_ReadE2()
This function reads up to 256 bytes from the EEPROM of the reader. Since all requested
data are firstly loaded into FIFO buffer, High Alert Interrupt is enabled. This causes abort
as soon as loaded data in FIFO reaches FIFO top Waterlevel defined in Waterlevel (03h)
register. Outside of this function, you can increase FIFO size from default 256 to 512
bytes by setting FIFO. Use
phhalHw_SetConfig(pDataParam,
PHHAL_HW_RC663_CONFIG_FIFOSIZE, PHHAL_HW_RC663_VALUE_FIFOSIZE_512)
function (see
section 2.2.3) to increase FIFO size (remember, this clears FIFO also). The Waterlevel is
set one less than actual FIFO size by default.