Microchip® Advanced Software Framework

trng_callback.c File Reference

SAM True Random Number Generator (TRNG) Driver.

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

#include "trng_callback.h"
#include "system_interrupt.h"

Functions

void trng_abort_job (struct trng_module *module_inst, enum trng_job_type type)
 Aborts an ongoing job. 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_Handler (void)
 
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_register_callback (struct trng_module *const module, trng_callback_t callback_func, const enum trng_callback callback_type)
 Registers a callback. More...
 
enum status_code trng_unregister_callback (struct trng_module *const module, const enum trng_callback callback_type)
 Unregisters a callback. More...
 

Variables

struct trng_module_trng_instance
 

void TRNG_Handler ( void  )

ISR handler for TRNG

TRNG interrupt handler for random data ready.

References _trng_instance, if(), STATUS_BUSY, STATUS_OK, and TRNG_CALLBACK_READ_BUFFER.