Reading ASM330LHHX sensor using SPI
Hi, I'm trying to get sensor data using the SPI protocol, but it seems not to be working as it should be.
Developing environments are: S32 Design Studio for Power Architecture, MPC5748G, ASM330LHHX, dspi_driver example code
At first, I sent a read request for WHO_AM_I address 0x8F then the data sequence returned.
But still, the same data sequence returned which was not what I wanted(0x6b).
So I changed the request address to 9A and some others, but still, the same data sequence returned.

The pictures above are who_am_i return data.
The data sequence is " 0x00 ... 0xD6 .... 0x00 ... 0x08 .... 0x00... 0x01 ... 0x00 ... 0xC0..."
This is how I configure the SPI component :

What is the correct way to read and write sensor data? Is there a guide for this?
Thanks in advance.
