To make an ADS1115 ADC module running on my Raspi 3B, I am trying to use the driver supplied by Elektor Labs. The driver requires the user to develop the low-level part (I²C commands) himself and then to attach it to the backend API of the driver, which consists of these procedures:
// I2C stubs, implementations to be provided by the user.
extern uint8_t ADS1x1x_i2c_start_write(uint8_t i2c_address);
extern uint8_t ADS1x1x_i2c_write(uint8_t x);
extern uint8_t ADS1x1x_i2c_start_read(uint8_t i2c_address, uint16_t bytes_to_read);
extern uint8_t ADS1x1x_i2c_read(void);
extern uint8_t ADS1x1x_i2c_stop(void);
I am using the I²C API of pigpiod
. Now, here is my question: Which pigpiod
function(s) are necessary to implement the ADS1x1x_i2c_start_read ()
function?