MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
Enumerations | |
enum | hal_rng_status_t { kStatus_HAL_RngSuccess = kStatus_Success, KStatus_HAL_RngNotSupport = MAKE_STATUS(kStatusGroup_HAL_RNG, 1), kStatus_HAL_RngInternalError = MAKE_STATUS(kStatusGroup_HAL_RNG, 2), kStatus_HAL_RngNullPointer = MAKE_STATUS(kStatusGroup_HAL_RNG, 3), kStatus_HAL_RngMaxRequests = MAKE_STATUS(kStatusGroup_HAL_RNG, 4), kStatus_HAL_RngInvalidArgumen = MAKE_STATUS(kStatusGroup_HAL_RNG, 5) } |
Hal rand status. More... | |
Functions | |
hal_rng_status_t | HAL_RngInit (void) |
Initializes the random adapter module for a random data generator basic operation. More... | |
void | HAL_RngDeinit (void) |
DeInitilizate the random adapter module. More... | |
hal_rng_status_t | HAL_RngHwGetData (void *pRandomNo, uint32_t dataSize) |
Get random value from random hardware. More... | |
hal_rng_status_t | HAL_RngGetData (void *pRandomNo, uint32_t dataSize) |
Get a pseudo random number. More... | |
hal_rng_status_t | HAL_RngSetSeed (uint32_t seed) |
Set random seed of random generator hardware. More... | |
enum hal_rng_status_t |
hal_rng_status_t HAL_RngInit | ( | void | ) |
kStatus_HAL_RngSuccess | Rand module initialize succeed |
void HAL_RngDeinit | ( | void | ) |
hal_rng_status_t HAL_RngHwGetData | ( | void * | pRandomNo, |
uint32_t | dataSize | ||
) |
pRandomNo | Pointer to random data |
dataSize | The random data size |
kStatus_HAL_RngSuccess | Rand get data succeed |
hal_rng_status_t HAL_RngGetData | ( | void * | pRandomNo, |
uint32_t | dataSize | ||
) |
pRandomNo | Pointer to random data |
dataSize | The random data size |
kStatus_HAL_RngSuccess | Rand get data succeed |
hal_rng_status_t HAL_RngSetSeed | ( | uint32_t | seed | ) |
seed | Seed of the random hardware generator |
kStatus_HAL_RngSuccess | Rand set rand seed succeed |
KStatus_HAL_RngNotSupport | Rand set rand seed not support |