Problem in writing code for interfacing MicroSD with STM32

hello there,
can anyone please help me in writing the code for interfacing microSD with STM32 using SPI. I actually dont have proper library files and neither I know how to start the code i.e. which struct object should I make ?
Basically I need an example code so that I can write my own then.

More questions in this forum