photosensor.h

Go to the documentation of this file.
00001 
00003 #include "t89c51cc02.h"
00004 #include "datatypes.h"
00005 
00007 #define PHOTOSENSOR_OFF 0x03
00008 
00009 #define Photosensor_PowerOff() P3=(P3 & PHOTOSENSOR_OFF)
00010 
00011 #define Photosensor_select(s) psensor=s; P3=((P3 & PHOTOSENSOR_OFF)|psensor_select[psensor & 0x07])
00012 
00013 #define PHOTOSENSORS_NR 5
00014 
00015 void Photosensor_init(void);
00016 void Photosensor_toggle(void);
00017 WORD Photosensor_read(BYTE);
00018 
00019 

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