I'm trying to read multiple Bytes with a Repeated Start Condition after sending the register address from a accelerometer/magnetometer (FXOS8700).
My Code looks like this:
memset(data_rx, 0x00, 13);
packet_rx.chip = FXOS8700_ADDRESS;
packet_rx.addr = FXOS8700_REGISTER_STATUS | 0x80;
packet_rx.addr_length = 1;
packet_rx.buffer = data_rx;
packet_rx.length = 13;
How may I send the needed Repeated Start Condition while reading multiple bytes?
When analyzing the differences between the sample provided by Adafruit (https://github.com/adafruit/Adaf...) with an Arduino and my program ist shows that in my case there is no SR condition adter sendingt the address, whereas the Arduino code does this by calling a Wire.endTransmission();
The datasheet tells me the following:
I'm using a SAMG55 with ASF 3.35.1.
BTW: reading/writing single bytes from/to the device works as expected. And