From 62c1e4e028ecd22c77026325f737fc0a250f18ef Mon Sep 17 00:00:00 2001 From: ImDroided Date: Sun, 14 Feb 2021 12:52:56 -0600 Subject: [PATCH] Added Pocsag bitrate I added 3200 to the bitrates in pocsag per a user request on Facebook. --- firmware/application/apps/pocsag_app.hpp | 3 ++- firmware/common/pocsag.hpp | 5 +++-- firmware/common/pocsag_packet.hpp | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/firmware/application/apps/pocsag_app.hpp b/firmware/application/apps/pocsag_app.hpp index 58fef242..faa47954 100644 --- a/firmware/application/apps/pocsag_app.hpp +++ b/firmware/application/apps/pocsag_app.hpp @@ -90,7 +90,8 @@ private: { { "512bps ", 0 }, { "1200bps", 1 }, - { "2400bps", 2 } + { "2400bps", 2 }, + { "3200bps", 3 } } }; OptionsField options_phase { diff --git a/firmware/common/pocsag.hpp b/firmware/common/pocsag.hpp index 2614b418..49346af4 100644 --- a/firmware/common/pocsag.hpp +++ b/firmware/common/pocsag.hpp @@ -65,10 +65,11 @@ struct POCSAGState { std::string output; }; -const pocsag::BitRate pocsag_bitrates[3] = { +const pocsag::BitRate pocsag_bitrates[4] = { pocsag::BitRate::FSK512, pocsag::BitRate::FSK1200, - pocsag::BitRate::FSK2400 + pocsag::BitRate::FSK2400, + pocsag::BitRate::FSK3200 }; std::string bitrate_str(BitRate bitrate); diff --git a/firmware/common/pocsag_packet.hpp b/firmware/common/pocsag_packet.hpp index 53f1ada8..b0933c7c 100644 --- a/firmware/common/pocsag_packet.hpp +++ b/firmware/common/pocsag_packet.hpp @@ -34,7 +34,8 @@ enum BitRate : uint32_t { UNKNOWN, FSK512 = 512, FSK1200 = 1200, - FSK2400 = 2400 + FSK2400 = 2400, + FSK3200 = 3200 }; enum PacketFlag : uint32_t {