/* Note: these must be called with data->lock locked!  */
static enum dma_emul_channel_state dma_emul_get_channel_state(const struct device *dev, uint32_t channel)
/* Note: these must be called with data->lock locked!  */
static enum dma_emul_channel_state dma_emul_get_channel_state(const struct device *dev, uint32_t channel)
{
	const struct dma_emul_config *config = dev->config;
	__ASSERT_NO_MSG(channel < config->num_channels);
	return (enum dma_emul_channel_state)config->xfer[channel].config._reserved;
}