I use the function dwt_readdiagnostics() to read F1, F2, F3, but all of the values are 0.
The code is as follows:
dwt_rxdiag_t diag1;
dwt_readdignostics(&diag1);
F1=diag1.firstPathAmp1;
F2=diag1.firstPathAmp2;
F3=diag1.firstPathAmp3;
I don’t know what went wrong with me. Did I read it at the wrong time? F1, F2, F3 register value will automatically clear 0? Are there any other considerations?