Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sf32lb.h File Reference

Go to the source code of this file.

Data Structures

struct  sf32lb_dma_dt_spec
 SF32LB DMA DT spec. More...

Macros

#define SF32LB_DMA_DT_SPEC_GET(node_id)
 Initialize a sf32lb_dma_dt_spec structure from a DT node.
#define SF32LB_DMA_DT_SPEC_GET_BY_NAME(node_id, name)
 Initialize a sf32lb_dma_dt_spec structure from a DT node.
#define SF32LB_DMA_DT_INST_SPEC_GET(index)
 Initialize a sf32lb_dma_dt_spec structure from a DT instance.
#define SF32LB_DMA_DT_INST_SPEC_GET_BY_NAME(index, name)
 Initialize a sf32lb_dma_dt_spec structure from a DT instance.

Functions

static bool sf32lb_dma_is_ready_dt (const struct sf32lb_dma_dt_spec *spec)
 Check if the DMA controller is ready.
static void sf32lb_dma_config_init_dt (const struct sf32lb_dma_dt_spec *spec, struct dma_config *config)
 Initialize a DMA configuration structure from a DT spec.
static int sf32lb_dma_config_dt (const struct sf32lb_dma_dt_spec *spec, struct dma_config *config)
 Configure a DMA channel from a DT spec.
static int sf32lb_dma_start_dt (const struct sf32lb_dma_dt_spec *spec)
 Start a DMA transfer from a DT spec.
static int sf32lb_dma_stop_dt (const struct sf32lb_dma_dt_spec *spec)
 Stop a DMA transfer from a DT spec.
static int sf32lb_dma_reload_dt (const struct sf32lb_dma_dt_spec *spec, uintptr_t src, uintptr_t dst, size_t size)
 Reload a DMA transfer from a DT spec.
static int sf32lb_dma_get_status_dt (const struct sf32lb_dma_dt_spec *spec, struct dma_status *status)
 Get the status of a DMA transfer from a DT spec.