src/modules/adc.c File Reference

This is the library file for using the SPI ADC. More...

#include "sysconfig.h"
#include "spi.h"
#include "adc.h"

Functions

int get_temperature (void)
 get_temperature This function is called when receiving from SPI-ADC


Detailed Description

This is the library file for using the SPI ADC.

It contains all functions which are neccessary to handle the ADC
It handles receiving from the ADC via SPI.

It is NOT Controller specific


Function Documentation

int get_temperature ( void   ) 

get_temperature This function is called when receiving from SPI-ADC

Parameters:
void 
Returns:
int Returns the Temperature value (Resolution only in 1°C steps)

References DD_SPI_ADC_CS, and SPI_MasterTransmit().

Referenced by temperature().


Generated on Mon Jan 12 21:12:08 2009 for BlueTemp by  doxygen 1.5.8