Paparazzi UAS  v6.0_unstable-94-gda5b527-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
rng_arch.c File Reference
#include "mcu_periph/rng.h"
#include <hal.h>
+ Include dependency graph for rng_arch.c:

Go to the source code of this file.

Functions

static void TRNGStart (void)
 
static void TRNGStop (void)
 
static uint32_t TRNGGet (void)
 
static bool TRNGGetErrors (void)
 
static void TRNGClearErrors (void)
 
static bool TRNGGenerate (size_t size, uint32_t *out)
 
void rng_init (void)
 
void rng_deinit (void)
 
bool rng_get (uint32_t *rand_nr)
 
uint32_t rng_wait_and_get (void)
 

Function Documentation

void rng_deinit ( void  )

Definition at line 82 of file rng_arch.c.

bool rng_get ( uint32_t rand_nr)

Definition at line 89 of file rng_arch.c.

Referenced by rng_wait_and_get().

+ Here is the caller graph for this function:

void rng_init ( void  )

Definition at line 77 of file rng_arch.c.

Referenced by mcu_init().

+ Here is the caller graph for this function:

uint32_t rng_wait_and_get ( void  )

Definition at line 104 of file rng_arch.c.

Referenced by gec_generate_ephemeral_keys(), and rng_init().

+ Here is the caller graph for this function:

static void TRNGClearErrors ( void  )
static

Definition at line 59 of file rng_arch.c.

Referenced by rng_get().

+ Here is the caller graph for this function:

static bool TRNGGenerate ( size_t  size,
uint32_t out 
)
static

Definition at line 64 of file rng_arch.c.

References TRNGGet(), and TRNGGetErrors().

Referenced by rng_get(), and rng_wait_and_get().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uint32_t TRNGGet ( void  )
static

Definition at line 47 of file rng_arch.c.

Referenced by TRNGGenerate().

+ Here is the caller graph for this function:

static bool TRNGGetErrors ( void  )
static

Definition at line 54 of file rng_arch.c.

Referenced by TRNGGenerate().

+ Here is the caller graph for this function:

static void TRNGStart ( void  )
static

Definition at line 35 of file rng_arch.c.

Referenced by rng_init().

+ Here is the caller graph for this function:

static void TRNGStop ( void  )
static

Definition at line 41 of file rng_arch.c.

Referenced by rng_deinit().

+ Here is the caller graph for this function: