no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
aducm3029_trng.h
Go to the documentation of this file.
1/***************************************************************************/
33
34#ifndef ADUCM3029_TRNG_H
35#define ADUCM3029_TRNG_H
36
37#include <drivers/rng/adi_rng.h>
38#include "no_os_trng.h"
39
40/* LenReload: 0 - 4095 */
41#define NO_OS_TRNG_CNT_VAL 4095
42/* Prescaler: 0 - 10 */
43#define NO_OS_TRNG_PRESCALER 2
44/* Aducm device ID */
45#define NO_OS_ADUCM_TRNG_DEVICE_ID 0
46
47/* Stucture holding the TRNG descriptor. */
49 /*
50 * Memory used by the DFP
51 * At least ADI_RNG_MEMORY_SIZE bytes of 4 bytes aligned memory are
52 * needed by the DFP driver. The formula is to align memory only.
53 */
54 uint32_t dev_mem[(ADI_RNG_MEMORY_SIZE + 3) / 4];
55 /* DFP Hanler */
56 ADI_RNG_HANDLE dev;
57};
58
62extern const struct no_os_trng_platform_ops aducm_trng_ops;
63
64#endif // ADUCM3029_TRNG_H
const struct no_os_trng_platform_ops aducm_trng_ops
ADuCM3029 platform specific TRNG platform ops structure.
Definition aducm3029_trng.c:155
Header file of true random number generator.
Definition aducm3029_trng.h:48
ADI_RNG_HANDLE dev
Definition aducm3029_trng.h:56
uint32_t dev_mem[(ADI_RNG_MEMORY_SIZE+3)/4]
Definition aducm3029_trng.h:54
Structure holding TRNG function pointers that point to the platform specific function.
Definition no_os_trng.h:76