NXP Reader Library  v17.1.0.2535

Internal definitions. More...

Collaboration diagram for Internal:

Functions

phStatus_t phhalHw_Rc663_WriteFifo (phhalHw_Rc663_DataParams_t *pDataParams, uint8_t *pData, uint16_t wLength, uint16_t *pBytesWritten)
 Write Data to Fifo buffer. More...
 
phStatus_t phhalHw_Rc663_ReadFifo (phhalHw_Rc663_DataParams_t *pDataParams, uint16_t wDataSize, uint8_t *pData, uint16_t *pLength)
 Read Data from Fifo buffer. More...
 
phStatus_t phhalHw_Rc663_FlushFifo (phhalHw_Rc663_DataParams_t *pDataParams)
 Clear Fifo buffer. More...
 
phStatus_t phhalHw_Rc663_WriteData (phhalHw_Rc663_DataParams_t *pDataParams, uint8_t bAddress, uint8_t *pData, uint16_t wLength)
 Write multiple values to a single register address. More...
 
phStatus_t phhalHw_Rc663_ReadData (phhalHw_Rc663_DataParams_t *pDataParams, uint8_t bAddress, uint16_t wLength, uint8_t *pData)
 Read multiple values from single register address. More...
 
phStatus_t phhalHw_Rc663_SetCardMode (phhalHw_Rc663_DataParams_t *pDataParams, uint16_t wTxDataRate, uint16_t wRxDataRate, uint16_t wSubcarrier)
 Apply card mode according to given parameters. More...
 
phStatus_t phhalHw_Rc663_SetConfig_Int (phhalHw_Rc663_DataParams_t *pDataParams, uint16_t wConfig, uint16_t wValue)
 Set configuration parameter (Internal). More...
 
phStatus_t phhalHw_Rc663_SetRxWait (phhalHw_Rc663_DataParams_t *pDataParams, uint16_t wTimeEtu)
 Sets the RxWait time. More...
 
phStatus_t phhalHw_Rc663_SetTxWait (phhalHw_Rc663_DataParams_t *pDataParams, uint16_t wTimeUs)
 Sets the TxWait time in microseconds. More...
 
phStatus_t phhalHw_Rc663_SetFdt (phhalHw_Rc663_DataParams_t *pDataParams, uint8_t bUnit, uint16_t wTimeout)
 Sets the Frame Delay Time (Timeout). More...
 
phStatus_t phhalHw_Rc663_GetFdt (phhalHw_Rc663_DataParams_t *pDataParams, phStatus_t wExchangeStatus, uint32_t *pTime)
 Retrieves the Frame Delay Time of the last command. More...
 
phStatus_t phhalHw_Rc663_GetDigiDelay (phhalHw_Rc663_DataParams_t *pDataParams, uint8_t bIsTimeout, uint16_t *pDelayUs)
 Returns the delay of the digital circutry for the current protocol. More...
 
phStatus_t phhalHw_Rc663_GetTxBuffer (phhalHw_Rc663_DataParams_t *pDataParams, uint8_t bIsExchange, uint8_t **pTxBuffer, uint16_t *pTxBufferLen, uint16_t *pTxBufferSize)
 Returns the TxBuffer pointer, length and size. More...
 
phStatus_t phhalHw_Rc663_GetRxBuffer (phhalHw_Rc663_DataParams_t *pDataParams, uint8_t bIsExchange, uint8_t **pRxBuffer, uint16_t *pRxBufferLen, uint16_t *pRxBufferSize)
 Returns the RxBuffer pointer, length and size. More...
 
phStatus_t phhalHw_Rc663_MfcAuthenticate_Int (phhalHw_Rc663_DataParams_t *pDataParams, uint8_t bBlockNo, uint8_t bKeyType, uint8_t *pUid)
 Build and Execute MIFARE(R) Classic Authentication command. More...
 
phStatus_t phhalHw_Rc663_Command_Int (phhalHw_Rc663_DataParams_t *pDataParams, uint8_t bCmd, uint16_t wOption, uint8_t bIrq0WaitFor, uint8_t bIrq1WaitFor, uint8_t *pTxBuffer, uint16_t wTxLength, uint16_t wRxBufferSize, uint8_t *pRxBuffer, uint16_t *pRxLength)
 Execute a Reader-specific command. More...
 
phStatus_t phhalHw_Rc663_WaitIrq (phhalHw_Rc663_DataParams_t *pDataParams, uint8_t bEnableIrqs, uint8_t bWaitUntilPowerUp, uint8_t bIrq0WaitFor, uint8_t bIrq1WaitFor, uint8_t *pIrq0Reg, uint8_t *pIrq1Reg)
 Wait until one of the given interrupts occurs. More...
 
phStatus_t phhalHw_Rc663_EnableTestMode (phhalHw_Rc663_DataParams_t *pDataParams)
 Enables testmode in Rc663. More...
 
phStatus_t phhalHw_Rc663_EPCV2_Init (phhalHw_Rc663_DataParams_t *pDataParams)
 Initialize Rc663 registers for 18000p3m3 protocol. More...
 
phStatus_t phhalHw_Rc663_Cmd_Unlock (phhalHw_Rc663_DataParams_t *pDataParams)
 Unlock Rc663 registers for modifying the protected register content. More...
 

Timing related constants

#define PHHAL_HW_RC663_TIMER_RELOAD_MAX   0xFFFFU
 Maximum reload value of internal timers.
 
#define PHHAL_HW_RC663_TIMER0_FREQ   13.56f
 Internal timer frequency of Timer0.
 
#define PHHAL_HW_RC663_ETU_I14443   9.44f
 Duration of one ETU for ISO14443 at 106 kBit/s in [us].
 
#define PHHAL_HW_RC663_ETU_I15693   37.76f
 Duration of one ETU for ISO15693 in [us].
 
#define PHHAL_HW_RC663_ETU_EPCUID   37.76f
 Duration of one ETU for EPC/UID in [us].
 
#define PHHAL_HW_RC663_I14443_ADD_DELAY_US   15
 Additional digital timeout delay for ISO14443.
 
#define PHHAL_HW_RC663_I15693_ADD_DELAY_US   120
 Additional digital timeout delay for ISO15693.
 
#define PHHAL_HW_RC663_DIGI_DELAY_TXWAIT_DBFREQ   8U
 Chip digital delay in ETUs for TxWait.
 
#define PHHAL_HW_RC663_I18000P3M3_CRC_TYPE_PRESET   0x7AU
 CRC type and preset register value for I18000p3m3.
 

Memory related constants

#define PHHAL_HW_RC663_MAX_NUM_REGS   0x80U
 Maximum number of registers.
 
#define PHHAL_HW_RC663_MAX_NUM_KEYS   0x100U
 Maximum possible number of keys in the EEPROM.
 
#define PHHAL_HW_RC663_MAX_TX_SETTINGS   32U
 Maximum possible number of Tx-Settings in the EEPROM.
 
#define PHHAL_HW_RC663_MAX_RX_SETTINGS   64U
 Maximum possible number of Rx-Settings in the EEPROM.
 
#define PHHAL_HW_RC663_EEPROM_SIZE   0x2000U
 Size of the EEPROM.
 
#define PHHAL_HW_RC663_EEPROM_SECTION2_BEGIN   0xC0U
 Beginning of Section2 in the EEPROM.
 
#define PHHAL_HW_RC663_EEPROM_SECTION2_END   0x17FFU
 End of Section2 in the EEPROM.
 
#define PHHAL_HW_RC663_EEPROM_NUM_PAGES   0x80U
 Number of pages within EEPROM.
 
#define PHHAL_HW_RC663_EEPROM_PAGE_SIZE   0x40U
 Size of a page in EEPROM.
 

RXTX settings for #PHHAL_HW_RC663_CMD_LOADPROTOCOL

#define PHHAL_HW_RC663_RXTX_I14443A_106   0x00U
 ISO14443A Operating mode at 106kbit/s.
 
#define PHHAL_HW_RC663_RXTX_I14443A_212   0x01U
 ISO14443A Operating mode at 212kbit/s.
 
