XilSKey_ZynqMp_EfusePs_ReadSpkId - 2023.1 English

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2023-05-16
Version
2023.1 English

This function is used to read SPKID from eFUSE or cache based on user's read option.

Note: It is highly recommended to read from eFuse cache. Because reading from efuse may reduce the life of the efuse. And Cache reload is required for obtaining updated values for ReadOption 0.

Prototype

u32 XilSKey_ZynqMp_EfusePs_ReadSpkId(u32 *SpkId, u8 ReadOption);

Parameters

The following table lists the XilSKey_ZynqMp_EfusePs_ReadSpkId function arguments.

Table 1. XilSKey_ZynqMp_EfusePs_ReadSpkId Arguments
Type Member Description
u32 * SpkId Pointer to a 32-bit variable which holds SPK ID.
u8 ReadOption Indicates whether or not to read from the actual eFUSE array or from the eFUSE cache.
  • 0(XSK_EFUSEPS_READ_FROM_CACHE) Reads from eFUSE cache
  • 1(XSK_EFUSEPS_READ_FROM_EFUSE) Reads from eFUSE array

Returns

  • XST_SUCCESS on successful read
  • ErrorCode on failure