/* Registers a SPI callback function. 
Registers a callback function which is implemented by the user. */
void spi_register_callback(struct spi_module *const module, spi_callback_t callback_func, enum spi_callback callback_type)
/* Registers a SPI callback function. 
Registers a callback function which is implemented by the user. */
void spi_register_callback(struct spi_module *const module, spi_callback_t callback_func, enum spi_callback callback_type)
{
	Assert(module);
	Assert(callback_func);
	module->callback[callback_type] = callback_func;
	module->registered_callback |= (1 << callback_type);
}