Hello Maik, Hope you to download COINES. https://www.bosch-sensortec.com/software-tools/tools/coines/ You can use intf_ptr using static varialbe as attached file. And also read and write functions you can use it as below. /*! This API is used to perform I2C read operation with sensor */ int8_t bmi2xy_hal_i2c_bus_read(uint8_t reg_addr, uint8_t *reg_data, uint32_t length, void *intf_ptr) { int8_t rslt = 0; //uint8_t dev_id = 0x68; uint8_t* dev_id = (uint8_t *)intf_ptr; rslt = coines_read_i2c(*dev_id, reg_addr, reg_data, length); return rslt; } Thank you.
... View more