User Activity

I have stpm33 IC for one of our applications. I would like to calculate total harmonic distortion. Is it possible to read from registers of stpm33? If it is not, how can i get RMS value of the nth harmonic component from register?