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

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... | |
Implementation of helper interfaces for RC663 Reader IC.
| phStatus_t phhalHw_Sam_Rc523_SetConfig | ( | phhalHw_Sam_DataParams_t * | pDataParams, |
| uint16_t | wConfig, | ||
| uint16_t | wValue | ||
| ) |
Set configuration parameter.
Rc523 Specific
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_UNSUPPORTED_PARAMETER | Configuration is not supported or invalid. |
| PH_ERR_INVALID_PARAMETER | Parameter value is invalid. |
| PH_ERR_PARAMETER_OVERFLOW | Setting the parameter value would lead to an overflow. |
| PH_ERR_INTERFACE_ERROR | Communication error. |
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wConfig | [In] Configuration Identifier. |
| [in] | wValue | [In] Configuration Value. |
| 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
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_PARAMETER | bUnit is invalid. |
| PH_ERR_INTERFACE_ERROR | Communication error. |
| [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. |
| 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.
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
| [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. |
| 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.
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [out] | pTime | [Out] Calculated time in microseconds from timer contents. |