Supported ReaderIC commands.
More...
|
| phStatus_t | phhalHw_Rc523_Cmd_Mem (phhalHw_Rc523_DataParams_t *pDataParams, uint8_t *pDataIn, uint8_t bDataLength, uint8_t *pDataOut) |
| | Transfers either 25 bytes into internal buffer or returns 25 bytes from internal buffer. More...
|
| |
| phStatus_t | phhalHw_Rc523_Cmd_Config (phhalHw_Rc523_DataParams_t *pDataParams, uint8_t *pSensRes, uint8_t *pNfcId1, uint8_t SelRes, uint8_t *pPollingResp, uint8_t bNfcId3) |
| | Stores data for phhalHw_Rc523_Cmd_Autocoll command into internal buffer. More...
|
| |
| phStatus_t | phhalHw_Rc523_Cmd_GenerateRandomId (phhalHw_Rc523_DataParams_t *pDataParams) |
| | Generates a 10 byte random ID. More...
|
| |
| phStatus_t | phhalHw_Rc523_Cmd_CalcCrc (phhalHw_Rc523_DataParams_t *pDataParams, uint8_t *pData, uint16_t wDataLength, uint16_t *pCrcResult) |
| | Calculates a CRC over the input data and returns the result. More...
|
| |
| phStatus_t | phhalHw_Rc523_Cmd_Transmit (phhalHw_Rc523_DataParams_t *pDataParams, uint16_t wOption, uint8_t *pTxBuffer, uint16_t wTxLength) |
| | Transmit bytes to card without starting receiver afterwards. More...
|
| |
| phStatus_t | phhalHw_Rc523_Cmd_Receive (phhalHw_Rc523_DataParams_t *pDataParams, uint16_t wOption, uint8_t **ppRxBuffer, uint16_t *pRxLength) |
| | Start receiver and wait until reception or timeout. More...
|
| |
| phStatus_t | phhalHw_Rc523_Cmd_Autocoll (phhalHw_Rc523_DataParams_t *pDataParams, uint8_t **ppRxBuffer, uint16_t *pRxLength) |
| | Handles Felica polling or MIFARE anticollision. More...
|
| |
| phStatus_t | phhalHw_Rc523_Cmd_SoftReset (phhalHw_Rc523_DataParams_t *pDataParams) |
| | Performs a Softreset. More...
|
| |
Supported ReaderIC commands.
◆ phhalHw_Rc523_Cmd_Mem()
Transfers either 25 bytes into internal buffer or returns 25 bytes from internal buffer.
If bDataLength equals zero, 25 bytes from the internal buffer are put into pDataOut.
If bDataLength is 25, 25 bytes from pDataIn are copied into the internal buffer.
- Returns
- Status code
- Return values
-
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | pDataIn | [In] 25 bytes In-data or ignored if bDataLength equals zero. |
| [in] | bDataLength | [In] Data length. Either zero or 25. |
| [out] | pDataOut | [Out] 25 bytes Out-data or ignored if bDataLength is nonzero. |
◆ phhalHw_Rc523_Cmd_Config()
Stores data for phhalHw_Rc523_Cmd_Autocoll command into internal buffer.
Note: Only applicable if in Target mode (e.g. PHHAL_HW_CARDTYPE_I18092MPT).
- Returns
- Status code
- Return values
-
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | pSensRes | [In] 2 bytes. |
| [in] | pNfcId1 | [In] 3 bytes; The first NfcId1 byte is fixed to 08h and the check byte is calculated automatically. |
| [in] | SelRes | [In] 1 byte. |
| [in] | pPollingResp | [In] 2 bytes (shall be 01h, FEh) + 6 bytes NfcId2 + 8 bytes Pad + 2 bytes SystemCode. |
| [in] | bNfcId3 | [In] 1 byte. |
◆ phhalHw_Rc523_Cmd_GenerateRandomId()
Generates a 10 byte random ID.
The generated RandomId is stored in the internal buffer (the first 10 bytes get overridden).
It can be retrieved using the function phhalHw_Rc523_Cmd_Mem.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
◆ phhalHw_Rc523_Cmd_CalcCrc()
Calculates a CRC over the input data and returns the result.
Note: The CRC calculation parameters are taken from the respective registers.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | pData | [In] CRC input data. |
| [in] | wDataLength | [In] Length of input data. |
| [out] | pCrcResult | [Out] Calculated CRC. |
◆ phhalHw_Rc523_Cmd_Transmit()
Transmit bytes to card without starting receiver afterwards.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wOption | [In] Option parameter. |
| [in] | pTxBuffer | [In] Data to transmit. |
| [in] | wTxLength | [In] Length of data to transmit. |
◆ phhalHw_Rc523_Cmd_Receive()
Start receiver and wait until reception or timeout.
- Returns
- Status code
- Return values
-
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wOption | [In] Option parameter. |
| [out] | ppRxBuffer | [Out] Pointer to received data. |
| [out] | pRxLength | [Out] Number of received data bytes. |
◆ phhalHw_Rc523_Cmd_Autocoll()
Handles Felica polling or MIFARE anticollision.
Only applicable if in Target mode (e.g. PHHAL_HW_CARDTYPE_I18092MPT).
Note: Ensure that the correct configuration has been loaded using the phhalHw_Rc523_Cmd_Config command.
- Returns
- Status code
- Return values
-
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [out] | ppRxBuffer | [Out] Pointer to received data. |
| [out] | pRxLength | [Out] Number of received data bytes. |
◆ phhalHw_Rc523_Cmd_SoftReset()
Performs a Softreset.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |