/* Registers callback for the specified callback type. 
Associates the given callback function with the specified callback type. To enable the callback, the i2c_slave_enable_callback function must be used. */
void i2c_slave_register_callback(struct i2c_slave_module *const module, i2c_slave_callback_t callback, enum i2c_slave_callback callback_type)
/* Registers callback for the specified callback type. 
Associates the given callback function with the specified callback type. To enable the callback, the i2c_slave_enable_callback function must be used. */
void i2c_slave_register_callback(struct i2c_slave_module *const module, i2c_slave_callback_t callback, enum i2c_slave_callback callback_type)
{
	Assert(module);
	Assert(module->hw);
	Assert(callback);
	module->callbacks[callback_type] = callback;
	module->registered_callback |= (1 << callback_type);
}