mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-31 20:09:04 +00:00
Feature/signal hunter (#3245)
This commit is contained in:
@@ -165,6 +165,9 @@ class Message {
|
||||
VorRxConfigure = 107,
|
||||
VorRxStatusData = 108,
|
||||
VorTxConfigure = 109,
|
||||
HunterConfig = 110,
|
||||
HunterTrigger = 111,
|
||||
HunterStop = 112,
|
||||
MAX
|
||||
};
|
||||
|
||||
@@ -1984,4 +1987,26 @@ class FlexTosendMessage : public Message {
|
||||
uint8_t msg[240] = {0};
|
||||
};
|
||||
|
||||
class HunterConfigMessage : public Message {
|
||||
public:
|
||||
uint32_t energy_threshold{5000};
|
||||
uint32_t hangtime_ms{500};
|
||||
bool start{false};
|
||||
constexpr HunterConfigMessage()
|
||||
: Message{ID::HunterConfig} {}
|
||||
};
|
||||
|
||||
class HunterTriggerMessage : public Message {
|
||||
public:
|
||||
uint32_t energy{0};
|
||||
constexpr HunterTriggerMessage()
|
||||
: Message{ID::HunterTrigger} {}
|
||||
};
|
||||
|
||||
class HunterStopMessage : public Message {
|
||||
public:
|
||||
constexpr HunterStopMessage()
|
||||
: Message{ID::HunterStop} {}
|
||||
};
|
||||
|
||||
#endif /*__MESSAGE_H__*/
|
||||
|
||||
@@ -139,6 +139,8 @@ constexpr image_tag_t image_tag_noop{'P', 'N', 'O', 'P'};
|
||||
|
||||
constexpr image_tag_t image_tag_hackrf{'H', 'R', 'F', '1'};
|
||||
|
||||
constexpr image_tag_t image_tag_signal_hunter{'H', 'U', 'N', 'T'};
|
||||
|
||||
struct chunk_t {
|
||||
const image_tag_t tag;
|
||||
const uint32_t length;
|
||||
|
||||
Reference in New Issue
Block a user