Functions | |
cy_en_efuse_status_t | Cy_EFUSE_GetEfuseBit (uint32_t bitNum, bool *bitVal) |
Reports the current state of a given eFuse bit-number. More... | |
cy_en_efuse_status_t | Cy_EFUSE_GetEfuseByte (uint32_t offset, uint8_t *byteVal) |
Reports the current state of the eFuse byte. More... | |
uint32_t | Cy_EFUSE_GetExternalStatus (void) |
This function handles the case where a module such as a security image captures a system call from this driver and reports its own status or error code, for example, protection violation. More... | |
cy_en_efuse_status_t Cy_EFUSE_GetEfuseBit | ( | uint32_t | bitNum, |
bool * | bitVal | ||
) |
Reports the current state of a given eFuse bit-number.
Consult the device TRM to determine the target fuse bit number.
bitNum | The number of the bit to read. The valid range of the bit number is from 0 to EFUSE_EFUSE_NR * 32 * 8 - 1 where:
|
The EFUSE_EFUSE_NR macro is defined in the series-specific header file, e.g <PDL_DIR>/devices/include/psoc6_01_config.h
bitVal | The pointer to the location to store the bit value. |
cy_en_efuse_status_t Cy_EFUSE_GetEfuseByte | ( | uint32_t | offset, |
uint8_t * | byteVal | ||
) |
Reports the current state of the eFuse byte.
If the offset parameter is beyond the available quantities, zeroes will be stored to the byteVal parameter. Consult the device TRM to determine the target fuse byte offset.
offset | The offset of the byte to read. The valid range of the byte offset is from 0 to EFUSE_EFUSE_NR * 32 - 1 where:
|
The EFUSE_EFUSE_NR macro is defined in the series-specific header file, e.g <PDL_DIR>/devices/include/psoc6_01_config.h
byteVal | The pointer to the location to store eFuse data. |
uint32_t Cy_EFUSE_GetExternalStatus | ( | void | ) |
This function handles the case where a module such as a security image captures a system call from this driver and reports its own status or error code, for example, protection violation.
In that case, a function from this driver returns an unknown error (see cy_en_efuse_status_t). After receipt of an unknown error, the user may call this function to get the status of the capturing module.
The user is responsible for parsing the content of the returned value and casting it to the appropriate enumeration.