ADXL345 SPI 3 wires-mode, half-duplex

Hello engineers,

I'm on implementation of a driver for a targeted platform.

ADXL345 is working well with SPI 4 wires-mode full-duplex (both reading and writing).

But I cannot make it work perfectly with SPI 3 wires-mode half-duplex (writing is OK, reading is not).

The specification (datasheet) is not really clear for SPI 3 wires-mode (attached image).

Was there anyone on implementation with SPI 3 wires-mode halt duplex please?

It must be great if any sample source code as well.

Thanks a lot.


Duy P. Nguyen