|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
Macros for extracting DMA configuration from Devicetree. More...
Macros | |
| #define | BEE_DMA_CTLR(id, dir) |
| Get the DMA controller device node identifier. | |
| #define | BEE_DMA_CHANNEL_CONFIG(id, dir) |
| Get the raw configuration value from Devicetree. | |
| #define | BEE_DMA_CONFIG_DIRECTION(config) |
| Extract DMA transfer direction. | |
| #define | BEE_DMA_CONFIG_SOURCE_ADDR_INC(config) |
| Extract Source Address Increment mode. | |
| #define | BEE_DMA_CONFIG_DESTINATION_ADDR_INC(config) |
| Extract Destination Address Increment mode. | |
| #define | BEE_DMA_CONFIG_SOURCE_DATA_SIZE(config) |
| Extract Source Data Size in bytes. | |
| #define | BEE_DMA_CONFIG_DESTINATION_DATA_SIZE(config) |
| Extract Destination Data Size in bytes. | |
| #define | BEE_DMA_CONFIG_SOURCE_MSIZE(config) |
| Extract Source MSIZE. | |
| #define | BEE_DMA_CONFIG_DESTINATION_MSIZE(config) |
| Extract Destination MSIZE. | |
| #define | BEE_DMA_CONFIG_PRIORITY(config) |
| Extract Channel Priority. | |
Macros for extracting DMA configuration from Devicetree.
| #define BEE_DMA_CHANNEL_CONFIG | ( | id, | |
| dir ) |
#include <dma_bee.h>
Get the raw configuration value from Devicetree.
| id | The instance identifier. |
| dir | The direction name (e.g., rx, tx). |
| #define BEE_DMA_CONFIG_DESTINATION_ADDR_INC | ( | config | ) |
#include <dma_bee.h>
Extract Destination Address Increment mode.
Located at bits 4-5 of the config.
| config | The configuration value. |
| #define BEE_DMA_CONFIG_DESTINATION_DATA_SIZE | ( | config | ) |
#include <dma_bee.h>
Extract Destination Data Size in bytes.
Located at bits 8-9 of the config.
| config | The configuration value. |
| #define BEE_DMA_CONFIG_DESTINATION_MSIZE | ( | config | ) |
#include <dma_bee.h>
Extract Destination MSIZE.
Located at bits 13-15 of the config. Maps the 3-bit index to the actual msize:
| config | The configuration value. |
| #define BEE_DMA_CONFIG_DIRECTION | ( | config | ) |
#include <dma_bee.h>
Extract DMA transfer direction.
Located at bits 0-1 of the config.
| config | The configuration value. |
| #define BEE_DMA_CONFIG_PRIORITY | ( | config | ) |
#include <dma_bee.h>
Extract Channel Priority.
Located at bits 16-20 of the config. Range: 0-9.
| config | The configuration value. |
| #define BEE_DMA_CONFIG_SOURCE_ADDR_INC | ( | config | ) |
#include <dma_bee.h>
Extract Source Address Increment mode.
Located at bits 2-3 of the config.
| config | The configuration value. |
| #define BEE_DMA_CONFIG_SOURCE_DATA_SIZE | ( | config | ) |
#include <dma_bee.h>
Extract Source Data Size in bytes.
Located at bits 6-7 of the config.
| config | The configuration value. |
| #define BEE_DMA_CONFIG_SOURCE_MSIZE | ( | config | ) |
#include <dma_bee.h>
Extract Source MSIZE.
Located at bits 10-12 of the config. Maps the 3-bit index to the actual msize:
| config | The configuration value. |
| #define BEE_DMA_CTLR | ( | id, | |
| dir ) |
#include <dma_bee.h>
Get the DMA controller device node identifier.
| id | The instance identifier. |
| dir | The direction name (e.g., rx, tx). |