Microchip® Advanced Software Framework

qs_trng_callback.c File Reference

SAM True Random Number Generator Driver Quick Start.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>

Functions

void configure_trng (void)
 [callback_2] More...
 
void configure_trng_callback (void)
 [callback_1] More...
 
int main (void)
 [setup_3] [setup] More...
 
void trng_complete_callback (struct trng_module *const module_inst)
 [callback_1] More...
 

Variables

static struct trng_module trng_instance
 [setup_1] More...
 
bool volatile trng_read_done = false
 [setup] More...
 

void configure_trng ( void  )

[callback_2]

[setup_1]

[setup_2] [setup_2]

[setup_2_1]

[setup_2_1] [setup_2_2]

[setup_2_2]

[setup_2_3]

[setup_2_3]

References trng_get_config_defaults(), trng_init(), and trng_instance.

Referenced by main().

void configure_trng_callback ( void  )

[callback_1]

[setup_3]

[setup_3_1]

[setup_3_1] [setup_3_2]

[setup_3_2]

References TRNG_CALLBACK_READ_BUFFER, trng_complete_callback(), trng_enable_callback(), trng_instance, and trng_register_callback().

Referenced by main().

int main ( void  )

[setup_3] [setup]

[setup_init]

[setup_init_1]

[setup_init_1] [setup_init]

[main]

[main_1]

[main_1]

[main_2]

[main_2] [main_3]

[main_3] [main_4]

[main_4]

[main]

References configure_trng(), configure_trng_callback(), port_pin_toggle_output_level(), system_init(), trng_enable(), trng_instance, trng_read_buffer_job(), and trng_read_done.

void trng_complete_callback ( struct trng_module *const  module_inst)

[callback_1]

[callback_1_1]

[callback_1_1]

References trng_read_done.

Referenced by configure_trng_callback(), and run_trng_callback_read_test().

struct trng_module trng_instance
static

[setup_1]

Referenced by configure_trng(), configure_trng_callback(), and main().

bool volatile trng_read_done = false

[setup]

[callback_2]

Referenced by main(), and trng_complete_callback().