Macros

Macros

#define TRNG_STATUS_SUCCESS   (0)
 Successful status code. More...
 
#define TRNG_STATUS_ERROR   (-1)
 Generic error status code. More...
 
#define TRNG_STATUS_UNDEFINEDCMD   (-2)
 An error status code returned by TRNG_control() for undefined command codes. More...
 
#define TRNG_STATUS_RESOURCE_UNAVAILABLE   (-3)
 An error status code returned if the hardware or software resource is currently unavailable. More...
 

Detailed Description

TRNG_STATUS_* macros are general status codes returned by TRNG functions

Macro Definition Documentation

§ TRNG_STATUS_SUCCESS

#define TRNG_STATUS_SUCCESS   (0)

Successful status code.

Functions return TRNG_STATUS_SUCCESS if the function was executed successfully.

§ TRNG_STATUS_ERROR

#define TRNG_STATUS_ERROR   (-1)

Generic error status code.

Functions return TRNG_STATUS_ERROR if the function was not executed successfully.

§ TRNG_STATUS_UNDEFINEDCMD

#define TRNG_STATUS_UNDEFINEDCMD   (-2)

An error status code returned by TRNG_control() for undefined command codes.

TRNG_control() returns TRNG_STATUS_UNDEFINEDCMD if the control code is not recognized by the driver implementation.

§ TRNG_STATUS_RESOURCE_UNAVAILABLE

#define TRNG_STATUS_RESOURCE_UNAVAILABLE   (-3)

An error status code returned if the hardware or software resource is currently unavailable.

TRNG driver implementations may have hardware or software limitations on how many clients can simultaneously perform operations. This status code is returned if the mutual exclusion mechanism signals that an operation cannot currently be performed.

Copyright 2018, Texas Instruments Incorporated