|
MCAL_DRIVER
|
#include <Core\Include\ivec_mcal_adc_dma.h>Functions | |
| IVEC_McalStatus_e | xMCAL_AdcInit (ADC12_Regs *const adc_inst) |
| Initlization ADC with DMA. More... | |
| IVEC_McalStatus_e | xMCAL_AdcDeInit (ADC12_Regs *const adc_inst) |
| De-Initialize the ADC peripheral to their default reset values. More... | |
| IVEC_McalStatus_e | xMCAL_AdcStart (ADC12_Regs *const adc_inst) |
| Enable ADC, start conversion of regular group. More... | |
| IVEC_McalStatus_e | xMCAL_AdcStop (ADC12_Regs *const adc_inst) |
| Stop ADC conversion of regular group. More... | |
| IVEC_McalStatus_e | xMCAL_DmaInit (void) |
| Initlization of DMA for ADC. More... | |
| IVEC_McalStatus_e | xMCAL_DmaDeInit (void) |
| De-Initialize the DMA to their default reset values. More... | |
| IVEC_McalStatus_e | xMCAL_DmaStart (const uint8_t u8channel, uint16_t *p_u16adcDma) |
| Enable DMA, start transfer from ADC to DMA of regular group. More... | |
| IVEC_McalStatus_e | xMCAL_DmaStop (void) |
| Function use to set the DMA channel. More... | |
| void | _prv_adccallback () |
| ADC call back function. More... | |
| void | ADC1_IRQHandler () |
| ADC IRQ handler. More... | |
Variables | |
| static volatile bool | g_u32AdcInitFlag = 0 |
| static volatile bool | g_u32AdcStartFlag =0 |
| static volatile bool | g_u32DmaFlag =0 |
| static volatile bool | g_u32DmaStart =0 |
| static const DL_ADC12_ClockConfig | gADC12_1ClockConfig |
| Configuration for ADC12_0 clock. More... | |
| static const DL_DMA_Config | gDMA_CH0Config |
| Configuration for DMA. More... | |
| void _prv_adccallback | ( | ) |
ADC call back function.
| void ADC1_IRQHandler | ( | ) |
ADC IRQ handler.
| IVEC_McalStatus_e xMCAL_AdcDeInit | ( | ADC12_Regs *const | adc_inst | ) |
De-Initialize the ADC peripheral to their default reset values.
| adc_inst | ADC handle |
| IVEC | MCAL status |
| IVEC_McalStatus_e xMCAL_AdcInit | ( | ADC12_Regs *const | adc_inst | ) |
Initlization ADC with DMA.
| adc_inst | ADC handle |
| IVEC | MCAL status |
| IVEC_McalStatus_e xMCAL_AdcStart | ( | ADC12_Regs *const | adc_inst | ) |
Enable ADC, start conversion of regular group.
| adc_inst | ADC handle |
| IVEC | MCAL status |
| IVEC_McalStatus_e xMCAL_AdcStop | ( | ADC12_Regs *const | adc_inst | ) |
Stop ADC conversion of regular group.
| adc_inst | ADC handle |
| IVEC | MCAL status |
| IVEC_McalStatus_e xMCAL_DmaDeInit | ( | void | ) |
De-Initialize the DMA to their default reset values.
| adc_inst | ADC handle |
| IVEC | MCAL status |
| IVEC_McalStatus_e xMCAL_DmaInit | ( | void | ) |
Initlization of DMA for ADC.
| adc_inst | ADC handle |
| IVEC | MCAL status |
| IVEC_McalStatus_e xMCAL_DmaStart | ( | const uint8_t | u8channel, |
| uint16_t * | p_u16adcDma | ||
| ) |
Enable DMA, start transfer from ADC to DMA of regular group.
| u8Channel | use to pass the DMA channel |
| p_u16adcDma | use to get the ADC raw |
| IVEC | MCAL status |
| IVEC_McalStatus_e xMCAL_DmaStop | ( | void | ) |
Function use to set the DMA channel.
| u8Channel | use to pass the DMA channel |
| IVEC | MCAL status |
|
static |
ADC initialization flag
|
static |
ADC start - stop flag
|
static |
DMA initialization flag
|
static |
DMA initialization flag
|
static |
Configuration for ADC12_0 clock.
|
static |
Configuration for DMA.
1.8.16