MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
CAAM Non-blocking RNG driver

Overview

This section describes the programming interface of the CAAM Non-blocking RNG driver.

Functions

status_t CAAM_RNG_GetRandomDataNonBlocking (CAAM_Type *base, caam_handle_t *handle, caam_rng_state_handle_t stateHandle, caam_desc_rng_t descriptor, void *data, size_t dataSize, caam_rng_random_type_t dataType, caam_rng_generic256_t additionalEntropy)
 Request random data. More...
 

Function Documentation

status_t CAAM_RNG_GetRandomDataNonBlocking ( CAAM_Type *  base,
caam_handle_t handle,
caam_rng_state_handle_t  stateHandle,
caam_desc_rng_t  descriptor,
void *  data,
size_t  dataSize,
caam_rng_random_type_t  dataType,
caam_rng_generic256_t  additionalEntropy 
)

This function schedules the request for random data from CAAM RNG. Memory at memory pointers will be accessed by CAAM shortly after this function returns, according to actual CAAM schedule.

Parameters
baseCAAM peripheral base address
handleRNG handle used for this request
stateHandleRNG state handle used to generate random data
[out]descriptormemory for CAAM commands
[out]dataPointer address used to store random data
dataSizeSize of the buffer pointed by the data parameter, in bytes.
dataTypeType of random data to be generated.
additionalEntropyNULL or Pointer to optional 256-bit additional entropy.
Returns
status of the request