ADAU1701 Limiter example

Hi folks,

I need help with a template or example software for the RMS & PEAK LIMITER, I tried hard to make it work the way I want.

Whats needed is to have any signal level input from 0.7V up to 10V at the input, while keeping the signal at the output 1V for example without clip.

Is that possible?

Appreciate any help