mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-04-21 06:14:05 +00:00
feat: add sample command to evalutate dynamic range
This commit is contained in:
parent
dc60e11698
commit
e626c581ee
3 changed files with 39 additions and 2 deletions
14
dsp.c
14
dsp.c
|
|
@ -95,6 +95,20 @@ calculate_gamma(float gamma[2])
|
|||
gamma[1] = (ss * rc - sc * rs) / rr;
|
||||
}
|
||||
|
||||
void
|
||||
fetch_amplitude(float gamma[2])
|
||||
{
|
||||
gamma[0] = acc_samp_s * 1e-9;
|
||||
gamma[1] = acc_samp_c * 1e-9;
|
||||
}
|
||||
|
||||
void
|
||||
fetch_amplitude_ref(float gamma[2])
|
||||
{
|
||||
gamma[0] = acc_ref_s * 1e-9;
|
||||
gamma[1] = acc_ref_c * 1e-9;
|
||||
}
|
||||
|
||||
void
|
||||
reset_dsp_accumerator(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue