I am completely new to this topic so please excuse my mistakes. I have this: https://www.mikroe.com/geomagnetic-click geomagnetic click with a BMM150 sensor with this datasheet: https://download.mikroe.com/documents/datasheets/BMM150.pdf.
I connected it to the raspberry pi via the SPI pins and I'm trying to read the registers which give me the x y z values. I tried using the library Spidev and xfer to communicate however never got anything to work correctly. I tried sending the bits which are specified in the datasheet to read the registers but I just got zeros. Also in the datasheet, it is stated that the CSB pin has to be pulled low to communicate how would I do that?.
Can someone maybe give an example of how to send the correct information to read the registers?