#define PHHAL_HW_RC663_RXTX_I14443A_424   0x02U
 ISO14443A Operating mode at 414kbit/s.
 
#define PHHAL_HW_RC663_RXTX_I14443A_848   0x03U
 ISO14443A Operating mode at 848kbit/s.
 
#define PHHAL_HW_RC663_RXTX_I14443B_106   0x04U
 ISO14443B Operating mode at 106kbit/s.
 
#define PHHAL_HW_RC663_RXTX_I14443B_212   0x05U
 ISO14443B Operating mode at 212kbit/s.
 
#define PHHAL_HW_RC663_RXTX_I14443B_424   0x06U
 ISO14443B Operating mode at 414kbit/s.
 
#define PHHAL_HW_RC663_RXTX_I14443B_848   0x07U
 ISO14443B Operating mode at 848kbit/s.
 
#define PHHAL_HW_RC663_RXTX_FELICA_212   0x08U
 FeliCa Operating mode at 212kbit/s.
 
#define PHHAL_HW_RC663_RXTX_FELICA_424   0x09U
 FeliCa Operating mode at 424kbit/s.
 
#define PHHAL_HW_RC663_RXTX_I15693_1OO4   0x0AU
 ISO15693 One-Out-Of-Four Operating mode.
 
#define PHHAL_HW_RC663_RXTX_I15693_1OO256   0x0CU
 ISO15693 One-Out-Of-256 Operating mode.
 
#define PHHAL_HW_RC663_RXTX_I15693_HIGH_SSC   0x0AU
 ISO15693 High-Speed (RX) Operating mode (Single Subcarrier).
 
#define PHHAL_HW_RC663_RXTX_I15693_FAST   0x0BU
 ISO15693 Fast-Speed (RX) Operating mode (Single Subcarrier).
 
#define PHHAL_HW_RC663_RXTX_I15693_HIGH_DSC   0x0CU
 ISO15693 High-Speed (RX) Operating mode (Dual Subcarrier).
 
#define PHHAL_HW_RC663_RXTX_EPC_UID   0x0DU
 ICode EPC/UID.
 
#define PHHAL_HW_RC663_RXTX_I18000P3M3_DS_M2   0x0EU
 ICode ISO18000-3 Mode3 424 kBit/s (M=2).
 
#define PHHAL_HW_RC663_RXTX_I18000P3M3_DS_M4   0x0FU
 ICode ISO18000-3 Mode3 424 kBit/s (M=4).
 
#define PHHAL_HW_RC663_RXTX_I18000P3M3_QS_M2   0x10U
 ICode ISO18000-3 Mode3 848 kBit/s (M=2).
 
#define PHHAL_HW_RC663_RXTX_I18000P3M3_QS_M4   0x11U
 ICode ISO18000-3 Mode3 848 kBit/s (M=4).
 

RS232 speed settings

#define PHHAL_HW_RC663_SERIALSPEED_7200   0xFAU
 7.200 kBit/s.
 
#define PHHAL_HW_RC663_SERIALSPEED_9600   0xEBU
 9.600 kBit/s.
 
#define PHHAL_HW_RC663_SERIALSPEED_14400   0xDAU
 14.400 kBit/s.
 
#define PHHAL_HW_RC663_SERIALSPEED_19200   0xCBU
 19.200 kBit/s.
 
#define PHHAL_HW_RC663_SERIALSPEED_38400   0xABU
 38.400 kBit/s.
 
#define PHHAL_HW_RC663_SERIALSPEED_57600   0x9AU
 57.500 kBit/s.
 
#define PHHAL_HW_RC663_SERIALSPEED_115200   0x7AU
 115.200 kBit/s.
 
#define PHHAL_HW_RC663_SERIALSPEED_128000   0x74U
 128.000 kBit/s.
 
#define PHHAL_HW_RC663_SERIALSPEED_230400   0x5AU
 230.400 kBit/s.
 
#define PHHAL_HW_RC663_SERIALSPEED_460800   0x3AU
 460.800 kBit/s.
 
#define PHHAL_HW_RC663_SERIALSPEED_921600   0x1CU
 921.600 kBit/s.
 
