Here's an interesting video series describing such a software-configured, hardware-controlled switching controller.
Here, Microchip markets this particular line of PIC MCUs as a "field-programmable switch-mode power controller". But weirdly I haven't seen that language on their main site.
https://mu.microchip.com/getting-started-with-cip-hybrid-pow...