ADS1115 programming with i2c interface in CC2640R2F

Thread Starter

samyuktha17

Joined Jul 4, 2020
1
i have to program the ads1115 adc to work with my BLE. So basically this adc has four register out of which one is configuration register and by manipulating the bits of this register we can set the gain and sampling rate etc.
So i need to create functions where i can set the gain and sampling rate of our choice.
So for that i was trying to create an i2c function. But from the i2c file i found that for cc2640r2f doesnt have bit manipulation unlike arduino.
so i was thinking of reading the register and then shifting the bits so i wanted to know how to read the register and transmit it back. I got confused after reading the header file thats why
i2c header file link: (arduino)
https://github.com/pkourany/I2CDEV_MPU6050/blob/master/src/I2Cdev.cpp
https://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/tirtos/2_20_00_06/exports/tirtos_full_2_20_00_06/products/tidrivers_full_2_20_00_08/docs/doxygen/html/_i2_c_8h_source.html
 
Top