|
Zephyr Project API 4.3.0
A Scalable Open Source RTOS
|
DMA (SF32LB specifics) More...
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. | |
DMA (SF32LB specifics)
| #define SF32LB_DMA_DT_INST_SPEC_GET | ( | index | ) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/dma/sf32lb.h>
Initialize a sf32lb_dma_dt_spec structure from a DT instance.
| index | DT instance index |
| #define SF32LB_DMA_DT_INST_SPEC_GET_BY_NAME | ( | index, | |
| name ) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/dma/sf32lb.h>
Initialize a sf32lb_dma_dt_spec structure from a DT instance.
| index | DT instance index |
| name | DMA name |
| #define SF32LB_DMA_DT_SPEC_GET | ( | node_id | ) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/dma/sf32lb.h>
Initialize a sf32lb_dma_dt_spec structure from a DT node.
| node_id | DT node identifier |
| #define SF32LB_DMA_DT_SPEC_GET_BY_NAME | ( | node_id, | |
| name ) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/dma/sf32lb.h>
Initialize a sf32lb_dma_dt_spec structure from a DT node.
| node_id | DT node identifier |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/dma/sf32lb.h>
Configure a DMA channel from a DT spec.
| spec | SF32LB DMA DT spec |
| config | DMA configuration |
| 0 | If successful. |
| -ENOTSUP | If the configuration is not supported. |
| -errno | Other negative errno code failure (see dma_config()). |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/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:
| spec | SF32LB DMA DT spec | |
| [out] | config | DMA configuration |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/dma/sf32lb.h>
Get the status of a DMA transfer from a DT spec.
| spec | SF32LB DMA DT spec | |
| [out] | status | Status output |
| 0 | If successful. |
| -errno | Negative errno code failure (see dma_get_status()). |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/dma/sf32lb.h>
Check if the DMA controller is ready.
| spec | SF32LB DMA DT spec |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/dma/sf32lb.h>
Reload a DMA transfer from a DT spec.
| spec | SF32LB DMA DT spec |
| src | Source address |
| dst | Destination address |
| size | Transfer size |
| 0 | If successful. |
| -errno | Negative errno code failure (see dma_reload()). |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/dma/sf32lb.h>
Start a DMA transfer from a DT spec.
| spec | SF32LB DMA DT spec |
| 0 | If successful. |
| -errno | Negative errno code failure (see dma_start()). |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/dma/sf32lb.h>
Stop a DMA transfer from a DT spec.
| spec | SF32LB DMA DT spec |
| 0 | If successful. |
| -errno | Negative errno code failure (see dma_stop()). |