RC663 Reader HAL.
More...
RC663 Reader HAL.
Note: This HAL takes care the "Request Guard Time".
- See also
- phpalI14443p3a_RequestA
-
phpalI14443p3a_WakeUpA
§ PHHAL_HW_RC663_ID
#define PHHAL_HW_RC663_ID 0x01 |
ID for Rc663 HAL component.
§ PHHAL_HW_RC663_DEFAULT_TIMEOUT
#define PHHAL_HW_RC663_DEFAULT_TIMEOUT 150U |
Default timeout in microseconds.
§ PHHAL_HW_RC663_SHADOW_COUNT
#define PHHAL_HW_RC663_SHADOW_COUNT 0x0010U |
Number of shadowed configurations.
§ PHHAL_HW_RC663_CONFIG_FIFOSIZE
§ PHHAL_HW_RC663_CONFIG_LOADREG_MODE
Enable (PH_ON) or disable (PH_OFF) LoadReg Mode.
If this mode is enabled (it's disabled by default) then LoadReg is used
if an operation mode changes instead of applying library constants.
This is useful if custom antenna configuration values are required to be applied.
The parameters for LoadReg are taken from pLoadRegConfig which is an input parameter
of phhalHw_Rc663_Init. Refer there for a detailed description of pLoadRegConfig.
§ phhalHw_Rc663_Init()
Initialize the HAL component.
A note on pLoadRegConfig:
This is used if PHHAL_HW_RC663_CONFIG_LOADREG_MODE is enabled.
It is defined as follows:
[MSB] [LSB]
31...............16..................8.................0
+------------------+------------------+----------------+
| wEEAddress (16b) | bRegAddress (8b) | bNumBytes (8b) |
+------------------+------------------+----------------+
- Returns
- Status code
- Return values
-
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
- Parameters
-
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | wSizeOfDataParams | Specifies the size of the data parameter structure. |
[in] | pBalDataParams | Pointer to the lower layers parameter structure. |
[in] | pLoadRegConfig | Pointer to configuration buffer for LoadReg mode; See description above. |
[in] | pTxBuffer | Pointer to global transmit buffer used by the phhalHw_Exchange() function. |
[in] | wTxBufSize | Size of the global transmit buffer. |
[in] | pRxBuffer | Pointer to global receive buffer used by the phhalHw_Exchange() function. |
[in] | wRxBufSize | Size of the global receive buffer. Specify the buffer +1 byte, because one byte is reserved for SPI communication. |