Nrf24l01 demodulation (#338)

* NRF demodulation

* Update ui_navigation.cpp
This commit is contained in:
Erwin Ried 2020-04-20 06:45:28 +02:00 committed by GitHub
parent 3dfbdc844c
commit d95bda65ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 719 additions and 0 deletions

View file

@ -78,6 +78,7 @@ public:
AFSKRxConfigure = 22,
StatusRefresh = 23,
SamplerateConfig = 24,
NRFRxConfigure = 26,
TXProgress = 30,
Retune = 31,
@ -722,6 +723,27 @@ public:
const bool trigger_word;
};
class NRFRxConfigureMessage : public Message {
public:
constexpr NRFRxConfigureMessage(
const uint32_t baudrate,
const uint32_t word_length,
const uint32_t trigger_value,
const bool trigger_word
) : Message { ID::NRFRxConfigure },
baudrate(baudrate),
word_length(word_length),
trigger_value(trigger_value),
trigger_word(trigger_word)
{
}
const uint32_t baudrate;
const uint32_t word_length;
const uint32_t trigger_value;
const bool trigger_word;
};
class PitchRSSIConfigureMessage : public Message {
public:
constexpr PitchRSSIConfigureMessage(