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
19void load_from_memory(const bool shouldResetExisting = false);
23void write_to_memory();
24
29
33void signal_output_on();
38
47
52void signal_alert_raised(uint32_t alertMask);
53
58void show(const bool shouldShowAlerts = true);
59
60} // namespace statistics
61} // namespace logic
62} // namespace lampda
63
64#endif
void write_to_memory()
Write statistics to the system flash memory.
Definition: statistics_handler.cpp:111
void signal_button_press()
Signal that a button press was detected.
Definition: statistics_handler.cpp:128
Statistics_t statistics
Statistics holder.
Definition: statistics_handler.cpp:69
void load_from_memory(const bool shouldResetExisting)
Load the statistics from the slash memeory.
Definition: statistics_handler.cpp:83
void signal_alert_raised(uint32_t alertMask)
Signal that an alert of any type was raised.
Definition: statistics_handler.cpp:196
void signal_output_off()
Signal that the output just turned off.
Definition: statistics_handler.cpp:157
void signal_battery_charging_on()
Signal that the battery is charging.
Definition: statistics_handler.cpp:183
void show(const bool shouldShowAlerts)
Debug the statistics to serial output.
Definition: statistics_handler.cpp:208
void signal_battery_charging_off()
Signal that the battery is not charging.
Definition: statistics_handler.cpp:189
void signal_output_on()
Signal that the output just turned on.
Definition: statistics_handler.cpp:151
Program scope.
Definition: control_fixed_modes.hpp:12