#include "chip.h"
Go to the source code of this file.
Data Structures | |
struct | AfeCmd |
Spi Transfer Request prepared by the application upper layer. More... | |
struct | AfeDma |
Defines | |
#define | AFE_OK 0 |
#define | AFE_ERROR 1 |
#define | AFE_ERROR_LOCK 2 |
Typedefs | |
typedef void(* | AfeCallback )(uint8_t, void *) |
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. | |
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. |
Interface for configuration the Analog-to-Digital Converter (AFEC) peripheral.
Definition in file afe_dma.h.
typedef void(* AfeCallback)(uint8_t, void *) |
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.
pAfed | Pointer to a AfeDma instance. | |
pAfeHw | Associated Afe peripheral. | |
AfeId | Afe peripheral identifier. | |
pDmad | Pointer to a Dmad instance. |
Starts a AFE transfer. This is a non blocking function. It will return as soon as the transfer is started.
pAfed | Pointer to a AfeDma instance. | |
pCommand | Pointer to the Afe command to execute. |
Definition at line 215 of file afe_dma.c.