SAM commands used for host communication and security related configuration. More...

Macros | |
| #define | PHHAL_HW_SAMAV2_CMD_GET_VERSION_DATA_LENGTH 0x00 |
| CMD length of GetVersion command. | |
| #define | PHHAL_HW_SAMAV2_CMD_GET_VERSION_RESPONSE_LENGTH 0x1F |
| Response length for GetVersion command. | |
| #define | PHHAL_HW_SAMAV2_CMD_GET_VERSION_RESPONSE_UID_OFFSET 0x0E |
| Offset of first UID byte field in the Version field. | |
| #define | PHHAL_HW_SAMAV2_CMD_GET_VERSION_RESPONSE_HOSTMODE_POS 0x1E |
| Offset of first UID byte field in the Version field. | |
Functions | |
| phStatus_t | phhalHw_SamAV2_Cmd_SAM_GetVersion (phhalHw_SamAV2_DataParams_t *pDataParams, uint8_t *pVersion, uint8_t *pVersionLength) |
| Get version information from the SAM. More... | |
Sam AV2 command code for Sam Security and configuration feature. | |
| #define | PHHAL_HW_SAMAV2_CMD_GET_VERSION_INS 0x60 |
| CMD Byte for GetVersion command. | |
SAM commands used for host communication and security related configuration.
| phStatus_t phhalHw_SamAV2_Cmd_SAM_GetVersion | ( | phhalHw_SamAV2_DataParams_t * | pDataParams, |
| uint8_t * | pVersion, | ||
| uint8_t * | pVersionLength | ||
| ) |
Get version information from the SAM.
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [out] | pVersion | [Out] Buffer containing the read version. It has to be 31 bytes long. |
| [out] | pVersionLength | [Out] Amount of valid bytes in the version buffer. |