Hello Amar,
Here is the my answer.
1) If i use bmi160 with spi interface then which interface can i use for bmm150, is it SPI or I2C?
-> I2C only. You can only get BMM150 mag thru BMI160 using i2c.
2) Can i config bmi160 and bmm150 with same SPI interface which i used for communicating with host to bmi160.
-> Same question as Q1. Technically, yes. You can communicate SPI with BMI160, then BMI160 is going to communicate with BMM150 using I2C.
3) If i config bmi160 with SPI and bmm150 with I2C, then how can i read MAG data from bmm150 because two are different protocols.
-> System hierarchy is lie this Host MCU- BMI160 - BMM150. It's okay SPI or I2C to communicate with BMI160. BMI160 give you BMM150 mag data with your interface. But, BMI160 and BMM150 should be communicated thru I2C.
... View more