SAM commands used for performing CommitReaderID in S mode for MifarePlus EV1 and MIFARE DESFire EV2 PICC. More...

Functions | |
| phStatus_t | phhalHw_SamAV3_Cmd_SAM_CommitReaderID_Part1 (phhalHw_SamAV3_DataParams_t *pDataParams, uint8_t bState, uint16_t wBlockNr, uint8_t **ppResponse, uint16_t *pRespLen) |
| Performs CommitReaderID command execution part 1 in S mode. More... | |
| phStatus_t | phhalHw_SamAV3_Cmd_SAM_CommitReaderID_Part2 (phhalHw_SamAV3_DataParams_t *pDataParams, uint8_t bPiccErrCode, uint8_t *pData, uint8_t bDataLen, uint8_t *pPiccReturnCode) |
| Performs CommitReaderID command execution part 2 in S mode. More... | |
Sam AV3 command code for CommitReaderID feature. | |
| #define | PHHAL_HW_CMD_SAMAV3_COMMIT_READER_ID_INS 0x36 |
| Sam AV3 S mode Instruction code for CommitReaderID command. | |
SAM commands used for performing CommitReaderID in S mode for MifarePlus EV1 and MIFARE DESFire EV2 PICC.
| phStatus_t phhalHw_SamAV3_Cmd_SAM_CommitReaderID_Part1 | ( | phhalHw_SamAV3_DataParams_t * | pDataParams, |
| uint8_t | bState, | ||
| uint16_t | wBlockNr, | ||
| uint8_t ** | ppResponse, | ||
| uint16_t * | pRespLen | ||
| ) |
Performs CommitReaderID command execution part 1 in S mode.
The first part includes the header, block number if its MifarePlus state or only header if its DESFire state.
| PH_ERR_SUCCESS_CHAINING | Operation successful. |
| Other | Depending on implementation and underlaying component. |
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bState | [In] Options for framing the command. Below options should be used. PHHAL_HW_CMD_SAMAV3_COMMIT_READER_ID_PICC_STATE_MFP; PHHAL_HW_CMD_SAMAV3_COMMIT_READER_ID_PICC_STATE_DESFIRE; |
| [in] | wBlockNr | [In] Two bytes of block number if the state is MFP. |
| [out] | ppResponse | [Out] Transaction MAC Reader ID and MAC to be sent to MIFARE Plus or DESFire PICC. |
| [out] | pRespLen | [Out] Length of TMRI returned by MIFARE Plus or DESFire PICC. |
| phStatus_t phhalHw_SamAV3_Cmd_SAM_CommitReaderID_Part2 | ( | phhalHw_SamAV3_DataParams_t * | pDataParams, |
| uint8_t | bPiccErrCode, | ||
| uint8_t * | pData, | ||
| uint8_t | bDataLen, | ||
| uint8_t * | pPiccReturnCode | ||
| ) |
Performs CommitReaderID command execution part 2 in S mode.
The last part includes the header and the response received from Mfifare Plus or DESFire PICC.
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | bPiccErrCode | [In] Error Code sent by the MFP card. For success it should be 0x90. |
| [in] | pData | [In] The complete data (ENCTMRI and MAC) received from MIFARE Plus or DESFire PICC. |
| [in] | bDataLen | [In] Length of the data returned by MIFARE Plus or DESFire PICC. |
| [out] | pPiccReturnCode | [Out] Error code returned by MIFARE PICC. This will of 1 byte in length. |