Aguijón Software Libraries  1.0
Documentation for the included Libraries
 All Files Functions Variables Typedefs Enumerations Enumerator Macros
analog.h File Reference

Go to the source code of this file.

Macros

#define readPOT()   readADC();
 

Functions

void initADC ()
 
int readADC (void)
 
int normalize_ADCReading (unsigned char inferiorLimit, unsigned char superiorLimit)
 

Macro Definition Documentation

#define readPOT ( )    readADC();

Definition at line 3 of file analog.h.

Function Documentation

void initADC ( void  )

Function: initADC

Preconditions: None.

Overview: Initializes the internal ADC module.

Arguments: None.

Returns: None.

Definition at line 43 of file analog.c.

int normalize_ADCReading ( unsigned char  inferiorLimit,
unsigned char  superiorLimit 
)

Function: normalize_ADCReading

Preconditions: ADC initialized.

Overview: Normalizes the ADC reading to a specified range.

Arguments: inferiorLimit, superiorLimit.

Returns: Normalized result.

Definition at line 83 of file analog.c.

int readADC ( void  )

Function: readADC

Preconditions: ADC initialized.

Overview: Reads the digital value of the input.

Arguments: None.

Returns: Current ADC value (integer).

Definition at line 64 of file analog.c.