Loading...
Searching...
No Matches
adc_noise.h File Reference

Detailed Description

#include <inttypes.h>
#include <stddef.h>
#include "periph/adc.h"
+ Include dependency graph for adc_noise.h:

Go to the source code of this file.

Functions

int entropy_source_adc_init (void)
 Initialize ADC and test structures, if tests are enabled.
 
int entropy_source_adc_get (uint8_t *buf, size_t len)
 Generates bytes from ADC noise.
 
static uint32_t entropy_source_adc_entropy_per_sample (void)
 Static entropy per sample value for this source [bit/sample * 2^16].
 
#define CONFIG_ENTROPY_SOURCE_ADC_RES   ADC_RES_10BIT
 ADC resolution default configuration.
 
#define CONFIG_ENTROPY_SOURCE_ADC_LINE   ADC_LINE(0)
 ADC line default configuration.
 
#define CONFIG_ENTROPY_SOURCE_ADC_HMIN   (0)
 ADC estimated entropy per sample [2^16 * bit/sample].
 
#define CONFIG_ENTROPY_SOURCE_ADC_HEALTH_TEST   0
 Disable ADC health test by default.
 
#define CONFIG_ENTROPY_SOURCE_ADC_COND   0
 Disable ADC conditioning test by default.