This file contains the implementation of analog-digital comparator functions. More...
#include <avr/io.h>
#include <util/delay.h>
#include "xtypes.h"
#include "global.h"
#include "adc.h"
Go to the source code of this file.
Defines | |
#define | EXPORT |
#define | AD_REF_EXT 0x00U |
Presetting value for ADC multiplexer. | |
#define | AD_READIN_COUNT 8 |
This value defines how many ADC values will be read and averaged for 1 measure. | |
Functions | |
void | adc_Init (void) |
Init function of module <adc.c>. | |
UINT16 | adc_Read (UINT8 u8Channel) |
Reads an averaged value from an ADC channel. |
This module provides a common interface to other modules to read analog voltages from ADC input pins.
Definition in file adc.c.