Direct Memory Access (DMA) support.
Contents
Warning
doxygenstruct: Cannot find struct “dma_reg_map” in doxygen xml output for project “project0” from directory: /home/mbolivar/leaf/libmaple/doxygen/xml
DMA device type.
Public Members
- struct dma_reg_map * regs
Register map.
- rcc_clk_id clk_id
Clock ID.
- struct dma_handler_config handlers[]
For internal use.
Public Members
- void(* handler)(void)
- nvic_irq_num irq_line
Deprecated STM32F1 mode flags for dma_setup_xfer().
Use dma_tube_cfg() instead.
See: | dma_tube_cfg() |
---|
Values:
Memory to memory mode.
Auto-increment memory address.
Auto-increment peripheral address.
Circular mode.
Read from memory to peripheral.
Interrupt on transfer error.
Interrupt on half-transfer.
Interrupt on transfer completion.
Source and destination transfer sizes.
Use these when initializing a struct dma_tube_config.
See: | struct dma_tube_config dma_tube_cfg |
---|
Values:
8-bit transfers
16-bit transfers
32-bit transfers
DMA channels.
Notes:
See: | dma_tube |
---|
Values:
Channel 0.
Channel 1.
Channel 2.
Channel 3.
Channel 4.
Channel 5.
Channel 6.
Channel 7.
DMA transfer priority.
Values:
Low priority.
Medium priority.
High priority.
Very high priority.
Encodes the reason why a DMA interrupt was called.
See: | dma_get_irq_cause() |
---|
Values:
Transfer is complete.
Transfer is half complete.
Error occurred during transfer.
Direct mode error occurred during transfer.
FIFO error occurred during transfer.
Warning
doxygenstruct: Cannot find struct “dma_channel_reg_map” in doxygen xml output for project “project0” from directory: /home/mbolivar/leaf/libmaple/doxygen/xml
Initialize a DMA device.
Parameters: |
|
---|
Deprecated.
Use dma_tube_cfg() instead.
Set up a DMA transfer.
The channel will be disabled before being reconfigured. The transfer will have low priority by default. You may choose another priority before the transfer begins using dma_set_priority(), as well as performing any other configuration you desire. When the channel is configured to your liking, enable it using dma_enable().
Parameters: |
|
---|---|
See: | dma_tube_cfg() |
Side Effects:: | Disables the given DMA channel. |
See: | dma_xfer_size dma_mode_flags dma_set_num_transfers() dma_set_priority() dma_attach_interrupt() dma_enable() |
Warning
doxygenfunction: Cannot find function “dma_channel_regs” in doxygen xml output for project “project0” from directory: /home/mbolivar/leaf/libmaple/doxygen/xml
Warning
doxygenfunction: Cannot find function “dma_is_channel_enabled” in doxygen xml output for project “project0” from directory: /home/mbolivar/leaf/libmaple/doxygen/xml
DMA controller 1 register map base pointer.
DMA controller 2 register map base pointer.