Hardware Abstraction Layer (HAL)

General Description

TRNG specific return codes.

Macros

#define CYHAL_TRNG_RSLT_ERR_BAD_ARGUMENT   (CYHAL_RSLT_CREATE(CY_RSLT_TYPE_ERROR, CYHAL_RSLT_MODULE_TRNG, 0))
 An invalid argument was passed to a function. More...
 
#define CYHAL_TRNG_RSLT_ERR_HW   (CYHAL_RSLT_CREATE(CY_RSLT_TYPE_ERROR, CYHAL_RSLT_MODULE_TRNG, 1))
 Hardware error in the crypto block. More...
 

Macro Definition Documentation

◆ CYHAL_TRNG_RSLT_ERR_BAD_ARGUMENT

#define CYHAL_TRNG_RSLT_ERR_BAD_ARGUMENT   (CYHAL_RSLT_CREATE(CY_RSLT_TYPE_ERROR, CYHAL_RSLT_MODULE_TRNG, 0))

An invalid argument was passed to a function.

◆ CYHAL_TRNG_RSLT_ERR_HW

#define CYHAL_TRNG_RSLT_ERR_HW   (CYHAL_RSLT_CREATE(CY_RSLT_TYPE_ERROR, CYHAL_RSLT_MODULE_TRNG, 1))

Hardware error in the crypto block.

This will only occur if the Ring oscillators in the TRNG generator are explicitly disabled during TRNG generation.