/* Enable/disable SPI master interrupt. 
param device The pointer to SPI master device instance param type The type of interrupt to disable/enable if applicable param state Enable or disable  */
void _spi_m_async_set_irq_state(struct _spi_async_dev *const device, const enum _spi_async_dev_cb_type type, const bool state)
/* Enable/disable SPI master interrupt. 
param device The pointer to SPI master device instance param type The type of interrupt to disable/enable if applicable param state Enable or disable  */
void _spi_m_async_set_irq_state(struct _spi_async_dev *const device, const enum _spi_async_dev_cb_type type, const bool state)
{
	ASSERT(device);
	if (SPI_DEV_CB_ERROR == type) {
		hri_sercomspi_write_INTEN_ERROR_bit(device->prvt, state);
	}
}