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
14 of 47
PH_ERR_INTEGRITY_ERROR
- A data integrity error has been detected. Possible cause can
be a wrong parity or a wrong CRC.
PH_ERR_SUCCESS
- operation successful.
even if waterlevel reached no error indicated also
Other: depending on implementation and underlaying component.
For further information of particular error see CLRC663 datasheet [2].
2.1.8 Transmit -
phhalHw_Rc663_Cmd_Transmit()
This function just transmits data from the transmit buffer without starting receiving
afterwards.
phStatus_t phhalHw_Rc663_Cmd_Transmit(
phhalHw_Rc663_DataParams_t * pDataParams, [In]
uint16_t wOption, [In]
uint8_t *pTxBuffer, [In]
uint16_t wTxLength ); [In]
*pDataParams: pointer to the HAL layer data parameter structure.
pDataParams->wMaxPrecachedBytes
: defines maximal amount of data that into FIFO buffer.
Use the
phhalHw_SetConfig(pDataParams, PHHAAL_HW_MAX_PRECACHED_BYTES,
customPrecacheBufferSize)
function to set custom number of precached bytes.
wOption: option parameter must be only one of following values, else function returns
error status:
PH_EXCHANGE_BUFFERED_BIT
buffers Tx
-Data into internal buffer instead of transmitting it.
PH_EXCHANGE_LEAVE_BUFFER_BIT
does not clear the internal buffer before operation. If this bit
is set and data is transmitted, the contents of the internal buffer are sent first.
PHHAL_HW_RC663_OPTION_RXTX_TIMER_START
starts timer after transmission before reception,
reset timer counter value
*pTxBuffer: data to transmit.
wTxLength: length of data to transmit.
returnValues:
PH_ERR_INVALID_PARAMETER
invalid value of the
wOption
parameter.
PH_ERR_INTERNAL_ERROR
‘No data’ error. Data should be sent, but no data is in FIFO.
PH_ERR_BUFFER_OVERFLOW
Data written into the FIFO when it is already full.
PH_ERR_READ_WRITE_ERROR
Data was written into the FIFO, during a transmission of a
possible CRC, during "RxWait", "Wait for data" or "Receiving" state, or during an
authentication command.
PH_ERR_SUCCESS
- operation successful.
Other: depending on implementation and underlaying component.
2.1.9 WriteE2
- phhalHw_Rc663_Cmd_WriteE2
Write one byte of data to the given EEPROM address. There is no software waiting loop
to protect program flow from delay, while writing data into EEPROM.