sensors.h

Go to the documentation of this file.
00001 /**************************************************************************/
00018 #ifndef _SENSORS_H
00019 #define _SENSORS_H
00020 
00021 /******************************************************************************
00022                    Includes section
00023 ******************************************************************************/
00024 // \cond
00025 #include <types.h>
00026 // \endcond
00027 
00028 /******************************************************************************
00029                    Define(s) section
00030 ******************************************************************************/
00031 // \cond
00032 #define SENSOR_LIGHT       1
00033 #define SENSOR_TEMPERATURE 2
00034 #define SENSOR_BATTERY     3
00035 #define SENSOR_LED         4
00036 // \endcond
00037 
00038 /******************************************************************************
00039                    Prototypes section
00040 ******************************************************************************/
00041 /***************************************************************************/
00047 result_t BSP_OpenTemperatureSensor(void);
00048 
00049 /***************************************************************************/
00056 result_t BSP_CloseTemperatureSensor(void);
00057 
00058 /**************************************************************************/
00070 result_t BSP_ReadTemperatureData(void (*f)(bool result, int16_t data));
00071 
00072 /***************************************************************************/
00078 result_t BSP_OpenLightSensor(void);
00079 
00080 /***************************************************************************/
00087 result_t BSP_CloseLightSensor(void);
00088 
00089 /**************************************************************************/
00101 result_t BSP_ReadLightData(void (*f)(bool result, int16_t data));
00102 
00103 /***************************************************************************/
00109 result_t BSP_OpenBatterySensor(void);
00110 
00111 /***************************************************************************/
00117 result_t BSP_CloseBatterySensor(void);
00118 
00119 /**************************************************************************/
00130 result_t BSP_ReadBatteryData(void (*callback)(uint8_t data));
00131 
00132 #endif/* _SENSORS_H */
00133 // eof sensors.h
00134 

Generated on Mon Feb 16 17:53:40 2009 for BitCloud Stack Documentation by  doxygen 1.5.1-p1