#define PHHAL_HW_RC663_SERIALSPEED_1228800   0x15U
 1.228.800 kBit/s.
 

MIFARE(R) Classic stuff

#define PHHAL_HW_RC663_MFC_AUTHA_CMD   0x60U
 MIFARE(R) Classic AUTHA command code.
 
#define PHHAL_HW_RC663_MFC_AUTHB_CMD   0x61U
 MIFARE(R) Classic AUTHB command code.
 
#define PHHAL_HW_RC663_MFC_KEY_LENGTH   0x06U
 Lengh of a MIFARE(R) Classic key.
 

Custom command option

#define PHHAL_HW_RC663_OPTION_FIFO_NOCLEAR   0x0080U
 Do not clear FIFO prior to command execution.
 

RC663 Derivatives IC ID

#define PHHAL_HW_CLRC663_PRODUCT_ID1   0x0140U
 Product ID for CLRC663.
 
#define PHHAL_HW_CLRC663_PRODUCT_ID2   0x0100U
 Product ID for CLRC663.
 
#define PHHAL_HW_MFRC631_PRODUCT_ID   0xC000U
 Product ID for MFRC632.
 
#define PHHAL_HW_MFRC630_PRODUCT_ID   0x8000U
 Product ID for MFRC630.
 
#define PHHAL_HW_SLRC610_PRODUCT_ID   0x2000U
 Product ID for SLRC610.
 

Detailed Description

Internal definitions.

Function Documentation

◆ phhalHw_Rc663_WriteFifo()

phStatus_t phhalHw_Rc663_WriteFifo ( phhalHw_Rc663_DataParams_t pDataParams,
uint8_t pData,
uint16_t  wLength,
uint16_t pBytesWritten 
)

Write Data to Fifo buffer.

Note that in opposite to phhalHw_Rc663_ReadFifo, this command only supports up to 255 bytes.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]pData[In] input data.
[in]wLength[In] length of input data.
[out]pBytesWritten[Out] Number of written bytes.

◆ phhalHw_Rc663_ReadFifo()

phStatus_t phhalHw_Rc663_ReadFifo ( phhalHw_Rc663_DataParams_t pDataParams,
uint16_t  wDataSize,
uint8_t pData,
uint16_t pLength 
)

Read Data from Fifo buffer.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]wDataSize[In] size of data buffer.
[out]pData[Out] output data.
[out]pLength[Out] number of output data bytes.

◆ phhalHw_Rc663_FlushFifo()

phStatus_t phhalHw_Rc663_FlushFifo ( phhalHw_Rc663_DataParams_t pDataParams)

Clear Fifo buffer.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.

◆ phhalHw_Rc663_WriteData()

phStatus_t phhalHw_Rc663_WriteData ( phhalHw_Rc663_DataParams_t pDataParams,
uint8_t  bAddress,
uint8_t pData,
uint16_t  wLength 
)

Write multiple values to a single register address.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bAddress[In] Start-Register Address
[in]pData[In] Register Values; uint8_t[wLength]
[in]wLength[In] Number of Values

◆ phhalHw_Rc663_ReadData()

phStatus_t phhalHw_Rc663_ReadData ( phhalHw_Rc663_DataParams_t pDataParams,
uint8_t  bAddress,
uint16_t  wLength,
uint8_t pData 
)

Read multiple values from single register address.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bAddress[In] Register Address
[in]wLength[In] Number of Values
[out]pData[Out] Register Values; uint8_t[wLength]

◆ phhalHw_Rc663_SetCardMode()

phStatus_t phhalHw_Rc663_SetCardMode ( phhalHw_Rc663_DataParams_t pDataParams,
uint16_t  wTxDataRate,
uint16_t  wRxDataRate,
uint16_t  wSubcarrier 
)

Apply card mode according to given parameters.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]wTxDataRate[In] TxDataRate HAL config.
[in]wRxDataRate[In] RxDataRate HAL config.
[in]wSubcarrier[In] Subcarrier HAL config.

◆ phhalHw_Rc663_SetConfig_Int()

