ESOS32
ESOSOn32-bitProcessors
|
Files | |
file | esos_utils.h |
file | esos_hwxxx_utils.h |
This file contains routines which configure and use hardware-version of the ESOS utility functions. | |
file | esos_stm32l4_utils.h |
This file contains routines which configure and use hardware-version of the ESOS32 utility functions. | |
file | esos_stm32l4_utils.h |
This file contains routines which configure and use hardware-version of the ESOS32 utility functions. | |
Functions | |
uint32_t | esos_GetRandomUint32 () |
uint16_t | esos_hash_u32_to_u16 (uint32_t u32_hash) |
uint32_t | esos_string_hash_u32 (char *psz_str) |
uint32_t | esos_buffer_hash_u32 (void *buf, uint16_t len) |
void | __esos_set_PRNG_U32Seed (uint32_t u32_seed) |
uint32_t | __esos_get_PRNG_RandomUint32 (void) |
uint32_t | __esos_hw_PRNG_u32 (void) |
void | __esos_hw_config_PRNG (void) |
void | __esos_hw_set_PRNG_Seed (uint32_t u32_seed) |
Variables | |
uint32_t | __esos_u32FNVHash |
uint32_t __esos_get_PRNG_RandomUint32 | ( | void | ) |
Returns a 31-bit pseudo-random number generated by the Park-Miller algorithm.
Definition at line 80 of file esos_utils.c.
void __esos_set_PRNG_U32Seed | ( | uint32_t | u32_seed | ) |
Writes message data to a task's mailbox.
pst_RcvrTask | pointer to task structure (ESOS_TASK_HANDLE) whose mailbox will be written |
pst_Msg | pointer to mailbox message structure that contains data to write to the task's mailbox |
Definition at line 70 of file esos_utils.c.
uint32_t esos_buffer_hash_u32 | ( | void * | buf, |
uint16_t | len | ||
) |
Create a 32-bit (uint32_t) hash value for a buffer of voids Routine maintains "state" in the form of variable __esos_u32FNVHash This "state" is used in all of the ESOS FNV hash functions. Based on the Fowler/Noll/Vo (FNV1a) hash algorithm and code provided at http://www.isthe.com/chongo/tech/comp/fnv/
buf | pointer to a buffer of voids |
len | length of the buffer of voids |
uint32_t | value of the resulting hash |
Definition at line 140 of file esos_utils.c.
|
inline |
Returns a 32-bit pseudo-random number. Will call a "hw" RNG function to allow for HW PRNG if available. If HW is not present, the hardware specific (hwxxx or others) can simply call back to the hidden ESOS function above: __esos_GetSWRNGRandomUint32
Definition at line 100 of file esos_utils.c.
uint32_t esos_string_hash_u32 | ( | char * | psz_str | ) |
Create a 32-bit (uint32_t) hash value for a provided string Routine maintains "state" in the form of variable __esos_u32FNVHash This "state" is used in all of the ESOS FNV hash functions. Based on the Fowler/Noll/Vo (FNV1a) hash algorithm and code provided at http://www.isthe.com/chongo/tech/comp/fnv/
psz_str | pointer to zero-terminated string |
uint32_t | value of the resulting hash |
Definition at line 176 of file esos_utils.c.