mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 15:04:11 +00:00
WIP: detect integer spurs
This commit is contained in:
parent
b6f26eb6dc
commit
72e2a331da
3 changed files with 15 additions and 3 deletions
|
|
@ -60,6 +60,14 @@ public:
|
|||
uint64_t GetActualFrequency() {
|
||||
return outputFrequency;
|
||||
}
|
||||
uint32_t DistanceToIntegerSpur() {
|
||||
uint32_t dist = outputFrequency % f_PFD;
|
||||
if(dist > f_PFD / 2) {
|
||||
return f_PFD - dist;
|
||||
} else {
|
||||
return dist;
|
||||
}
|
||||
}
|
||||
private:
|
||||
static constexpr uint64_t MaxFreq = 6100000000; // 6GHz according to datasheet, but slight overclocking is possible
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue