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

Collaboration diagram for LED:

Public Member Functions | |
| bool | init () |
| Initializes this device,. More... | |
| void | on (uint8_t ledNum) |
| Turns ON LED. More... | |
| void | off (uint8_t ledNum) |
| Turns OFF LED. More... | |
| void | set (uint8_t ledNum, bool on) |
| Turns on/off led based on. More... | |
| void | toggle (uint8_t ledNum) |
| Toggles the LED. More... | |
| void | setAll (uint8_t value) |
| Sets 8-bit value of 8 LEDs; 1 bit per LED. More... | |
| uint8_t | getValues (void) const |
| Get the LED bit values currently set. More... | |
Friends | |
| class | SingletonTemplate< LED > |
| Friend class used for Singleton Template. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from SingletonTemplate< LED > | |
| static LED & | getInstance () |
| Public member to get instance of this SINGLETON class. More... | |
Protected Member Functions inherited from SingletonTemplate< LED > | |
| SingletonTemplate () | |
Static Protected Attributes inherited from SingletonTemplate< LED > | |
| static SingletonTemplate * | mpSingletonInstance |
Detailed Description
LED class used to control the Board's 8 output LEDs
Member Function Documentation
| uint8_t LED::getValues | ( | void | ) | const |
Get the LED bit values currently set.
| bool LED::init | ( | void | ) |
Initializes this device,.
- Returns
- true if successful
| void LED::set | ( | uint8_t | ledNum, |
| bool | on | ||
| ) |
Turns on/off led based on.
- Parameters
-
on
| void LED::setAll | ( | uint8_t | value | ) |
Sets 8-bit value of 8 LEDs; 1 bit per LED.
| void LED::toggle | ( | uint8_t | ledNum | ) |
Toggles the LED.
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/LED.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