no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
axi_dmac.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
#include "no_os_axi_io.h"
#include "no_os_error.h"
#include "no_os_delay.h"
#include "no_os_alloc.h"
#include "axi_dmac.h"
Include dependency graph for axi_dmac.c:

Functions

void axi_dmac_dev_to_mem_isr (void *instance)
 
void axi_dmac_mem_to_dev_isr (void *instance)
 
void axi_dmac_mem_to_mem_isr (void *instance)
 
int32_t axi_dmac_read (struct axi_dmac *dmac, uint32_t reg_addr, uint32_t *reg_data)
 
int32_t axi_dmac_write (struct axi_dmac *dmac, uint32_t reg_addr, uint32_t reg_data)
 
int32_t axi_dmac_is_transfer_ready (struct axi_dmac *dmac, bool *rdy)
 
int32_t axi_dmac_init (struct axi_dmac **dmac_core, const struct axi_dmac_init *init)
 
int32_t axi_dmac_remove (struct axi_dmac *dmac)
 
int32_t axi_dmac_transfer_start (struct axi_dmac *dmac, struct axi_dma_transfer *dma_transfer)
 
int32_t axi_dmac_transfer_wait_completion (struct axi_dmac *dmac, uint32_t timeout_ms)
 
void axi_dmac_transfer_stop (struct axi_dmac *dmac)
 

Function Documentation

◆ axi_dmac_dev_to_mem_isr()

void axi_dmac_dev_to_mem_isr ( void * instance)
Here is the caller graph for this function:

◆ axi_dmac_init()

int32_t axi_dmac_init ( struct axi_dmac ** dmac_core,
const struct axi_dmac_init * init )
Here is the caller graph for this function:

◆ axi_dmac_is_transfer_ready()

int32_t axi_dmac_is_transfer_ready ( struct axi_dmac * dmac,
bool * rdy )

◆ axi_dmac_mem_to_dev_isr()

void axi_dmac_mem_to_dev_isr ( void * instance)

See if remaining size is bigger than max transfer size and set burst size.

Here is the caller graph for this function:

◆ axi_dmac_mem_to_mem_isr()

void axi_dmac_mem_to_mem_isr ( void * instance)

See if remaining size is bigger than max transfer size and set burst size.

◆ axi_dmac_read()

int32_t axi_dmac_read ( struct axi_dmac * dmac,
uint32_t reg_addr,
uint32_t * reg_data )
Here is the caller graph for this function:

◆ axi_dmac_remove()

int32_t axi_dmac_remove ( struct axi_dmac * dmac)
Here is the caller graph for this function:

◆ axi_dmac_transfer_start()

int32_t axi_dmac_transfer_start ( struct axi_dmac * dmac,
struct axi_dma_transfer * dma_transfer )
Here is the caller graph for this function:

◆ axi_dmac_transfer_stop()

void axi_dmac_transfer_stop ( struct axi_dmac * dmac)

◆ axi_dmac_transfer_wait_completion()

int32_t axi_dmac_transfer_wait_completion ( struct axi_dmac * dmac,
uint32_t timeout_ms )
Here is the caller graph for this function:

◆ axi_dmac_write()

int32_t axi_dmac_write ( struct axi_dmac * dmac,
uint32_t reg_addr,
uint32_t reg_data )
Here is the caller graph for this function: