include/zephyr/drivers/dma.h
/**
 * @brief Configure individual channel for DMA transfer.
 *
 * @param dev     Pointer to the device structure for the driver instance.
 * @param channel Numeric identification of the channel to configure
 * @param config  Data structure containing the intended configuration for the
 *                selected channel
 *
 * @retval 0 if successful.
 * @retval Negative errno code if failure.
 */
@brief Configure individual channel for DMA transfer.
@param dev     Pointer to the device structure for the driver instance.
@param channel Numeric identification of the channel to configure
@param config  Data structure containing the intended configuration for the
selected channel

@retval 0 if successful.
@retval Negative errno code if failure.
@brief Configure individual channel for DMA transfer . @param dev Pointer to the device structure for the driver instance . @param channel Numeric identification of the channel to configure @param config Data structure containing the intended configuration for the selected channel @retval 0 if successful . @retval Negative errno code if failure .
static inline int dma_config(const struct device *dev, uint32_t channel,
			     struct dma_config *config)
{
	const struct dma_driver_api *api =
		(const struct dma_driver_api *)dev->api;
	return api->config(dev, channel, config);
}
static inline int dma_config ( const struct device * dev , uint32_t channel , struct dma_config * config ) { const struct dma_driver_api * api = ( const struct dma_driver_api * ) dev -> api ; return api -> config ( dev , channel , config ) ; }
@brief Configure individual channel for DMA transfer.
@brief Configure individual channel for DMA transfer .