adc.c File Reference


Detailed Description

Implementation of ADC conversion.

Software License
See the MBCSL for details.
Author:
Sven Schlender (kontakt at mobacon dot de)
Date:
2011-04-22


Functions

WORD ADCGetValue (BYTE Channel)
 Returns the current ADC value of the requested channel.
void ADCInitialize (void)
 Initializes and calibrates the ADC module.


Function Documentation

WORD ADCGetValue ( BYTE  Channel  ) 

Returns the current ADC value of the requested channel.

The function checks wheter the channel supports ADC measurent and blocks until the value is read.

Parameters:
Channel On of the GPIO channels (GPIO_XX_ID). Note, that not every channel supports ADC (currently only GPIO_04_ID and GPIO_05_ID).
Returns:
The ADC value as 10-bit representation.


Generated on Fri Mar 29 10:34:27 2013 for Netzer by  doxygen 1.5.5