Subghz decoder (#1646)

* Initial commit - wip

* Half part of the transition of baseband processor.

* More SGD

* WIP, Weather refactor, UI improv

* Rename

* Added 4msps, and fixes

* Fixes

* princeton working

* Renamed proc_weather, bc now multifunctional

* Proto: bett

* FPS_CAME = 4,
    FPS_PRASTEL = 5,
    FPS_AIRFORCE = 6,

* Came Atomo, fixes

* Separate weather and sgd, bc of baseband size limit

* Fix display

* Save space

* More protos

* Dooya proto added

* More protos

* add protos

* More protos

* Move weather to ext app

* nw

* Revert "Move weather to ext app"

This reverts commit 8a84aac2f5.

* revert

* Fix merge

* Better naming

* More protos

* More protos

* Add protos

* Fix warning

* Add NeroRadio

* more protos

* more protos

* More protos

* Shrink a bit

* fixes

* More protos

* Nicer code

* Fix naming

* Fix format

* Remove unused

* Fix some protos, that needs a LOOOONG part with the same lo/high

* Modify key calculation
This commit is contained in:
Totoo
2023-12-16 23:37:51 +01:00
committed by GitHub
parent 02810bf527
commit 2ccda5aebd
71 changed files with 4952 additions and 248 deletions

View File

@@ -115,8 +115,9 @@ class Message {
FSKRxConfigure = 58,
BlePacket = 58,
BTLETxConfigure = 59,
WeatherRxConfigure = 60,
SubGhzFPRxConfigure = 60,
WeatherData = 61,
SubGhzDData = 62,
MAX
};
@@ -1238,11 +1239,12 @@ class SpectrumPainterBufferConfigureResponseMessage : public Message {
SpectrumPainterFIFO* fifo{nullptr};
};
class WeatherRxConfigureMessage : public Message {
class SubGhzFPRxConfigureMessage : public Message {
public:
constexpr WeatherRxConfigureMessage()
: Message{ID::WeatherRxConfigure} {
constexpr SubGhzFPRxConfigureMessage(uint8_t modulation = 0)
: Message{ID::SubGhzFPRxConfigure}, modulation{modulation} {
}
uint8_t modulation = 0; // 0 am, 1 fm
};
class WeatherDataMessage : public Message {
@@ -1273,4 +1275,29 @@ class WeatherDataMessage : public Message {
uint8_t btn = 0xFF;
};
class SubGhzDDataMessage : public Message {
public:
constexpr SubGhzDDataMessage(
uint8_t sensorType = 0,
uint8_t btn = 0xFF,
uint16_t bits = 0,
uint32_t serial = 0xFFFFFFFF,
uint64_t data = 0,
uint32_t cnt = 0xFF)
: Message{ID::SubGhzDData},
sensorType{sensorType},
btn{btn},
bits{bits},
serial{serial},
cnt{cnt},
data{data} {
}
uint8_t sensorType = 0;
uint8_t btn = 0xFF;
uint16_t bits = 0;
uint32_t serial = 0xFFFFFFFF;
uint32_t cnt = 0xFF;
uint64_t data = 0;
};
#endif /*__MESSAGE_H__*/

View File

@@ -113,6 +113,7 @@ constexpr image_tag_t image_tag_flash_utility{'P', 'F', 'U', 'T'};
constexpr image_tag_t image_tag_usb_sd{'P', 'U', 'S', 'B'};
constexpr image_tag_t image_tag_weather{'P', 'W', 'T', 'H'};
constexpr image_tag_t image_tag_subghzd{'P', 'S', 'G', 'D'};
constexpr image_tag_t image_tag_noop{'P', 'N', 'O', 'P'};