46 ads1114_1.config_done =
false;
47 ads1114_1.data_available =
false;
57 ads1114_2.config_done =
false;
58 ads1114_2.data_available =
false;
#define ADS1114_1_I2C_ADDR
#define ADS1114_2_I2C_ADDR
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
#define ADS1114_2_CONFIG_LSB
#define ADS1114_POINTER_CONFIG_REG
#define ADS1114_2_CONFIG_MSB
void ads1114_read(struct ads1114_periph *p)
transaction set to done by user level
struct i2c_transaction trans
bool i2c_transceive(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len_w, uint16_t len_r)
Submit a write/read transaction.
enum I2CTransactionStatus status
Transaction status.
bool i2c_transmit(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len)
Submit a write only transaction.
#define ADS1114_1_CONFIG_LSB
#define ADS1114_POINTER_CONV_REG
#define ADS1114_1_CONFIG_MSB