mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-05 16:17:37 +00:00
Small fine tuning xOVS selection for BW 25k (#1430)
* Small fine tuning xOVS selection for BW 25k * Comments , same growing order ending with dot.
This commit is contained in:
parent
5d602ece5c
commit
2435ee780f
@ -57,10 +57,10 @@
|
||||
* The oversample rate is used to increase the sample rate to improve SNR and quality.
|
||||
* This is also used as the interpolation rate when replaying captures. */
|
||||
inline OversampleRate get_oversample_rate(uint32_t sample_rate) {
|
||||
if (sample_rate < 30'000) return OversampleRate::x64; // 25k, 16k, 12k5.
|
||||
if (sample_rate < 80'000) return OversampleRate::x32; // 75k, 50k, 32k.
|
||||
if (sample_rate < 25'000) return OversampleRate::x64; // 12k5, 16k.
|
||||
if (sample_rate < 80'000) return OversampleRate::x32; // 25k, 32k, 50k, 75k.
|
||||
if (sample_rate < 250'000) return OversampleRate::x16; // 100k, 150k.
|
||||
if (sample_rate < 1'250'000) return OversampleRate::x8; // 250k, 500k, 600k, 650k, 750k, 1Mhz.
|
||||
if (sample_rate < 1'250'000) return OversampleRate::x8; // 250k, 500k, 600k, 750k, 1Mhz.
|
||||
|
||||
return OversampleRate::x4; // Top range (1.25Mhz ... 5.5Mhz).
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user