/* Registers a callback. 
Registers a callback function which is implemented by the user. */
enum status_code freqm_register_callback(struct freqm_module *const module, freqm_callback_t callback_func, enum freqm_callback callback_type)
/* Registers a callback. 
Registers a callback function which is implemented by the user. */
enum status_code freqm_register_callback(struct freqm_module *const module, freqm_callback_t callback_func, enum freqm_callback callback_type)
{
	Assert(module);
	Assert(callback_func);
	if (callback_type >= FREQM_CALLBACK_TYPE_NUM) {
		Assert(false);
		return STATUS_ERR_INVALID_ARG;
	}
	module->callback[callback_type] = callback_func;
	return STATUS_OK;
}