CCIMXDesktop
 
Loading...
Searching...
No Matches
PesudoLedController Class Reference

Simulated LED controller used when real hardware is not available. More...

#include <PesudoLedController.h>

Public Member Functions

 PesudoLedController ()=default
 Default constructor.
 
 ~PesudoLedController ()=default
 Default destructor.
 
void redirectTo (const std::string &ledName)
 Redirects to another LED (no-op in simulation).
 
std::string ledPath () const
 Returns the (simulated) LED path.
 
void setMode (const Modes mode)
 Sets the control mode.
 
Modes getMode () const
 Gets the current control mode.
 
bool processByPackage (const LEDParamsPackage *package)
 Processes the parameter package (always succeeds in simulation).
 

Detailed Description

Simulated LED controller used when real hardware is not available.

Member Function Documentation

◆ getMode()

Modes PesudoLedController::getMode ( ) const
inline

Gets the current control mode.

Returns
Current mode.

◆ ledPath()

std::string PesudoLedController::ledPath ( ) const
inline

Returns the (simulated) LED path.

Returns
Fake path string.

◆ processByPackage()

bool PesudoLedController::processByPackage ( const LEDParamsPackage package)
inline

Processes the parameter package (always succeeds in simulation).

Parameters
packageLED parameter package.
Returns
Always true.

◆ redirectTo()

void PesudoLedController::redirectTo ( const std::string &  ledName)
inline

Redirects to another LED (no-op in simulation).

Parameters
ledNameLED identifier.

◆ setMode()

void PesudoLedController::setMode ( const Modes  mode)
inline

Sets the control mode.

Parameters
modeControl mode.

The documentation for this class was generated from the following file: