light_sensor.hpp
Go to the documentation of this file.
1 /*
2  * SocialLedge.com - Copyright (C) 2013
3  *
4  * This file is part of free software framework for embedded processors.
5  * You can use it and/or distribute it as long as this copyright header
6  * remains unmodified. The code is free for personal use and requires
7  * permission to use in a commercial product.
8  *
9  * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
10  * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
12  * I SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
13  * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
14  *
15  * You can reach the author of this software at :
16  * p r e e t . w i k i @ g m a i l . c o m
17  */
18 
24 #ifndef LIGHT_SENSOR_HPP_
25 #define LIGHT_SENSOR_HPP_
26 #include <stdint.h>
27 
28 
29 
35 class Light_Sensor : public SingletonTemplate<Light_Sensor>
36 {
37  public:
38  bool init();
39 
40  uint16_t getRawValue();
41  uint8_t getPercentValue();
42 
43  private:
44  Light_Sensor() { }
46 };
47 
48 
49 
50 
51 #endif /* LIGHT_SENSOR_HPP_ */
uint8_t getPercentValue()
Definition: io_source.cpp:333
uint16_t getRawValue()
Definition: io_source.cpp:329
bool init()
Initializes this device,.
Definition: io_source.cpp:325
Definition: light_sensor.hpp:35
Definition: singleton_template.hpp:55