mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-24 14:37:31 +00:00
Added missing files, ENUMed modulation modes
This commit is contained in:
@@ -159,13 +159,33 @@ public:
|
||||
AudioStatistics statistics;
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
RX_NBAM_AUDIO = 0,
|
||||
RX_NBFM_AUDIO,
|
||||
RX_WBFM_AUDIO,
|
||||
RX_AIS,
|
||||
RX_WBSPECTRUM,
|
||||
RX_TPMS,
|
||||
RX_AFSK,
|
||||
RX_SIGFOX,
|
||||
|
||||
TX_RDS,
|
||||
TX_LCR,
|
||||
TX_TONE,
|
||||
TX_JAMMER,
|
||||
TX_XYLOS,
|
||||
|
||||
NONE,
|
||||
SWITCH = 0xFF
|
||||
} mode_type;
|
||||
|
||||
struct BasebandConfiguration {
|
||||
int32_t mode;
|
||||
mode_type mode;
|
||||
uint32_t sampling_rate;
|
||||
size_t decimation_factor;
|
||||
|
||||
constexpr BasebandConfiguration(
|
||||
int32_t mode = -1,
|
||||
mode_type mode = NONE,
|
||||
uint32_t sampling_rate = 0,
|
||||
size_t decimation_factor = 1
|
||||
) : mode { mode },
|
||||
|
2
firmware/common/modules.h
Normal file
2
firmware/common/modules.h
Normal file
@@ -0,0 +1,2 @@
|
||||
const char md5_baseband[16] = {0x20,0xb7,0x1a,0x68,0x28,0xda,0xc9,0xb8,0x01,0xb0,0xbd,0x68,0x0d,0xd5,0xd6,0xa7,};
|
||||
const char md5_baseband_tx[16] = {0xe5,0x29,0xb9,0xf0,0x81,0x50,0x45,0x69,0x24,0xaf,0xdd,0x4e,0xdb,0xaf,0xd8,0x97,};
|
Reference in New Issue
Block a user