Go to the documentation of this file.
40 #ifndef ADUCM3029_TRNG_H
41 #define ADUCM3029_TRNG_H
46 #include <drivers/rng/adi_rng.h>
54 #define NO_OS_TRNG_CNT_VAL 4095
56 #define NO_OS_TRNG_PRESCALER 2
58 #define NO_OS_ADUCM_TRNG_DEVICE_ID 0
71 uint32_t
dev_mem[(ADI_RNG_MEMORY_SIZE + 3) / 4];
81 #endif // ADUCM3029_TRNG_H
uint32_t dev_mem[(ADI_RNG_MEMORY_SIZE+3)/4]
Definition: aducm3029_trng.h:71
int aducm3029_trng_remove(struct no_os_trng_desc *desc)
Free resources allocated in descriptor.
Definition: aducm3029_trng.c:119
int aducm3029_trng_fill_buffer(struct no_os_trng_desc *desc, uint8_t *buff, uint32_t len)
Fill buffer with random numbers.
Definition: aducm3029_trng.c:141
const struct no_os_trng_platform_ops aducm_trng_ops
ADuCM3029 specific TRNG platform ops structure.
Definition: aducm3029_trng.c:173
const struct no_os_trng_platform_ops aducm_trng_ops
ADuCM3029 platform specific TRNG platform ops structure.
Definition: aducm3029_trng.c:173
#define NO_OS_TRNG_CNT_VAL
Definition: aducm3029_trng.h:54
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:60
int aducm3029_trng_init(struct no_os_trng_desc **desc, struct no_os_trng_init_param *param)
Initialize descriptor.
Definition: aducm3029_trng.c:90
TRNG Descriptor.
Definition: no_os_trng.h:65
Header file of true random number generator.
ADuCM302x specific header for TRNG driver.
Init parameter for TRNG.
Definition: no_os_trng.h:76
#define NO_OS_UNUSED_PARAM(x)
Definition: no_os_util.h:115
#define NO_OS_ADUCM_TRNG_DEVICE_ID
Definition: aducm3029_trng.h:58
#define NO_OS_TRNG_PRESCALER
Definition: aducm3029_trng.h:56
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:75
Definition: aducm3029_trng.h:65
void * extra
Definition: no_os_trng.h:69
Header file of utility functions.
ADI_RNG_HANDLE dev
Definition: aducm3029_trng.h:73