I found a code example in STM32CubeWL using STM32 environment : GitHub - STMicroelectronics/STM32CubeWL: STM32Cube MCU Full FW Package for the STM32WL series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on boards provided by ST (Nucleo boards) : STM32CubeWL/Projects/NUCLEO-WL55JC/Applications/SubGHz_Phy/SubGHz_Phy_PingPong_DualCore at de65a6e5e3aa178705e20c71f7d78db198a80ccc · STMicroelectronics/STM32CubeWL · GitHub
Good luck