I need to be able to de-activate the USB CDC port and yet still be able to negotiate for power to charge a battery. The use case here is that I have a device with both Bluetooth SPP and USB CDC and I want to allow only one serial connection type, yet still negotiate for and draw power for battery charging and handle any LPM requests if needed.
I'm using the CubeMX with an STM32L433 part if it makes a difference. I'm using mostly HAL PCD where I can, but I can get low-level if needed.
Any recommendations on how best to accomplish this?