phStatus_t phhalHw_Rc663_SetConfig_Int ( phhalHw_Rc663_DataParams_t pDataParams,
uint16_t  wConfig,
uint16_t  wValue 
)

Set configuration parameter (Internal).

This is needed since phhalHw_Rc663_SetCardMode would cause a recursive call to phhalHw_SetConfig which is bad for 805x based systems.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
PH_ERR_UNSUPPORTED_PARAMETERConfiguration is not supported or invalid.
PH_ERR_INVALID_PARAMETERParameter value is invalid.
PH_ERR_PARAMETER_OVERFLOWSetting the parameter value would lead to an overflow.
PH_ERR_INTERFACE_ERRORCommunication error.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]wConfig[In] Configuration Identifier.
[in]wValue[In] Configuration Value.

◆ phhalHw_Rc663_SetRxWait()

phStatus_t phhalHw_Rc663_SetRxWait ( phhalHw_Rc663_DataParams_t pDataParams,
uint16_t  wTimeEtu 
)

Sets the RxWait time.

Note: RxWait is defined between the last transmitted bit and the activation of the receiver.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]wTimeEtu[In] RxWait time in ETUs.

◆ phhalHw_Rc663_SetTxWait()

phStatus_t phhalHw_Rc663_SetTxWait ( phhalHw_Rc663_DataParams_t pDataParams,
uint16_t  wTimeUs 
)

Sets the TxWait time in microseconds.

Note: TxWait is defined between the last received bit and the next transmitted bit.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]wTimeUs[In] TxWait time in microseconds.

◆ phhalHw_Rc663_SetFdt()

phStatus_t phhalHw_Rc663_SetFdt ( phhalHw_Rc663_DataParams_t pDataParams,
uint8_t  bUnit,
uint16_t  wTimeout 
)

Sets the Frame Delay Time (Timeout).

Note: Frame Delay Time is defined between the last transmitted bit and the first received bit.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bUnit[In] Unit of given timeout value (either PHHAL_HW_TIME_MICROSECONDS or PHHAL_HW_TIME_MILLISECONDS).
[in]wTimeout[In] Timeout value.

◆ phhalHw_Rc663_GetFdt()

phStatus_t phhalHw_Rc663_GetFdt ( phhalHw_Rc663_DataParams_t pDataParams,
phStatus_t  wExchangeStatus,
uint32_t pTime 
)

Retrieves the Frame Delay Time of the last command.

Note: Frame Delay Time is defined between the last transmitted bit and the first received bit.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]wExchangeStatus[In] Status code returned by exchange function.
[out]pTime[Out] Calculated time in microseconds from timer contents.

◆ phhalHw_Rc663_GetDigiDelay()

phStatus_t phhalHw_Rc663_GetDigiDelay ( phhalHw_Rc663_DataParams_t pDataParams,
uint8_t  bIsTimeout,
uint16_t pDelayUs 
)

Returns the delay of the digital circutry for the current protocol.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bIsTimeout[In] Wheter the returned delay is added to a timeout (PH_ON) or is used for measurement (PH_OFF).
[out]pDelayUs[Out] The digital delay in microseconds.

◆ phhalHw_Rc663_GetTxBuffer()

phStatus_t phhalHw_Rc663_GetTxBuffer ( phhalHw_Rc663_DataParams_t pDataParams,
uint8_t  bIsExchange,
uint8_t **  pTxBuffer,
uint16_t pTxBufferLen,
uint16_t pTxBufferSize 
)

Returns the TxBuffer pointer, length and size.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bIsExchange[In] Whether this is for Exchange (PH_ON) or not (PH_OFF).
[out]pTxBuffer[Out] Pointer to the TxBuffer.
[out]pTxBufferLen[Out] Number of bytes already in the TxBuffer.
[out]pTxBufferSize[Out] Size of the TxBuffer.

◆ phhalHw_Rc663_GetRxBuffer()

phStatus_t phhalHw_Rc663_GetRxBuffer ( phhalHw_Rc663_DataParams_t pDataParams,
uint8_t  bIsExchange,
uint8_t **  pRxBuffer,
uint16_t pRxBufferLen,
uint16_t pRxBufferSize 
)

