Hi Ansh521 ,
Official BMI270 driver code and exmaple code were written by C language on github, you can refer the example code https://github.com/boschsensortec/BMI270-Sensor-API/tree/master/bmi270_examples and migrate to your platform.
... View more