Prusa-MMU-Private
PrusaMultiMaterialUpgradev3firmwareforMK3SMK4
finda.h
Go to the documentation of this file.
1 #pragma once
3 #include <stdint.h>
4 #include "debouncer.h"
5 #include "../config/config.h"
6 
7 namespace modules {
8 
10 namespace finda {
11 
13 class FINDA : protected debounce::Debouncer {
14 public:
15  inline constexpr FINDA()
16  : debounce::Debouncer(config::findaDebounceMs) {};
17 
19  void Step();
20 
23  void BlockingInit();
24 
26 };
27 
29 extern FINDA finda;
30 
31 } // namespace finda
32 } // namespace modules
33 
34 namespace mf = modules::finda;
Definition: debouncer.h:12
bool Pressed() const
Definition: debouncer.h:21
A model of the FINDA - basically acts as a button with pre-set debouncing.
Definition: finda.h:13
void Step()
Performs one step of the state machine - reads the digital pin, processes debouncing,...
Definition: finda.cpp:12
void BlockingInit()
Definition: finda.cpp:16
The finda namespace provides all necessary facilities related to the logical model of the FINDA devic...
Definition: finda.cpp:8
FINDA finda
The one and only instance of FINDA in the FW.
Definition: finda.cpp:10
The modules namespace contains models of MMU's components.
Definition: command_base.h:8