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 Public Member Functions inherited from SingletonTemplate< Switches >
static SwitchesgetInstance ()
 Public member to get instance of this SINGLETON class. More...
 
- Protected Member Functions inherited from SingletonTemplate< Switches >
 SingletonTemplate ()
 
- Static Protected Attributes inherited from SingletonTemplate< Switches >
static SingletonTemplatempSingletonInstance
 

Detailed Description

Switches class used to get switch values from on-board switches

Member Function Documentation

bool Switches::getSwitch ( int  num)
Parameters
numThe 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 class SingletonTemplate< Switches >
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