...     
if  ( MAX_POWER_LOSS < (uint32_t)Current_meas * (Prereg_meas - Voltage_meas) ) {
        pwmvalue += (uint16_t)(Voltage_set + Voltage_off);
    }
...