MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
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... | |
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.
base | CAAM peripheral base address | |
handle | RNG handle used for this request | |
stateHandle | RNG state handle used to generate random data | |
[out] | descriptor | memory for CAAM commands |
[out] | data | Pointer address used to store random data |
dataSize | Size of the buffer pointed by the data parameter, in bytes. | |
dataType | Type of random data to be generated. | |
additionalEntropy | NULL or Pointer to optional 256-bit additional entropy. |