Complementary PWMs on different channels STM32

Hello, I would like to use the STM32’s PWM block to generate two complementary PWM signals on different channels, rather than generating them on the same channel. I am doing this for a three-phase converter control simulation; I want to control each converter leg using a separate channel, and at certain times, I need to apply a PWM signal to one leg (main PWM on the top switch and complementary on the bottom switch) while applying a complementary PWM signal to another leg (main PWM on the bottom switch and complementary on the top switch). In other words, I need to change the channel polarity during the simulation.