Reading and writing to 2 bytes register

Hey Nordic's technical team,

I'm trying to write and read via I2C to a component with two bytes registers. I tried the following method:

uint8_t buf[2] = SOME_RULE;
i2c_reg_write_byte(dev, DEVICE_ADDR, INNER_ADDR, &buf); 

Then switched to this one:

uint8_t buf[2] = SOME_RULE;
i2c_burst_write(dev, DEVICE_ADDR, INNER_ADDR, &buf, sizeof(buf)); 

But without success so far. Do you have any idea what is the right way to do so?

Parents Reply Children
No Data
Related