68void handle_shutdown_state();
71uint32_t get_bluetooth_auto_activation_left();
77void progress_update(
const float progress);
86extern const char* ensure_build_canary();
Compile definitions and sanity checks.
Charger_t get_state()
Return the latest known state of the charger.
Definition: charger.cpp:438
void set_power_on()
set system state to "output on"
Definition: behavior.cpp:125
bool is_user_code_running()
Definition: behavior.cpp:276
bool is_in_start_logic_state()
return true if the system is in start mode
Definition: behavior.cpp:138
void set_woke_up_from_vbus(const bool wokeUp)
call once at program start, before the first main loop runs The system was powered from a vbus powere...
Definition: behavior.cpp:803
bool is_in_charge_state()
return true if the system is in charge mode
Definition: behavior.cpp:140
bool read_parameters()
Load the parameters from the filesystem.
Definition: behavior.cpp:163
bool can_system_allowed_to_be_powered()
true if system can work at all (charger or output mode)
Definition: behavior.cpp:154
std::string get_error_state_message()
return the error message associated with the error state
Definition: behavior.cpp:285
void set_power_off()
set system state to "output off". Can be ignored
Definition: behavior.cpp:126
bool is_system_should_be_powered()
Return true if the system is expected to power on.
Definition: behavior.cpp:124
void go_to_external_battery_mode()
Try to switch to external battery mode.
Definition: behavior.cpp:135
bool is_in_output_state()
return true if the system is in output mode
Definition: behavior.cpp:139
void loop()
Called at each tick of the main loop.
Definition: default_behavior.hpp:186
Program scope.
Definition: control_fixed_modes.hpp:12