feat: add sample command to evalutate dynamic range

This commit is contained in:
TT 2019-08-12 20:53:33 +09:00
parent dc60e11698
commit e626c581ee
3 changed files with 39 additions and 2 deletions

14
dsp.c
View file

@ -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)
{