Freescale Semiconductor Inc.
    Regional Technical Application Center

 

E:/PROJECTS/IOP/ADC Average/Src/ADC_Filter/ADC_Filter_Drv/src/Adc_Filter.c File Reference

This file performs the filtering of all ADC samples. More...

#include "Adc_Filter.h"

Include dependency graph for Adc_Filter.c:


Functions

void vfnAdc_Sample_Acquire (void)
 This functions serves to start sampling of all configured ADC Channels and
to keep track of which channel need to be triggered.
void vfnAdc_Average (tAdcFltr_FilterStruct *filter)
 Saves the sample acquired from an specific ADC Channel and Compute the Filter at the end of the sample
acquisition.
void vfnAdcFltr_Init (tAdcFltr_FilterStruct *filter)
 Initialize ADC Filter structure by configuring all ADC conversion channels
and control variables.
void vfnADC_Start_Average (void)
 Start ADC Averaging on every configured channels.
void vfnADC_Stop_Average (void)
 Stops ADC averaging on the whole driver.
void vfnFilter_1_End (void)

Variables

int8_t i8NumberOfChannels
uint8_t u8Avg_Channel_Number
uint8_t u8SampleCntr
tAdcFltr_FilterStructAdcFltrCntl_t

Detailed Description

This file performs the filtering of all ADC samples.

Copyright (c) 2008 Freescale Semiconductor Freescale Confidential Proprietary

Author:
Freescale Semiconductor

Guadalajara Applications Laboratory RTAC Americas

R01160

Version:
0.1
Date:
11/23/2008

Function Documentation

void vfnAdc_Average ( tAdcFltr_FilterStruct filter  ) 

Saves the sample acquired from an specific ADC Channel and Compute the Filter at the end of the sample
acquisition.

Author:
R01160
Parameters:
ADC Filter Strucutre. (tAdcFltr_FilterStruct)
Returns:
none
Warning:

void vfnAdc_Sample_Acquire ( void   ) 

This functions serves to start sampling of all configured ADC Channels and
to keep track of which channel need to be triggered.

Author:
R01160
Parameters:
none 
Returns:
none
Warning:
This function shall be handled only by a PIT channel.

void vfnADC_Start_Average ( void   ) 

Start ADC Averaging on every configured channels.

Author:
R01160
Parameters:
none 
Returns:
none

void vfnADC_Stop_Average ( void   ) 

Stops ADC averaging on the whole driver.

Author:
R01160
Parameters:
none 
Returns:
none

void vfnAdcFltr_Init ( tAdcFltr_FilterStruct filter  ) 

Initialize ADC Filter structure by configuring all ADC conversion channels
and control variables.

Author:
R01160
Parameters:
ADC Filter Strucutre. (tAdcFltr_FilterStruct)
Returns:
none

void vfnFilter_1_End ( void   ) 


Variable Documentation