I am developing a program with BMI160 with this libraries, but I do not know to which it refers the following code at line 5 and 6: sensor.read and sensor.write.
struct bmi160_dev sensor; sensor.id = BMI160_I2C_ADDR; sensor.interface = BMI160_I2C_INTF; sensor.read = user_i2c_read; sensor.write = user_i2c_write; sensor.delay_ms = user_delay_ms; int8_t rslt = BMI160_OK; rslt = bmi160_init(&sensor);
It is an example of Bosch Sesonrtec for I2C conetion.