ADS1115 programming with i2c interface in CC2640R2F

Thread Starter


Joined Jul 4, 2020
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)