|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
The values of the parameters a panel shows, as #PANEL lines.
More...
The values of the parameters a panel shows, as #PANEL lines.
| Target | The app's parameter enum (sbl::app::Param) |
| N | Number of parameters on the panel |
| LINE | Line buffer size; a longer #PANEL line is split over several lines |
Definition at line 53 of file panel_report.hpp.
#include <panel_report.hpp>
Public Member Functions | |
| template<size_t COUNT> | |
| PanelReport (const Target(¶ms)[N], const char *const (&names)[COUNT]) | |
| void | set_interval_ms (uint32_t ms) |
| void | set_threshold (float threshold) |
| void | set_decimals (uint8_t decimals) |
| void | update (Target target, float value) |
| template<typename Output > | |
| bool | poll (uint32_t now_ms) |
| void | force () |
|
inline |
| params | The parameters on the panel, in page order (PANEL_PARAMS) |
| names | Every parameter's key, indexed by Target (PARAM_NAMES) |
Definition at line 60 of file panel_report.hpp.
|
inline |
Definition at line 67 of file panel_report.hpp.
|
inline |
Definition at line 68 of file panel_report.hpp.
|
inline |
Definition at line 69 of file panel_report.hpp.
|
inline |
Take a parameter's current value; one the panel does not show is ignored.
Definition at line 72 of file panel_report.hpp.
|
inline |
Write #PANEL if a value moved and the interval has passed; true if it wrote.
Definition at line 83 of file panel_report.hpp.
|
inline |
Write every value at the next poll, moved or not: for a reader that just connected.
Definition at line 88 of file panel_report.hpp.