mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-08 14:42:33 -04:00
Extend REC low bit rate bandwith options in Capture App till 75khz (#1380)
* working_x32_Capture_till_75Khz * format issues * apply better accurate comments * auto format issues
This commit is contained in:
parent
e1cc0b1ad0
commit
12dbf957b3
6 changed files with 97 additions and 19 deletions
|
@ -78,6 +78,7 @@ options_t freqman_bandwidths[4] = {
|
|||
{"16k", 16000},
|
||||
{"25k", 25000},
|
||||
{"50k", 50000},
|
||||
{"75k", 75000},
|
||||
{"100k", 100000},
|
||||
{"150k", 150000},
|
||||
{"250k", 250000},
|
||||
|
|
|
@ -383,7 +383,7 @@ void WaterfallView::on_audio_spectrum() {
|
|||
// TODO: Comments below refer to a fixed oversample rate (8x), cleanup.
|
||||
uint32_t filter_bandwidth_for_sampling_rate(int32_t sampling_rate) {
|
||||
switch (sampling_rate) { // Use the var fs (sampling_rate) to set up BPF aprox < fs_max / 2 by Nyquist theorem.
|
||||
case 0 ... 3'000'000: // BW Captured range (0 <= 250kHz max) fs = 8 x 250 kHz., 16 x 150 khz, 32 x 75 khz, , 64 x 40 khz
|
||||
case 0 ... 3'500'000: // BW Captured range (0 <= 250kHz max) fs = 8x250 kHz =2000., 16x150 khz =2400, 32x100 khz =3200, (32x75k = 2400), (future 64x40 khz =2400)
|
||||
return 1'750'000; // Minimum BPF MAX2837 for all those lower BW options.
|
||||
|
||||
case 4'000'000 ... 6'000'000: // BW capture range (500k...750kHz max) fs_max = 8 x 750kHz = 6Mhz
|
||||
|
|
|
@ -145,11 +145,11 @@ OversampleRate RecordView::get_oversample_rate(uint32_t sample_rate) {
|
|||
|
||||
auto rate = ::get_oversample_rate(sample_rate);
|
||||
|
||||
// Currently proc_capture only supports x8 and x16 for decimation.
|
||||
if (rate < OversampleRate::x8)
|
||||
// Currently proc_capture only supports x8, x16, x32 for decimation.
|
||||
if (rate < OversampleRate::x8) // clipping while x4 is not implemented yet.
|
||||
rate = OversampleRate::x8;
|
||||
else if (rate > OversampleRate::x16)
|
||||
rate = OversampleRate::x16;
|
||||
else if (rate > OversampleRate::x32) // clipping while x64 is not implemented yet .
|
||||
rate = OversampleRate::x32;
|
||||
|
||||
return rate;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue