Home
last modified time | relevance | path

Searched refs:i2c_data (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/drivers/charger/
Dsbs_charger.c25 uint8_t i2c_data[2]; in sbs_cmd_reg_read() local
29 status = i2c_burst_read_dt(&cfg->i2c, reg_addr, i2c_data, sizeof(i2c_data)); in sbs_cmd_reg_read()
35 *val = sys_get_le16(i2c_data); in sbs_cmd_reg_read()
/Zephyr-latest/drivers/sensor/maxim/max17262/
Dmax17262.c31 uint8_t i2c_data[2]; in max17262_reg_read() local
34 rc = i2c_burst_read_dt(&cfg->i2c, reg_addr, i2c_data, 2); in max17262_reg_read()
39 *valp = ((int16_t)i2c_data[1] << 8) | i2c_data[0]; in max17262_reg_read()
57 uint8_t i2c_data[3] = {reg_addr, val & 0xFF, (uint16_t)val >> 8}; in max17262_reg_write() local
59 return i2c_write_dt(&cfg->i2c, i2c_data, sizeof(i2c_data)); in max17262_reg_write()
/Zephyr-latest/drivers/sensor/sbs_gauge/
Dsbs_gauge.c23 uint8_t i2c_data[2]; in sbs_cmd_reg_read() local
27 status = i2c_burst_read_dt(&cfg->i2c, reg_addr, i2c_data, in sbs_cmd_reg_read()
28 ARRAY_SIZE(i2c_data)); in sbs_cmd_reg_read()
34 *val = sys_get_le16(i2c_data); in sbs_cmd_reg_read()
/Zephyr-latest/drivers/fuel_gauge/bq27z746/
Dbq27z746.c27 uint8_t i2c_data[2]; in bq27z746_read16() local
29 const int status = i2c_burst_read_dt(&cfg->i2c, reg, i2c_data, sizeof(i2c_data)); in bq27z746_read16()
35 *value = sys_get_le16(i2c_data); in bq27z746_read16()
/Zephyr-latest/drivers/i2c/
Di2c_mcux_lpi2c.c324 uint8_t i2c_data; in mcux_lpi2c_slave_irq_handler() local
346 i2c_data = (uint8_t)base->SRDR; in mcux_lpi2c_slave_irq_handler()
359 i2c_data); in mcux_lpi2c_slave_irq_handler()
374 &i2c_data); in mcux_lpi2c_slave_irq_handler()
380 base->STDR = i2c_data; in mcux_lpi2c_slave_irq_handler()
386 &i2c_data); in mcux_lpi2c_slave_irq_handler()
392 base->STDR = i2c_data; in mcux_lpi2c_slave_irq_handler()
/Zephyr-latest/drivers/fuel_gauge/sbs_gauge/
Dsbs_gauge.c28 uint8_t i2c_data[2]; in sbs_cmd_reg_read() local
32 status = i2c_burst_read_dt(&cfg->i2c, reg_addr, i2c_data, ARRAY_SIZE(i2c_data)); in sbs_cmd_reg_read()
38 *val = sys_get_le16(i2c_data); in sbs_cmd_reg_read()
/Zephyr-latest/drivers/sensor/maxim/max17055/
Dmax17055.c34 uint8_t i2c_data[2]; in max17055_reg_read() local
37 rc = i2c_burst_read_dt(&config->i2c, reg_addr, i2c_data, 2); in max17055_reg_read()
42 *valp = sys_get_le16(i2c_data); in max17055_reg_read()
/Zephyr-latest/drivers/sensor/ti/bq274xx/
Dbq274xx.c86 uint8_t i2c_data[2]; in bq274xx_cmd_reg_read() local
89 ret = i2c_burst_read_dt(&config->i2c, reg_addr, i2c_data, sizeof(i2c_data)); in bq274xx_cmd_reg_read()
95 *val = sys_get_le16(i2c_data); in bq274xx_cmd_reg_read()