103 return ((
DMA_ISR(dma) & flag) > 0);
120 DMA_CCR(dma, channel) &= ~DMA_CCR_CIRC;
155 DMA_CCR(dma, channel) |= mem_size;
172 uint32_t peripheral_size)
175 DMA_CCR(dma, channel) |= peripheral_size;
203 DMA_CCR(dma, channel) &= ~DMA_CCR_MINC;
231 DMA_CCR(dma, channel) &= ~DMA_CCR_PINC;
251 DMA_CCR(dma, channel) &= ~DMA_CCR_MEM2MEM;
265 DMA_CCR(dma, channel) &= ~DMA_CCR_DIR;
303 DMA_CCR(dma, channel) &= ~DMA_CCR_TEIE;
327 DMA_CCR(dma, channel) &= ~DMA_CCR_HTIE;
351 DMA_CCR(dma, channel) &= ~DMA_CCR_TCIE;
378 DMA_CCR(dma, channel) &= ~DMA_CCR_EN;
398 DMA_CPAR(dma, channel) = (uint32_t) address;
416 DMA_CMAR(dma, channel) = (uint32_t) address;
#define DMA_CNDTR(dma_base, channel)
#define DMA_FLAG_OFFSET(channel)
#define DMA_IFCR_CIF(channel)
#define DMA_ISR(dma_base)
#define DMA_IFCR(dma_base)
#define DMA_CCR(dma_base, channel)
#define DMA_CMAR(dma_base, channel)
#define DMA_CCR_MSIZE_MASK
#define DMA_CPAR(dma_base, channel)
#define DMA_CCR_PSIZE_MASK
void dma_set_read_from_memory(uint32_t dma, uint8_t channel)
DMA Channel Enable Transfers from Memory.
void dma_disable_transfer_complete_interrupt(uint32_t dma, uint8_t channel)
DMA Channel Disable Interrupt on Transfer Complete.
void dma_set_priority(uint32_t dma, uint8_t channel, uint32_t prio)
DMA Channel Set Priority.
void dma_enable_transfer_complete_interrupt(uint32_t dma, uint8_t channel)
DMA Channel Enable Interrupt on Transfer Complete.
void dma_set_memory_address(uint32_t dma, uint8_t channel, uint32_t address)
DMA Channel Set the Base Memory Address.
bool dma_get_interrupt_flag(uint32_t dma, uint8_t channel, uint32_t interrupt)
DMA Channel Read Interrupt Flag.
void dma_disable_memory_increment_mode(uint32_t dma, uint8_t channel)
DMA Channel Disable Memory Increment after Transfer.
void dma_set_number_of_data(uint32_t dma, uint8_t channel, uint16_t number)
DMA Channel Set the Transfer Block Size.
uint16_t dma_get_number_of_data(uint32_t dma, uint8_t channel)
DMA Channel Get the Transfer Block Size.
void dma_enable_memory_increment_mode(uint32_t dma, uint8_t channel)
DMA Channel Enable Memory Increment after Transfer.
void dma_disable_transfer_error_interrupt(uint32_t dma, uint8_t channel)
DMA Channel Disable Interrupt on Transfer Error.
void dma_set_read_from_peripheral(uint32_t dma, uint8_t channel)
DMA Channel Enable Transfers from a Peripheral.
void dma_disable_channel(uint32_t dma, uint8_t channel)
DMA Channel Disable.
void dma_disable_half_transfer_interrupt(uint32_t dma, uint8_t channel)
DMA Channel Disable Interrupt on Transfer Half Complete.
void dma_enable_peripheral_increment_mode(uint32_t dma, uint8_t channel)
DMA Channel Enable Peripheral Increment after Transfer.
void dma_enable_channel(uint32_t dma, uint8_t channel)
DMA Channel Enable.
void dma_enable_circular_mode(uint32_t dma, uint8_t channel)
DMA Channel Enable Memory Circular Mode.
void dma_enable_transfer_error_interrupt(uint32_t dma, uint8_t channel)
DMA Channel Enable Interrupt on Transfer Error.
void dma_channel_reset(uint32_t dma, uint8_t channel)
DMA Channel Reset.
void dma_disable_peripheral_increment_mode(uint32_t dma, uint8_t channel)
DMA Channel Disable Peripheral Increment after Transfer.
void dma_clear_interrupt_flags(uint32_t dma, uint8_t channel, uint32_t interrupts)
DMA Channel Clear Interrupt Flag.
void dma_enable_mem2mem_mode(uint32_t dma, uint8_t channel)
DMA Channel Enable Memory to Memory Transfers.
void dma_enable_half_transfer_interrupt(uint32_t dma, uint8_t channel)
DMA Channel Enable Interrupt on Transfer Half Complete.
void dma_set_peripheral_size(uint32_t dma, uint8_t channel, uint32_t peripheral_size)
DMA Channel Set Peripheral Word Width.
void dma_set_peripheral_address(uint32_t dma, uint8_t channel, uint32_t address)
DMA Channel Set the Peripheral Address.
void dma_set_memory_size(uint32_t dma, uint8_t channel, uint32_t mem_size)
DMA Channel Set Memory Word Width.