mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-21 05:17:37 +00:00
Finished jammer modes
Shaved off a few kBs by using the Labels widget
This commit is contained in:
@@ -26,6 +26,9 @@
|
||||
#include "baseband_processor.hpp"
|
||||
#include "baseband_thread.hpp"
|
||||
#include "portapack_shared_memory.hpp"
|
||||
#include "jammer.hpp"
|
||||
|
||||
using namespace jammer;
|
||||
|
||||
class JammerProcessor : public BasebandProcessor {
|
||||
public:
|
||||
@@ -34,21 +37,21 @@ public:
|
||||
void on_message(const Message* const msg) override;
|
||||
|
||||
private:
|
||||
bool configured = false;
|
||||
bool configured { false };
|
||||
|
||||
BasebandThread baseband_thread { 3072000, this, NORMALPRIO + 20, baseband::Direction::Transmit };
|
||||
|
||||
JammerChannel * jammer_channels { };
|
||||
|
||||
uint32_t noise_type { 0 };
|
||||
uint32_t noise_speed { 0 };
|
||||
JammerType noise_type { };
|
||||
uint32_t tone_delta { 0 }, lfsr { }, feedback { };
|
||||
uint32_t noise_period { 0 }, period_counter { 0 };
|
||||
uint32_t jammer_duration { 0 };
|
||||
int8_t r { 0 }, ir { 0 };
|
||||
uint32_t current_range { 0 };
|
||||
int64_t jammer_center { 0 };
|
||||
int64_t jammer_center { 0 }, jammer_bw { 0 };
|
||||
uint32_t sample_count { 0 };
|
||||
uint32_t aphase { 0 }, phase { 0 }, delta { 0 }, sphase { 0 };
|
||||
int32_t sample { 0 }, jammer_bw { 0 };
|
||||
int8_t sample { 0 };
|
||||
int8_t re { 0 }, im { 0 };
|
||||
RetuneMessage message { };
|
||||
};
|
||||
|
Reference in New Issue
Block a user