FD32M0P Microcontroller SDK
Loading...
Searching...
No Matches
dma.c File Reference
#include "dma.h"
Include dependency graph for dma.c:

Functions

void dma_init (PL230_REGS_s *PL230_REGS, uint32_t base_ptr_address)
 This function initalizes the dma, waits if there is any current transaction, set dma structure addressm disable all the channels and enables the controller.
void dma_channel_cfg (DMA_REGS_s *DMA_REGS, PL230_REGS_s *PL230_REGS, dma_channel_cfg_t *dma_channel_cfg, DMA_CHANNEL_E channel)
void dma_channel_en_set (PL230_REGS_s *PL230_REGS, DMA_CHANNEL_E channel)
uint8_t dma_channel_en_get (PL230_REGS_s *PL230_REGS, DMA_CHANNEL_E channel)
void dma_channel_sw_trig (PL230_REGS_s *PL230_REGS, DMA_CHANNEL_E channel)
void dma_channel_priority_cfg (DMA_REGS_s *DMA_REGS, DMA_ARBITRATION_DMA_RR_EN_E mode, uint16_t round_robin_mask)
 This function set the dma arbitration.
bool dma_is_idle (PL230_REGS_s *PL230_REGS)
 This function check if dma fsm is in idle/stalled/done state.
void dma_channel_en_clr (PL230_REGS_s *PL230_REGS, DMA_CHANNEL_E channel)

Function Documentation

◆ dma_channel_cfg()

◆ dma_channel_en_set()

void dma_channel_en_set ( PL230_REGS_s * PL230_REGS,
DMA_CHANNEL_E channel )

◆ dma_channel_en_get()

uint8_t dma_channel_en_get ( PL230_REGS_s * PL230_REGS,
DMA_CHANNEL_E channel )

◆ dma_channel_sw_trig()

void dma_channel_sw_trig ( PL230_REGS_s * PL230_REGS,
DMA_CHANNEL_E channel )

◆ dma_channel_en_clr()

void dma_channel_en_clr ( PL230_REGS_s * PL230_REGS,
DMA_CHANNEL_E channel )