libyggdrasil  v1.0.0
rng.h
Go to the documentation of this file.
1  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * _____.___. .___ .__.__ *
3  * \__ | | ____ ____ __| _/___________ _____|__| | *
4  * / | |/ ___\ / ___\ / __ |\_ __ \__ \ / ___/ | | *
5  * \____ / /_/ > /_/ > /_/ | | | \// __ \_\___ \| | |__ *
6  * / ______\___ /\___ /\____ | |__| (____ /____ >__|____/ *
7  * \/ /_____//_____/ \/ \/ \/ *
8  * - Midgard - *
9  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
10  * This software can be used by students and other personal of the *
11  * Bern University of Applied Sciences under the terms of the MIT *
12  * license. *
13  * For other persons this software is under the terms of the GNU *
14  * General Public License version 2. *
15  * *
16  * Copyright © 2021, Bern University of Applied Sciences. *
17  * All rights reserved. *
18  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
26 #include <c/common/types.h>
27 
28 #include <stm32f7xx_hal.h>
29 
33 typedef struct {
34 
35 } rng_t;
36 
44 
52 
60 
68 
76 
yggdrasil_RNG_Deinit
C_LINKAGE bool yggdrasil_RNG_Deinit(rng_t rng)
RNG deinitialization.
Definition: rng.cpp:43
types.h
Commonly used type definitions and helper templates.
u16
uint16_t u16
Definition: types.h:37
u8
uint8_t u8
Unsigned integer definitions.
Definition: types.h:36
yggdrasil_RNG_GetU8
C_LINKAGE u8 yggdrasil_RNG_GetU8(rng_t rng)
Get a random u8.
Definition: rng.cpp:47
yggdrasil_RNG_Init
C_LINKAGE bool yggdrasil_RNG_Init(rng_t rng)
RNG initialization.
Definition: rng.cpp:39
u32
uint32_t u32
Definition: types.h:38
yggdrasil_RNG_GetU16
C_LINKAGE u16 yggdrasil_RNG_GetU16(rng_t rng)
Get a random u16.
Definition: rng.cpp:51
rng_t
RNG handle type.
Definition: rng.h:33
C_LINKAGE
#define C_LINKAGE
Definition: attributes.h:43
yggdrasil_RNG_GetU32
C_LINKAGE u32 yggdrasil_RNG_GetU32(rng_t rng)
Get a random u32.
Definition: rng.cpp:55