Bar Logo 4kW dsPIC33C PSFB DC-DC DA (Part-No. )
 
Content
     
Loading...
Searching...
No Matches
drv_mcc_extension_adc.h File Reference

Contains public functions and defines for the MCC code extension for ADC.
More...

#include <xc.h>
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
+ Include dependency graph for drv_mcc_extension_adc.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum ADC_FILTER_MODE_e ADC_FILTER_MODE_t
 
typedef enum ADC_FILTER_OVRSAM_AVG_e ADC_FILTER_OVRSAM_AVG_t
 

Enumerations

enum  ADC_FILTER_MODE_e { ADC_FILTER_MODE_OVERSAMPLING = 0 , ADC_FILTER_MODE_AVERAGING = 3 }
 ADC Filter Modes of operation. More...
 
enum  ADC_FILTER_OVRSAM_AVG_e { ADC_FILTER_OVRSAM_AVG_2x = 0 , ADC_FILTER_OVRSAM_AVG_4x = 1 , ADC_FILTER_OVRSAM_AVG_8x = 2 , ADC_FILTER_OVRSAM_AVG_16x = 3 , ADC_FILTER_OVRSAM_AVG_32x = 4 , ADC_FILTER_OVRSAM_AVG_64x = 5 , ADC_FILTER_OVRSAM_AVG_128x = 6 , ADC_FILTER_OVRSAM_AVG_256x = 7 }
 ADC Filter Oversampling Ratio when in averaging mode. More...
 

Functions

static void ADC_Filter_Enable (uint16_t filterIndex, bool enable)
 Enables the ADC filter feature of the ADC.
 
static void ADC_Filter_Mode (uint16_t filterIndex, ADC_FILTER_MODE_t mode)
 Sets the ADC instance filter mode.
 
static void ADC_Filter_Averaging (uint16_t filterIndex, ADC_FILTER_OVRSAM_AVG_t averagingRatio)
 Sets the ADC instance number of samples to average.
 
static void ADC_Filter_Input (uint16_t filterIndex, uint16_t channelIndex)
 Sets the ADC instance to be filtered.
 
static uint16_t ADC_Filter_GetResult (uint16_t filterIndex)
 Gets the ADC filter result.
 

Detailed Description



Definition in file drv_mcc_extension_adc.h.

Typedef Documentation

◆ ADC_FILTER_MODE_t

Definition at line 25 of file drv_mcc_extension_adc.h.

◆ ADC_FILTER_OVRSAM_AVG_t