NXP Reader Library  v17.1.0.2535

Implementation of helper interfaces for RC663 Reader IC. More...

Collaboration diagram for RC523 Reader IC:

Modules

 Register Definitions for RC523
 Register definitions for Rc523.
 

Macros

#define PHHAL_HW_SAM_RC523_TIMER_FREQ   13.56f
 RC internal timer frequency.
 
#define PHHAL_HW_SAM_RC523_ETU_106   9.44f
 Duration of one ETU at 106 kBit/s in [us].
 
#define PHHAL_HW_SAM_RC523_TIMER_MAX_VALUE_US   6596996
 (RC523) Maximum timer value in microseconds.
 
#define PHHAL_HW_SAM_RC523_TIMER_SHIFT   4.8f
 (RC523) Shift of the internal RC timer in ETUs.
 

Functions

phStatus_t phhalHw_Sam_Rc523_SetConfig (phhalHw_Sam_DataParams_t *pDataParams, uint16_t wConfig, uint16_t wValue)
 Set configuration parameter. More...
 
phStatus_t phhalHw_Sam_Rc523_Wait (phhalHw_Sam_DataParams_t *pDataParams, uint8_t bUnit, uint16_t wTimeout)
 Blocks until the time given by wTimeout elapsed. More...
 
phStatus_t phhalHw_Sam_Rc523_SetFdt (phhalHw_Sam_DataParams_t *pDataParams, uint8_t bUnit, uint16_t wTimeout)
 Sets the Frame Delay Time (Timeout). More...
 
phStatus_t phhalHw_Sam_Rc523_GetFdt (phhalHw_Sam_DataParams_t *pDataParams, uint32_t *pTime)
 Retrieves the Frame Delay Time of the last command. More...
 

Detailed Description

Implementation of helper interfaces for RC663 Reader IC.

Function Documentation

◆ phhalHw_Sam_Rc523_SetConfig()

phStatus_t phhalHw_Sam_Rc523_SetConfig ( phhalHw_Sam_DataParams_t pDataParams,
uint16_t  wConfig,
uint16_t  wValue 
)

Set configuration parameter.

Rc523 Specific

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_Sam_Rc523_Wait()

phStatus_t phhalHw_Sam_Rc523_Wait ( phhalHw_Sam_DataParams_t pDataParams,
uint8_t  bUnit,
uint16_t  wTimeout 
)

Blocks until the time given by wTimeout elapsed.

Rc523 Specific

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
PH_ERR_INVALID_PARAMETERbUnit is invalid.
PH_ERR_INTERFACE_ERRORCommunication error.
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_Sam_Rc523_SetFdt()

phStatus_t phhalHw_Sam_Rc523_SetFdt ( phhalHw_Sam_DataParams_t pDataParams,
uint8_t  bUnit,
uint16_t  wTimeout 
)

Sets the Frame Delay Time (Timeout).

Rc523 Specific 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_Sam_Rc523_GetFdt()

phStatus_t phhalHw_Sam_Rc523_GetFdt ( phhalHw_Sam_DataParams_t pDataParams,
uint32_t pTime 
)

Retrieves the Frame Delay Time of the last command.

Rc523 Specific 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.
[out]pTime[Out] Calculated time in microseconds from timer contents.