fingersensors.c File Reference

#include "t89c51cc02.h"
#include "datatypes.h"
#include "fingersensors.h"
#include "adc.h"

Go to the source code of this file.

Functions

void Fingersensors_init ()
 initializes fingersensors subsystem
void Fingersensors_read ()
 read all finger mounted force sensing resistors

Variables

WORD idata fingersensors [FINGERSENSORS_NR]
 storage buffer for current fingersensor values


Detailed Description

Definition in file fingersensors.c.


Function Documentation

void Fingersensors_init void   ) 
 

initializes fingersensors subsystem

P1.1 and P1.2 are configured as valid analogue inputs for the subsystem.

Definition at line 33 of file fingersensors.c.

References fingersensors, FINGERSENSORS_NR, and Fingersensors_PowerOff.

Referenced by main().

void Fingersensors_read void   ) 
 

read all finger mounted force sensing resistors

The samples are saved into the buffer. (see fingersensors )

Definition at line 49 of file fingersensors.c.

References ADC(), fingersensors, Fingersensors_PowerOff, Fingersensors_SelectBank1, and Fingersensors_SelectBank2.

Referenced by main().


Variable Documentation

WORD idata fingersensors[FINGERSENSORS_NR]
 

storage buffer for current fingersensor values

The buffer is located in indirect addressable IRAM of the T89C51CC02

Definition at line 26 of file fingersensors.c.

Referenced by Fingersensors_init(), Fingersensors_read(), and main().


Generated on Wed Oct 24 12:57:24 2007 for SensorControl by  doxygen 1.4.6