/* Unregisters callback for the specified callback type. 
Removes the currently registered callback for the given callback type. */
void i2c_slave_unregister_callback(struct i2c_slave_module *const module, enum i2c_slave_callback callback_type)
/* Unregisters callback for the specified callback type. 
Removes the currently registered callback for the given callback type. */
void i2c_slave_unregister_callback(struct i2c_slave_module *const module, enum i2c_slave_callback callback_type)
{
	Assert(module);
	Assert(module->hw);
	module->callbacks[callback_type] = NULL;
	module->registered_callback &= ~(1 << callback_type);
}