mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-30 01:27:24 -04:00
Ble receiver (#337)
* BLE app * Update ui_navigation.cpp Co-authored-by: Furrtek <furrtek@gmail.com>
This commit is contained in:
parent
d95bda65ce
commit
40531e9230
12 changed files with 770 additions and 3 deletions
|
@ -78,6 +78,7 @@ public:
|
|||
AFSKRxConfigure = 22,
|
||||
StatusRefresh = 23,
|
||||
SamplerateConfig = 24,
|
||||
BTLERxConfigure = 25,
|
||||
NRFRxConfigure = 26,
|
||||
|
||||
TXProgress = 30,
|
||||
|
@ -723,6 +724,25 @@ public:
|
|||
const bool trigger_word;
|
||||
};
|
||||
|
||||
class BTLERxConfigureMessage : public Message {
|
||||
public:
|
||||
constexpr BTLERxConfigureMessage(
|
||||
const uint32_t baudrate,
|
||||
const uint32_t word_length,
|
||||
const uint32_t trigger_value,
|
||||
const bool trigger_word
|
||||
) : Message { ID::BTLERxConfigure },
|
||||
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 NRFRxConfigureMessage : public Message {
|
||||
public:
|
||||
|
@ -737,13 +757,13 @@ public:
|
|||
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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue