Light_Sensor Class Reference
#include <light_sensor.hpp>
Inheritance diagram for Light_Sensor:

Collaboration diagram for Light_Sensor:

Public Member Functions | |
| bool | init () |
| Initializes this device,. More... | |
| uint16_t | getRawValue () |
| uint8_t | getPercentValue () |
Friends | |
| class | SingletonTemplate< Light_Sensor > |
| Friend class used for Singleton Template. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from SingletonTemplate< Light_Sensor > | |
| static Light_Sensor & | getInstance () |
| Public member to get instance of this SINGLETON class. More... | |
Protected Member Functions inherited from SingletonTemplate< Light_Sensor > | |
| SingletonTemplate () | |
Static Protected Attributes inherited from SingletonTemplate< Light_Sensor > | |
| static SingletonTemplate * | mpSingletonInstance |
Detailed Description
Light Sensor class used to get light reading from the Board's Light Sensor
Member Function Documentation
| uint8_t Light_Sensor::getPercentValue | ( | ) |
- Returns
- light sensor reading as percentage
| uint16_t Light_Sensor::getRawValue | ( | ) |
- Returns
- light sensor reading
| bool Light_Sensor::init | ( | void | ) |
Initializes this device,.
- Returns
- true if successful
Friends And Related Function Documentation
|
friend |
Friend class used for Singleton Template.
The documentation for this class was generated from the following files:
- /var/www/html/SJSU-DEV-Linux/firmware/default/lib/L4_IO/light_sensor.hpp
- /var/www/html/SJSU-DEV-Linux/firmware/default/lib/L4_IO/src/io_source.cpp

Static Public Member Functions inherited from
1.8.11