Home
last modified time | relevance | path

Searched refs:regn (Results 1 – 10 of 10) sorted by relevance

/Zephyr-Core-3.7.0/drivers/bbram/
Dbbram_microchip_mcp7940n_emul.c58 uint8_t regn = msgs->buf[0]; in mcp7940n_emul_transfer_i2c() local
71 if (regn == MICROCHIP_MCP7940N_RTCWKDAY_REGISTER_ADDRESS) { in mcp7940n_emul_transfer_i2c()
75 if (regn >= MICROCHIP_MCP7940N_SRAM_OFFSET && in mcp7940n_emul_transfer_i2c()
76 regn + msgs->len <= in mcp7940n_emul_transfer_i2c()
80 data->data[regn + i - MICROCHIP_MCP7940N_SRAM_OFFSET]; in mcp7940n_emul_transfer_i2c()
86 if (regn == MICROCHIP_MCP7940N_RTCWKDAY_REGISTER_ADDRESS) { in mcp7940n_emul_transfer_i2c()
90 if (regn >= MICROCHIP_MCP7940N_SRAM_OFFSET && in mcp7940n_emul_transfer_i2c()
91 regn + msgs->len - 1 <= in mcp7940n_emul_transfer_i2c()
94 data->data[regn + i - MICROCHIP_MCP7940N_SRAM_OFFSET] = in mcp7940n_emul_transfer_i2c()
/Zephyr-Core-3.7.0/drivers/sensor/bosch/bmi160/
Demul_bmi160.c61 static void reg_write(const struct emul *target, int regn, int val) in reg_write() argument
66 LOG_DBG("write %x = %x", regn, val); in reg_write()
67 cfg->reg[regn] = val; in reg_write()
68 switch (regn) { in reg_write()
115 LOG_DBG("Unknown write %x", regn); in reg_write()
119 static int reg_read(const struct emul *target, int regn) in reg_read() argument
125 LOG_DBG("read %x =", regn); in reg_read()
126 val = cfg->reg[regn]; in reg_read()
127 switch (regn) { in reg_read()
155 LOG_DBG("Unknown read %x", regn); in reg_read()
[all …]
/Zephyr-Core-3.7.0/drivers/sensor/adi/adltc2990/
Dadltc2990_emul.c54 static int adltc2990_emul_handle_write(const struct emul *target, uint8_t regn, uint8_t value) in adltc2990_emul_handle_write() argument
58 switch (regn) { in adltc2990_emul_handle_write()
93 uint8_t regn = msgs->buf[0]; in adltc2990_emul_transfer_i2c() local
106 msgs->buf[i] = data->reg[regn + i]; in adltc2990_emul_transfer_i2c()
109 int rc = adltc2990_emul_handle_write(target, regn, msgs->buf[1]); in adltc2990_emul_transfer_i2c()
/Zephyr-Core-3.7.0/drivers/sensor/asahi_kasei/akm09918c/
Dakm09918c_emul.c57 static int akm09918c_emul_handle_write(const struct emul *target, uint8_t regn, uint8_t value) in akm09918c_emul_handle_write() argument
61 switch (regn) { in akm09918c_emul_handle_write()
94 uint8_t regn = msgs->buf[0]; in akm09918c_emul_transfer_i2c() local
109 msgs->buf[i] = data->reg[regn + i]; in akm09918c_emul_transfer_i2c()
110 if (regn + i == AKM09918C_REG_TMPS && in akm09918c_emul_transfer_i2c()
118 int rc = akm09918c_emul_handle_write(target, regn, msgs->buf[1]); in akm09918c_emul_transfer_i2c()
/Zephyr-Core-3.7.0/drivers/sensor/tdk/icm42688/
Dicm42688_emul.c45 static void icm42688_emul_handle_write(const struct emul *target, uint8_t regn, uint8_t value) in icm42688_emul_handle_write() argument
49 switch (regn) { in icm42688_emul_handle_write()
69 uint8_t regn; in icm42688_emul_io_spi() local
79 regn = *(uint8_t *)tx->buf; in icm42688_emul_io_spi()
80 is_read = FIELD_GET(REG_SPI_READ_BIT, regn); in icm42688_emul_io_spi()
81 regn &= GENMASK(6, 0); in icm42688_emul_io_spi()
90 ((uint8_t *)rx->buf)[i] = data->reg[regn + i]; in icm42688_emul_io_spi()
101 icm42688_emul_handle_write(target, regn, value); in icm42688_emul_io_spi()
/Zephyr-Core-3.7.0/drivers/sensor/st/lsm6dso/
Dlsm6dso_shub.c679 uint8_t i, n = 0, regn; in lsm6dso_shub_init() local
734 for (n = 0, regn = 0; n < data->num_ext_dev; n++) { in lsm6dso_shub_init()
736 sp->sh_out_reg = LSM6DSO_SENSOR_HUB_1 + regn; in lsm6dso_shub_init()
737 regn += sp->out_data_len; in lsm6dso_shub_init()
/Zephyr-Core-3.7.0/drivers/sensor/st/iis2iclx/
Diis2iclx_shub.c751 uint8_t i, n = 0, regn; in iis2iclx_shub_init() local
799 for (n = 0, regn = 0; n < data->num_ext_dev; n++) { in iis2iclx_shub_init()
801 sp->sh_out_reg = IIS2ICLX_SHUB_DATA_OUT + regn; in iis2iclx_shub_init()
802 regn += sp->out_data_len; in iis2iclx_shub_init()
/Zephyr-Core-3.7.0/drivers/sensor/st/ism330dhcx/
Dism330dhcx_shub.c721 uint8_t i, n = 0, regn; in ism330dhcx_shub_init() local
764 for (n = 0, regn = 0; n < num_ext_dev; n++) { in ism330dhcx_shub_init()
766 sp->sh_out_reg = ISM330DHCX_SHUB_DATA_OUT + regn; in ism330dhcx_shub_init()
767 regn += sp->out_data_len; in ism330dhcx_shub_init()
/Zephyr-Core-3.7.0/drivers/sensor/st/lsm6dso16is/
Dlsm6dso16is_shub.c774 uint8_t i, n = 0, regn; in lsm6dso16is_shub_init() local
832 for (n = 0, regn = 0; n < data->num_ext_dev; n++) { in lsm6dso16is_shub_init()
834 sp->sh_out_reg = LSM6DSO16IS_SENSOR_HUB_1 + regn; in lsm6dso16is_shub_init()
835 regn += sp->out_data_len; in lsm6dso16is_shub_init()
/Zephyr-Core-3.7.0/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x_shub.c774 uint8_t i, n = 0, regn; in lsm6dsv16x_shub_init() local
832 for (n = 0, regn = 0; n < data->num_ext_dev; n++) { in lsm6dsv16x_shub_init()
834 sp->sh_out_reg = LSM6DSV16X_SENSOR_HUB_1 + regn; in lsm6dsv16x_shub_init()
835 regn += sp->out_data_len; in lsm6dsv16x_shub_init()