/* Registers a callback. 
Registers a callback function which is implemented by the user. */
enum status_code tsens_register_callback(struct tsens_module *const module, tsens_callback_t callback_func, enum tsens_callback callback_type)
/* Registers a callback. 
Registers a callback function which is implemented by the user. */
enum status_code tsens_register_callback(struct tsens_module *const module, tsens_callback_t callback_func, enum tsens_callback callback_type)
{
	Assert(module);
	Assert(callback_func);
	if(callback_type > TSENS_CALLBACK_NUM) {
		return STATUS_ERR_INVALID_ARG;
	}
	module->callback[callback_type] = callback_func;
	_tsens_instances = module;
	return STATUS_OK;
}