Home
last modified time | relevance | path

Searched refs:cur_reg (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.7.0/drivers/eeprom/
Deeprom_at2x_emul.c26 uint32_t cur_reg; member
91 data->cur_reg = msgs->buf[0]; in at24_emul_transfer()
92 len = MIN(msgs->len - 1, cfg->size - data->cur_reg); in at24_emul_transfer()
93 memcpy(&cfg->buf[data->cur_reg], &msgs->buf[1], len); in at24_emul_transfer()
100 data->cur_reg = msgs->buf[0]; in at24_emul_transfer()
115 len = MIN(msgs->len, cfg->size - data->cur_reg); in at24_emul_transfer()
116 memcpy(msgs->buf, &cfg->buf[data->cur_reg], len); in at24_emul_transfer()
117 data->cur_reg += len; in at24_emul_transfer()
147 data->cur_reg = 0; in emul_atmel_at24_init()
/Zephyr-Core-3.7.0/drivers/sensor/bosch/bmi160/
Demul_bmi160.c31 uint32_t cur_reg; member
244 data->cur_reg = msgs->buf[0]; in bmi160_emul_transfer_i2c()
250 msgs->buf[i] = reg_read(target, data->cur_reg + i); in bmi160_emul_transfer_i2c()
256 reg_write(target, data->cur_reg, msgs->buf[0]); in bmi160_emul_transfer_i2c()