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

Collaboration diagram for Switches:

Public Member Functions | |
bool | init () |
Initializes this device,. More... | |
uint8_t | getSwitchValues () |
bool | getSwitch (int num) |
Friends | |
class | SingletonTemplate< Switches > |
Friend class used for Singleton Template. More... | |
Additional Inherited Members | |
![]() | |
static Switches & | getInstance () |
Public member to get instance of this SINGLETON class. More... | |
![]() | |
SingletonTemplate () | |
![]() | |
static SingletonTemplate * | mpSingletonInstance |
Detailed Description
Switches class used to get switch values from on-board switches
Member Function Documentation
bool Switches::getSwitch | ( | int | num | ) |
- Parameters
-
num The switch number to test from 1-4
- Returns
- true if the switch is active, or false otherwise
uint8_t Switches::getSwitchValues | ( | ) |
- Returns
- The 8-bit char containing bit values of the 4 switches, 1 bit per switch
bool Switches::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/switches.hpp
- /var/www/html/SJSU-DEV-Linux/firmware/default/lib/L4_IO/src/io_source.cpp