Linked PWM signals
I need to generate 3 PWM signals with the same frequency and referencing the same start point (so sort of synchronised) but with different duty cycles and delays before the pulse, like this:

I'm using a STM32G474CEU6 MCU and STM32CubeIDE.
I've spent days trying to figure out how to achieve this and so far failed. I've had partial success with the top two (green and blue) traces by configuring a timer with centre-aligned PWM and two channels with different duty cycles. That almost matches my requirement but it would be better if the start and end points of the blue pulse could be configured so they are not necessarily equi-distant from the start and end of the green pulse. I've had no success with the red PWM trace.
All help much appreciated.
