Simulated LED controller used when real hardware is not available.
More...
#include <PesudoLedController.h>
|
|
| 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).
|
| |
Simulated LED controller used when real hardware is not available.
◆ 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()
Processes the parameter package (always succeeds in simulation).
- Parameters
-
| package | LED parameter package. |
- Returns
- Always true.
◆ redirectTo()
| void PesudoLedController::redirectTo |
( |
const std::string & |
ledName | ) |
|
|
inline |
Redirects to another LED (no-op in simulation).
- Parameters
-
◆ setMode()
| void PesudoLedController::setMode |
( |
const Modes |
mode | ) |
|
|
inline |
Sets the control mode.
- Parameters
-
The documentation for this class was generated from the following file: