Microchip® Advanced Software Framework

trng_callback.h File Reference

SAM True Random Number Generator (TRNG) Driver.

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

#include <trng.h>

Enumerations

enum  trng_job_type { TRNG_JOB_READ_BUFFER }
 Enum for the possible types of TRNG asynchronous jobs that may be issued to the driver. More...
 

Functions

Callback Management
enum status_code trng_register_callback (struct trng_module *const module, trng_callback_t callback_func, enum trng_callback callback_type)
 Registers a callback. More...
 
enum status_code trng_unregister_callback (struct trng_module *module, enum trng_callback callback_type)
 Unregisters a callback. More...
 
static void trng_enable_callback (struct trng_module *const module, enum trng_callback callback_type)
 Enables callback. More...
 
static void trng_disable_callback (struct trng_module *const module, enum trng_callback callback_type)
 Disables callback. More...
 
Job Management
enum status_code trng_read_buffer_job (struct trng_module *const module_inst, uint32_t *buffer, uint32_t number)
 Read multiple random data from TRNG. More...
 
enum status_code trng_get_job_status (struct trng_module *module_inst, enum trng_job_type type)
 Gets the status of a job. More...
 
void trng_abort_job (struct trng_module *module_inst, enum trng_job_type type)
 Aborts an ongoing job. More...