Things I have learned so far.
USB C PD chargers only supply a few fixed voltages:
5V - always, and one or more of:
9V
15V
20V
12V may be available on older generations of chargers, but it is no longer required and isn't common on newer chargers.
The charger output voltage is negotiated with the connected device. If the device's requested voltage isn't available, the next lower one is supplied. The connected device may or may not be able to make use of the lower voltage.
For my application of running a 12 volt CPAP, I am using a USB PD 20 volt "trigger" module, which handles the negotiation with the PD charger, and a DC-DC buck converter to drop the 20 volts (or possibly 15 volts) from the PD charger to 12 volts for the CPAP.
The trigger module is surprisingly tiny (which really shouldn't have been a surprise since it's not much bigger than the USB C connector!); it's easy to see how it can be built into a standard size USB C cable. The small blue board in the picture is the trigger module.
The red board below is the buck converter. It's huge compared to the trigger module, but it's only about 1" × 2".
Testing will be coming.
As a reminder, from a
linear voltage regulator, you can't get more current out than is going in. The excess voltage gets converted to heat.
A
switching regulator is far more efficient. The output
power will be roughly 85% of the input power.
For a linear regulator, with Vin = 20, Vout = 12, and current = 3 amps,
Power dissipated by the regulator:
P = (Vin - Vout) × A = 24 watts
This is power wasted as heat.
For a switching regulator:
(Vin × Ain) × 0.85 = Vout × Aout
Ain = (Vout × Aout)/(0.85 × Vin)
Ain't = (12 × 3)/(0.85 × 20) = 2.1 amps
42 watts input ==> 36 watts output (and 6 watts heat) with a switcher compared to
60 watts input ==> 36 watts output (and 24 watts heat) with a linear regulator.