DMA (SF32LB specifics)
More...
|
| #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_SPEC_GET_BY_NAME_OR(node_id, name, default_value) |
| | Initialize a sf32lb_dma_dt_spec structure from a DT node, with a fallback to default values.
|
| |
| #define | SF32LB_DMA_DT_INST_SPEC_GET(index) SF32LB_DMA_DT_SPEC_GET(DT_DRV_INST(index)) |
| | Initialize a sf32lb_dma_dt_spec structure from a DT instance.
|
| |
| #define | SF32LB_DMA_DT_INST_SPEC_GET_BY_NAME(index, name) SF32LB_DMA_DT_SPEC_GET_BY_NAME(DT_DRV_INST(index), name) |
| | Initialize a sf32lb_dma_dt_spec structure from a DT instance.
|
| |
| #define | SF32LB_DMA_DT_INST_SPEC_GET_BY_NAME_OR(index, name, default_value) SF32LB_DMA_DT_SPEC_GET_BY_NAME_OR(DT_DRV_INST(index), name, default_value) |
| | Initialize a sf32lb_dma_dt_spec structure from a DT instance.
|
| |
DMA (SF32LB specifics)
◆ SF32LB_DMA_DT_INST_SPEC_GET
◆ SF32LB_DMA_DT_INST_SPEC_GET_BY_NAME
◆ SF32LB_DMA_DT_INST_SPEC_GET_BY_NAME_OR
◆ 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:317
#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_DT_SPEC_GET_BY_NAME_OR
| #define SF32LB_DMA_DT_SPEC_GET_BY_NAME_OR |
( |
|
node_id, |
|
|
|
name, |
|
|
|
default_value |
|
) |
| |
#include <zephyr/drivers/dma/sf32lb.h>
Value:
#define DT_DMAS_HAS_NAME(node_id, name)
Does a dmas property have a named element?
Definition dma.h:280
#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
#define COND_CODE_1(_flag, _if_1_code, _else_code)
Insert code depending on whether _flag expands to 1 or not.
Definition util_macro.h:209
Initialize a sf32lb_dma_dt_spec structure from a DT node, with a fallback to default values.
- Parameters
-
| node_id | DT node identifier |
| name | lowercase-and-underscores name of a dmas element as defined by the node's dma-names property |
| default_value | a fallback value to expand to |
◆ 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()