/* Unregisters a SPI callback function. 
Unregisters a callback function which is implemented by the user. */
void spi_unregister_callback(struct spi_module *const module, enum spi_callback callback_type)
/* Unregisters a SPI callback function. 
Unregisters a callback function which is implemented by the user. */
void spi_unregister_callback(struct spi_module *const module, enum spi_callback callback_type)
{
	Assert(module);
	module->callback[callback_type] = NULL;
	module->registered_callback &= ~(1 << callback_type);
}