RTEMS  5.0.0
Functions
afe_dma.c File Reference
#include "chip.h"
#include "afe_dma.h"
#include "xdmad.h"
#include <stdint.h>
#include <assert.h>

Functions

uint32_t Afe_ConfigureDma (AfeDma *pAfed, Afec *pAfeHw, uint8_t AfeId, sXdmad *pXdmad)
 Initializes the AfeDma structure and the corresponding AFE & DMA . hardware select value. The driver will uses DMA channel 0 for RX . The DMA channels are freed automatically when no DMA command processing. More...
 
uint32_t Afe_SendData (AfeDma *pAfed, AfeCmd *pCommand)
 Starts a AFE transfer. This is a non blocking function. It will return as soon as the transfer is started. More...
 

Function Documentation

◆ Afe_ConfigureDma()

uint32_t Afe_ConfigureDma ( AfeDma pAfed,
Afec pAfeHw,
uint8_t  AfeId,
sXdmad pXdmad 
)

Initializes the AfeDma structure and the corresponding AFE & DMA . hardware select value. The driver will uses DMA channel 0 for RX . The DMA channels are freed automatically when no DMA command processing.

Parameters
pAfedPointer to a AfeDma instance.
pAfeHwAssociated Afe peripheral.
AfeIdAfe peripheral identifier.
pDmadPointer to a Dmad instance.

◆ Afe_SendData()

uint32_t Afe_SendData ( AfeDma pAfed,
AfeCmd pCommand 
)

Starts a AFE transfer. This is a non blocking function. It will return as soon as the transfer is started.

Parameters
pAfedPointer to a AfeDma instance.
pCommandPointer to the Afe command to execute.
Returns
0 if the transfer has been started successfully; otherwise returns AFE_ERROR_LOCK is the driver is in use, or AFE_ERROR if the command is not valid.