1.41.22.4 TRNG_CALLBACK Typedef

C

typedef void (*TRNG_CALLBACK)( uint32_t random, uintptr_t context);

Summary

Defines the data type and function signature for the TRNG peripheral callback function.

Description

This data type defines the function signature for the TRNG peripheral callback function. The TRNG peripheral will call back the client's function with this signature when the random data is ready to be read.

Precondition

TRNG_CallbackRegister must have been called to set the function to be called.

Parameters

Param Description
random The generated 32-bit random number that will be passed via callback.
context Allows the caller to provide a context value (usually a pointer to the callers context for multi-instance clients).

Returns

None.