DMA (SF32LB specifics)
More...
DMA (SF32LB specifics)
◆ SF32LB_DMA_DT_INST_SPEC_GET
#define SF32LB_DMA_DT_INST_SPEC_GET |
( |
| index | ) |
|
#include <zephyr/drivers/dma/sf32lb.h>
Value:
#define DT_DRV_INST(inst)
Node identifier for an instance of a DT_DRV_COMPAT compatible.
Definition devicetree.h:4037
#define SF32LB_DMA_DT_SPEC_GET(node_id)
Initialize a sf32lb_dma_dt_spec structure from a DT node.
Definition sf32lb.h:41
Initialize a sf32lb_dma_dt_spec structure from a DT instance.
- Parameters
-
◆ SF32LB_DMA_DT_INST_SPEC_GET_BY_NAME
#define SF32LB_DMA_DT_INST_SPEC_GET_BY_NAME |
( |
| index, |
|
|
| name ) |
#include <zephyr/drivers/dma/sf32lb.h>
Value:
#define SF32LB_DMA_DT_SPEC_GET_BY_NAME(node_id, name)
Initialize a sf32lb_dma_dt_spec structure from a DT node.
Definition sf32lb.h:54
Initialize a sf32lb_dma_dt_spec structure from a DT instance.
- Parameters
-
index | DT instance index |
name | DMA name |
◆ SF32LB_DMA_DT_SPEC_GET
#define SF32LB_DMA_DT_SPEC_GET |
( |
| node_id | ) |
|
#include <zephyr/drivers/dma/sf32lb.h>
Value: { \
}
#define DEVICE_DT_GET(node_id)
Get a device reference from a devicetree node identifier.
Definition device.h:314
#define DT_DMAS_CTLR(node_id)
Equivalent to DT_DMAS_CTLR_BY_IDX(node_id, 0)
Definition dma.h:91
#define DT_DMAS_CELL_BY_IDX(node_id, idx, cell)
Get a DMA specifier's cell value at an index.
Definition dma.h:166
Initialize a sf32lb_dma_dt_spec structure from a DT node.
- Parameters
-
node_id | DT node identifier |
◆ SF32LB_DMA_DT_SPEC_GET_BY_NAME
#define SF32LB_DMA_DT_SPEC_GET_BY_NAME |
( |
| node_id, |
|
|
| name ) |
#include <zephyr/drivers/dma/sf32lb.h>
Value: { \
}
#define DT_DMAS_CELL_BY_NAME(node_id, name, cell)
Get a DMA specifier's cell value by name.
Definition dma.h:221
#define DT_DMAS_CTLR_BY_NAME(node_id, name)
Get the node identifier for the DMA controller from a dmas property by name.
Definition dma.h:81
Initialize a sf32lb_dma_dt_spec structure from a DT node.
- Parameters
-
node_id | DT node identifier |
◆ sf32lb_dma_config_dt()
#include <zephyr/drivers/dma/sf32lb.h>
Configure a DMA channel from a DT spec.
- Parameters
-
spec | SF32LB DMA DT spec |
config | DMA configuration |
- Return values
-
0 | If successful. |
-ENOTSUP | If the configuration is not supported. |
-errno | Other negative errno code failure (see dma_config()). |
◆ sf32lb_dma_config_init_dt()
#include <zephyr/drivers/dma/sf32lb.h>
Initialize a DMA configuration structure from a DT spec.
This function sets the following fields in the dma_config structure:
- dma_slot
- channel_priority
- Parameters
-
| spec | SF32LB DMA DT spec |
[out] | config | DMA configuration |
◆ sf32lb_dma_get_status_dt()
#include <zephyr/drivers/dma/sf32lb.h>
Get the status of a DMA transfer from a DT spec.
- Parameters
-
| spec | SF32LB DMA DT spec |
[out] | status | Status output |
- Return values
-
◆ sf32lb_dma_is_ready_dt()
#include <zephyr/drivers/dma/sf32lb.h>
Check if the DMA controller is ready.
- Parameters
-
- Returns
- true If the DMA controller is ready.
-
false If the DMA controller is not ready.
◆ sf32lb_dma_reload_dt()
#include <zephyr/drivers/dma/sf32lb.h>
Reload a DMA transfer from a DT spec.
- Parameters
-
spec | SF32LB DMA DT spec |
src | Source address |
dst | Destination address |
size | Transfer size |
- Return values
-
0 | If successful. |
-errno | Negative errno code failure (see dma_reload()). |
◆ sf32lb_dma_start_dt()
◆ sf32lb_dma_stop_dt()