I use AccA for that, lets me set profiles and change basically any aspect of charging, current, voltage, temperature, cool down, capacity limits, idle-mode, you name it.
So it is possible, but it would have to be integrated into the ROM, because something similar to acc
needs root / system-level access.