Freescale Semiconductor Inc.
    Regional Technical Application Center

 

E:/PROJECTS/IOP/ADC Average/Src/ADC_Filter/ADC_Filter_Drv/src/AdcFltr_Cfg.h File Reference

ADC Filter Configuration and Control parameters. More...

#include "Adc_Cfg.h"
#include "typedefs.h"

Include dependency graph for AdcFltr_Cfg.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tAdcFltr_ChannelConfig
struct  tAdcFltr_ChannelStruct
struct  tAdcFltr_FilterStruct

Defines

#define _2_SAMPLE_DEPTH_   1U
#define _4_SAMPLE_DEPTH_   2U
#define _8_SAMPLE_DEPTH_   3U
#define _16_SAMPLE_DEPTH_   4U
#define _32_SAMPLE_DEPTH_   5U
#define _64_SAMPLE_DEPTH_   6U
#define SAMPLE_AVERAGE_VALUE   _8_SAMPLE_DEPTH_
#define RQUEUE_BUFF_DEPTH   3U
#define FLTR_RESET_VALUE   0x0000U
#define ATDFLTR_0_AVERAGE
#define ATDFLTR_0_AVERAGECHANNELS   6U
#define ATDFLTR_0_AVERAGETAPS   SAMPLE_AVERAGE_VALUE
#define ATDFLTR_0_AVERAGEINTERRUPT   1U
#define ATDFLTR_0_FILTER_FNC   &vfnFilter_1_End
#define ADC_FLTR_ERROR_DETECT   ON

Functions

void vfnFilter_1_End (void)

Variables

uint16_t u16AdcChannel_Convert [ATDFLTR_0_AVERAGECHANNELS]
uint16_t atdfltr_0_channel [ATDFLTR_0_AVERAGECHANNELS][ATDFLTR_0_AVERAGETAPS+1]
uint16_t atdfltr_0_FilterResults [ATDFLTR_0_AVERAGECHANNELS]
tAdcFltr_FilterStruct sATD0


Detailed Description

ADC Filter Configuration and Control parameters.

Copyright (c) 2008 Freescale Semiconductor Freescale Confidential Proprietary

Author:
Freescale Semiconductor

R01160

Guadalajara Applications Laboratory RTAC Americas

Version:
1.0
Date:
12/08/2008 12:33:36 PM
History:

Define Documentation

#define _16_SAMPLE_DEPTH_   4U

#define _2_SAMPLE_DEPTH_   1U

Number of samples per ADC Channel. Maximum allowed is 64

#define _32_SAMPLE_DEPTH_   5U

#define _4_SAMPLE_DEPTH_   2U

#define _64_SAMPLE_DEPTH_   6U

#define _8_SAMPLE_DEPTH_   3U

#define ADC_FLTR_ERROR_DETECT   ON

Enables or Disables the Error Layer

#define ATDFLTR_0_AVERAGE

Create filter 0

#define ATDFLTR_0_AVERAGECHANNELS   6U

1..8/16 ; number of active channels used on this ADC

#define ATDFLTR_0_AVERAGEINTERRUPT   1U

If TRUE then XGATE interrupts CPU when done

#define ATDFLTR_0_AVERAGETAPS   SAMPLE_AVERAGE_VALUE

#define ATDFLTR_0_FILTER_FNC   &vfnFilter_1_End

Filter End function used to indicate that all samples were averaged

#define FLTR_RESET_VALUE   0x0000U

#define RQUEUE_BUFF_DEPTH   3U

Used by the eDMA module to indicate the number of ADC conversions to be stored

#define SAMPLE_AVERAGE_VALUE   _8_SAMPLE_DEPTH_

Indicates the driver the number of samples to be acquired per channel


Function Documentation

void vfnFilter_1_End ( void   ) 


Variable Documentation

uint16_t atdfltr_0_channel[ATDFLTR_0_AVERAGECHANNELS][ATDFLTR_0_AVERAGETAPS+1]

Filter Configuration parameters

uint16_t atdfltr_0_FilterResults[ATDFLTR_0_AVERAGECHANNELS]

uint16_t u16AdcChannel_Convert[ATDFLTR_0_AVERAGECHANNELS]