Sync with Sharebrained's fw, only Xylos TX works for now

This commit is contained in:
furrtek
2016-07-27 03:03:40 +02:00
parent fdfa7c9776
commit 739956b42b
150 changed files with 17236 additions and 7875 deletions
+10 -1
View File
@@ -148,12 +148,12 @@ public:
std::string title() const override { return "Xylos transmit"; };
void focus() override;
void paint(Painter& painter) override;
private:
int inc_cnt;
int header_init;
bool txing = false;
bool testing = false;
const rf::Frequency xylos_freqs[7] = { 31325000, 31387500, 31437500, 31475000, 31687500, 31975000, 88000000 };
char ccirmessage[21];
@@ -173,6 +173,7 @@ private:
void start_tx();
void upd_message();
void on_txdone(const int n);
const Style style_val {
.font = font::fixed_8x16,
@@ -363,6 +364,14 @@ private:
{ 20 * 8, 16 * 16, 64, 32 },
"TEST"
};
MessageHandlerRegistration message_handler_tx_done {
Message::ID::TXDone,
[this](const Message* const p) {
const auto message = *reinterpret_cast<const TXDoneMessage*>(p);
this->on_txdone(message.n);
}
};
};
} /* namespace ui */