Originally, my project had been using F1 where I used regular timers. After that it evolved through F3, F4 to G4 where HRTIM is used. All that story is about voltage mode control. For current mode I have not found the solution yet as I have no time at the moment. I am still thinking about digital-analog hybrid approach.