Other Parts Discussed in Thread: CC2650, CC2560, CC2650STK
Tool/software: TI-RTOS
Hello,
I have a laser based range finder (LiDAR Light) with I2C protocol to trigger the sensor and read distance measurement.
I already interfaced them with Arduino and raspberry pi and would like to add it to CC2650 Launchapd.
I checked the example of the Sensortag I2C. But the issue is that I don't know how I can define the register address and the value I want to write into that.
I need to have something like that:
To write: write(register_value , register_address , sensor_I2C_address).
To read: read(register_address , sensor_I2C_Address).
The Lidar sensor I have has the I2C address=0x62.
To trigger sensor to measure distance I need to write "0x03" to register 0x00 of sensor.
Then wait for few milliseconds and then read the measurement value from register 0x52 of sensor.
Could you please help me with implementing it with CC2560 I2C driver.
In driver how I can specify from or to which register I want to read or write. and how I can define the value that I want to write to specific register.
Thanks.