/* Registers a callback. 
Registers a callback function which is implemented by the user. */
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. 
Registers a callback function which is implemented by the user. */
enum status_code trng_register_callback(struct trng_module *const module, trng_callback_t callback_func, const enum trng_callback callback_type)
{
	Assert(module);
	Assert(callback_func);
	module->callback[callback_type] = callback_func;
	module->register_callback_mask |= (1 << callback_type);
	system_interrupt_enable(SYSTEM_INTERRUPT_MODULE_TRNG);
	return STATUS_OK;
}