Function trng_register_callback()

Registers a callback.

enum status_code trng_register_callback(
		struct trng_module *const module,
		trng_callback_t callback_func,
		enum trng_callback callback_type)

Registers a callback function which is implemented by the user.

Note: The callback must be enabled by trng_enable_callback, in order for the interrupt handler to call it when the conditions for the callback type is met.
Table 1. Parameters
Data direction Parameter name Description



Pointer to TC software instance struct



Pointer to callback function



Callback type given by an enum

Table 2. Return Values
Return value Description


The function exited successfully