no-OS
Public Attributes | List of all members
no_os_dma_platform_ops Struct Reference

#include <no_os_dma.h>

Public Attributes

int(* dma_init )(struct no_os_dma_desc **, struct no_os_dma_init_param *)
 
int(* dma_remove )(struct no_os_dma_desc *desc)
 
int(* dma_acquire_ch )(struct no_os_dma_desc *, uint32_t *)
 
int(* dma_release_ch )(struct no_os_dma_desc *, uint32_t)
 
int(* dma_config_xfer )(struct no_os_dma_ch *, struct no_os_dma_xfer_desc *)
 
int(* dma_xfer_start )(struct no_os_dma_desc *, struct no_os_dma_ch *)
 
int(* dma_xfer_abort )(struct no_os_dma_desc *, struct no_os_dma_ch *)
 
bool(* dma_ch_is_completed )(struct no_os_dma_desc *, struct no_os_dma_ch *)
 
bool(* dma_ch_in_progress )(struct no_os_dma_desc *, struct no_os_dma_ch *)
 

Member Data Documentation

◆ dma_acquire_ch

int(* no_os_dma_platform_ops::dma_acquire_ch) (struct no_os_dma_desc *, uint32_t *)

Get a free channel and set it as busy.

◆ dma_ch_in_progress

bool(* no_os_dma_platform_ops::dma_ch_in_progress) (struct no_os_dma_desc *, struct no_os_dma_ch *)

Whether or not a specific channel has an ongoing transfer. This returns true between transfers.

◆ dma_ch_is_completed

bool(* no_os_dma_platform_ops::dma_ch_is_completed) (struct no_os_dma_desc *, struct no_os_dma_ch *)

Whether or not a specific channel has an ongoing or future transfer configured

◆ dma_config_xfer

int(* no_os_dma_platform_ops::dma_config_xfer) (struct no_os_dma_ch *, struct no_os_dma_xfer_desc *)

Configure platform specific settings required for the current DMA transfer

◆ dma_init

int(* no_os_dma_platform_ops::dma_init) (struct no_os_dma_desc **, struct no_os_dma_init_param *)

Initialize platform specific resources for the DMA controller.

◆ dma_release_ch

int(* no_os_dma_platform_ops::dma_release_ch) (struct no_os_dma_desc *, uint32_t)

◆ dma_remove

int(* no_os_dma_platform_ops::dma_remove) (struct no_os_dma_desc *desc)

Remove resources allocated for the DMA controller.

◆ dma_xfer_abort

int(* no_os_dma_platform_ops::dma_xfer_abort) (struct no_os_dma_desc *, struct no_os_dma_ch *)

Signal the DMA controller to stop the transfer.

◆ dma_xfer_start

int(* no_os_dma_platform_ops::dma_xfer_start) (struct no_os_dma_desc *, struct no_os_dma_ch *)

Signal the DMA controller to start the transfer.


The documentation for this struct was generated from the following file: