The SPI emulator implementation is based on GPIO, timer and DMA peripherals
https://www.st.com/resource/en/application_note/an4678-full-duplex-spi-emulation-for-stm32f4-microcontrollers-stmicroelectronics.pdf