no-OS
|
#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"
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) |
void axi_dmac_dev_to_mem_isr | ( | void * | instance | ) |
int32_t axi_dmac_init | ( | struct axi_dmac ** | dmac_core, |
const struct axi_dmac_init * | init | ||
) |
void axi_dmac_mem_to_dev_isr | ( | void * | instance | ) |
See if remaining size is bigger than max transfer size and set burst size.
void axi_dmac_mem_to_mem_isr | ( | void * | instance | ) |
See if remaining size is bigger than max transfer size and set burst size.
int32_t axi_dmac_read | ( | struct axi_dmac * | dmac, |
uint32_t | reg_addr, | ||
uint32_t * | reg_data | ||
) |
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 | ||
) |
void axi_dmac_transfer_stop | ( | struct axi_dmac * | dmac | ) |
int32_t axi_dmac_transfer_wait_completion | ( | struct axi_dmac * | dmac, |
uint32_t | timeout_ms | ||
) |
int32_t axi_dmac_write | ( | struct axi_dmac * | dmac, |
uint32_t | reg_addr, | ||
uint32_t | reg_data | ||
) |