#ifndef VACUUM_PANEL_RUNTIME_H
#define VACUUM_PANEL_RUNTIME_H
#include "panel_keys.h"
#include "vacuum_ui.h"
typedef struct {
 pk_decoder keys; vui_state ui;
 bool have_sample,power_candidate; uint32_t power_since,last_ms;
 vui_output output;
} vpr_state;
typedef struct { vui_output ui; bool keys_valid; pk_key key; } vpr_output;
void vpr_init(vpr_state *s);
vpr_output vpr_step(vpr_state *s,uint16_t raw,bool adc_valid,bool power,
                   bool fault,bool learning_busy,bool learning_ready,uint32_t now);
#endif