Returns the RxBuffer pointer, length and size.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bIsExchange[In] Whether this is for Exchange (PH_ON) or not (PH_OFF).
[out]pRxBuffer[Out] Pointer to the RxBuffer.
[out]pRxBufferLen[Out] Number of bytes already in the RxBuffer.
[out]pRxBufferSize[Out] Size of the RxBuffer.

◆ phhalHw_Rc663_MfcAuthenticate_Int()

phStatus_t phhalHw_Rc663_MfcAuthenticate_Int ( phhalHw_Rc663_DataParams_t pDataParams,
uint8_t  bBlockNo,
uint8_t  bKeyType,
uint8_t pUid 
)

Build and Execute MIFARE(R) Classic Authentication command.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bBlockNo[In] Blocknumber on card to authenticate to.
[in]bKeyType[In] Either PHHAL_HW_MFC_KEYA or PHHAL_HW_MFC_KEYB.
[in]pUid[In] Serial number of current cascade level; uint8_t[4].

◆ phhalHw_Rc663_Command_Int()

phStatus_t phhalHw_Rc663_Command_Int ( phhalHw_Rc663_DataParams_t pDataParams,
uint8_t  bCmd,
uint16_t  wOption,
uint8_t  bIrq0WaitFor,
uint8_t  bIrq1WaitFor,
uint8_t pTxBuffer,
uint16_t  wTxLength,
uint16_t  wRxBufferSize,
uint8_t pRxBuffer,
uint16_t pRxLength 
)

Execute a Reader-specific command.

Internal function for executing all commands except Transceive/Transmit/Receive.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bCmd[In] Command code.
[in]wOption[In] Option parameter.
[in]bIrq0WaitFor[In] Bitmask of interrupts in Irq0 register to wait for.
[in]bIrq1WaitFor[In] Bitmask of interrupts in Irq1 register to wait for.
[in]pTxBuffer[In] Data to transmit.
[in]wTxLength[In] Length of input data.
[in]wRxBufferSize[In] Size of receive buffer.
[out]pRxBuffer[Out] Pointer to received data.
[out]pRxLength[Out] Number of received data bytes.

◆ phhalHw_Rc663_WaitIrq()

phStatus_t phhalHw_Rc663_WaitIrq ( phhalHw_Rc663_DataParams_t pDataParams,
uint8_t  bEnableIrqs,
uint8_t  bWaitUntilPowerUp,
uint8_t  bIrq0WaitFor,
uint8_t  bIrq1WaitFor,
uint8_t pIrq0Reg,
uint8_t pIrq1Reg 
)

Wait until one of the given interrupts occurs.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bEnableIrqs[In] Whether to enable (PH_ON) Irqs to wait for or not (PH_OFF).
[in]bWaitUntilPowerUp[In] Whether to wait (PH_ON) until the StandBy bit in command register is cleared or not (PH_OFF).
[in]bIrq0WaitFor[In] Bitmask of interrupts in Irq0 register to wait for.
[in]bIrq1WaitFor[In] Bitmask of interrupts in Irq1 register to wait for.
[out]pIrq0Reg[Out] Contents of Irq0 register.
[out]pIrq1Reg[Out] Contents of Irq1 register.

◆ phhalHw_Rc663_EnableTestMode()

phStatus_t phhalHw_Rc663_EnableTestMode ( phhalHw_Rc663_DataParams_t pDataParams)

Enables testmode in Rc663.

This is required for operating in ISO18000p3m3 mode

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.

◆ phhalHw_Rc663_EPCV2_Init()

phStatus_t phhalHw_Rc663_EPCV2_Init ( phhalHw_Rc663_DataParams_t pDataParams)

Initialize Rc663 registers for 18000p3m3 protocol.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.

◆ phhalHw_Rc663_Cmd_Unlock()

phStatus_t phhalHw_Rc663_Cmd_Unlock ( phhalHw_Rc663_DataParams_t pDataParams)

Unlock Rc663 registers for modifying the protected register content.

This is a bug in RC663 h/w

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.