|
C++ DevKit
C++ set of OOP library
|
Class to manage a DMA channel. More...
#include <hw_dma.h>

Public Member Functions | |
| HW_DMA (irq_num_t irq_number=DMA_IRQ_0, irq_handler_t dma_irq_handler=NULL) | |
| constructor of the DMA class | |
| ~HW_DMA () | |
| Destructor of the class, free the allocated DMA channel. | |
| int | xfer_mem2mem (uint32_t number_of_transfer, dma_channel_transfer_size_t transfer_size, volatile void *destination_address, volatile void *source_address, bool start) |
| the function member used to move data from memory to memory | |
| void | cleanup_and_free_dma_channel () |
| clean up and free the allocated DMA channel | |
| void | start_dma () |
| start the DMA transfer | |
Class to manage a DMA channel.
| HW_DMA::HW_DMA | ( | irq_num_t | irq_number = DMA_IRQ_0, |
| irq_handler_t | dma_irq_handler = NULL ) |
constructor of the DMA class
| irq_number | the IRQ attached to this DMA object |
| dma_irq_handler | the IRQ hansler triggered by this IRQ |
| int HW_DMA::xfer_mem2mem | ( | uint32_t | number_of_transfer, |
| dma_channel_transfer_size_t | transfer_size, | ||
| volatile void * | destination_address, | ||
| volatile void * | source_address, | ||
| bool | start ) |
the function member used to move data from memory to memory
| number_of_transfer | the number of DMA transfers |
| transfer_size | the size of DMA transfer (8, 16 or 32 bit) |
| destination_address | the memory destination address |
| source_address | the memory source address |
| start | if trus, immediate start |