Implementation of STM32 GPDMA functionality.
More...
Implementation of STM32 GPDMA functionality.
- Author
- Swaroop P Kukkillaya (swaro.nosp@m.op.k.nosp@m.ukkil.nosp@m.laya.nosp@m.@anal.nosp@m.og.c.nosp@m.om)
Copyright 2025(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
◆ stm32_gpdma_config_xfer()
Configure a General Purpose DMA channel for a transfer.
- Parameters
-
| channel | - The GPDMA channel descriptor. |
| xfer | - Descriptor for the transfer. |
- Returns
- 0 in case of success, negative error codes otherwise
◆ stm32_gpdma_init()
Initialize a General Purpose DMA controller.
- Parameters
-
| desc | - Descriptor to be initialized. |
| param | - Initialization parameter for the decriptor. |
- Returns
- 0 in case of success -ENOMEM if there is not enough free memory
◆ stm32_gpdma_remove()
Free the resources allocated for a General Purpose DMA descriptor.
- Parameters
-
| desc | - Descriptor to be freed. |
- Returns
- 0 in case of success, negative error code otherwise
◆ stm32_gpdma_xfer_abort()
Disable a General Purpose DMA channel.
- Parameters
-
| desc | - Descriptor for the GPDMA controller. |
| chan | - The GPDMA Channel |
- Returns
- 0 in case of success, negative error codes otherwise
◆ stm32_gpdma_xfer_start()
Start a General Purpose DMA transfer for a specific channel.
- Parameters
-
| desc | - Descriptor for the GPDMA controller. |
| chan | - The GPDMA Channel |
- Returns
- 0 in case of success, negative error codes otherwise
◆ stm32_gpdma_ops
Initial value:= {
}
int stm32_gpdma_init(struct no_os_dma_desc **desc, const struct no_os_dma_init_param *param)
Initialize a General Purpose DMA controller.
Definition stm32_gpdma.c:309
int stm32_gpdma_config_xfer(struct no_os_dma_ch *channel, struct no_os_dma_xfer_desc *xfer)
Configure a General Purpose DMA channel for a transfer.
Definition stm32_gpdma.c:237
int stm32_gpdma_remove(struct no_os_dma_desc *desc)
Free the resources allocated for a General Purpose DMA descriptor.
Definition stm32_gpdma.c:439
int stm32_gpdma_xfer_abort(struct no_os_dma_desc *desc, struct no_os_dma_ch *chan)
Disable a General Purpose DMA channel.
Definition stm32_gpdma.c:415
int stm32_gpdma_xfer_start(struct no_os_dma_desc *desc, struct no_os_dma_ch *chan)
Start a General Purpose DMA transfer for a specific channel.
Definition stm32_gpdma.c:371
stm32 platform specific General Purpose DMA platform ops structure