Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
statistics_handler.h
Go to the documentation of this file.
1
5#ifndef LOGIC_STATISTICS_HANDLER_H
6#define LOGIC_STATISTICS_HANDLER_H
7
8#include <cstdint>
9
10namespace lampda {
11namespace logic {
13namespace statistics {
14
18void load_from_memory();
22void write_to_memory();
23
28
32void signal_output_on();
37
46
51void signal_alert_raised(uint32_t alertMask);
52
57void show(const bool shouldShowAlerts = true);
58
59} // namespace statistics
60} // namespace logic
61} // namespace lampda
62
63#endif
void write_to_memory()
Write statistics to the system flash memory.
Definition: statistics_handler.cpp:95
void signal_button_press()
Signal that a button press was detected.
Definition: statistics_handler.cpp:112
Statistics_t statistics
Statistics holder.
Definition: statistics_handler.cpp:59
void signal_alert_raised(uint32_t alertMask)
Signal that an alert of any type was raised.
Definition: statistics_handler.cpp:180
void signal_output_off()
Signal that the output just turned off.
Definition: statistics_handler.cpp:141
void signal_battery_charging_on()
Signal that the battery is charging.
Definition: statistics_handler.cpp:167
void show(const bool shouldShowAlerts)
Debug the statistics to serial output.
Definition: statistics_handler.cpp:192
void signal_battery_charging_off()
Signal that the battery is not charging.
Definition: statistics_handler.cpp:173
void load_from_memory()
Load the statistics from the slash memeory.
Definition: statistics_handler.cpp:73
void signal_output_on()
Signal that the output just turned on.
Definition: statistics_handler.cpp:135
Program scope.
Definition: control_fixed_modes.hpp:12