With the disclosed method, one single integrated circuit can be made and be used in both applications.
A sample based controller is disclosed to derive the ac current reference from the ac voltage and the dc voltage.