Home
last modified time | relevance | path

Searched refs:chip_id (Results 26 – 50 of 61) sorted by relevance

123

/Zephyr-latest/drivers/gpio/
Dgpio_stmpe1600.c256 uint16_t chip_id; in stmpe1600_init() local
263 ret = read_reg16(dev->config, REG_CHIP_ID_LSB, &chip_id); in stmpe1600_init()
269 if (chip_id != 0x1600) { in stmpe1600_init()
/Zephyr-latest/drivers/sensor/ams/tsl2561/
Dtsl2561.c258 uint8_t chip_id; in tsl2561_sensor_setup() local
262 ret = tsl2561_reg_read(dev, TSL2561_REG_ID, &chip_id, 1U); in tsl2561_sensor_setup()
268 if (FIELD_GET(TSL2561_ID_PARTNO, chip_id) != TSL2561_CHIP_ID) { in tsl2561_sensor_setup()
/Zephyr-latest/drivers/sensor/bosch/bmc150_magn/
Dbmc150_magn.c482 uint8_t chip_id; in bmc150_magn_init_chip() local
495 BMC150_MAGN_REG_CHIP_ID, &chip_id) < 0) { in bmc150_magn_init_chip()
499 if (chip_id != BMC150_MAGN_CHIP_ID_VAL) { in bmc150_magn_init_chip()
500 LOG_ERR("invalid chip id 0x%x", chip_id); in bmc150_magn_init_chip()
503 LOG_ERR("chip id 0x%x", chip_id); in bmc150_magn_init_chip()
/Zephyr-latest/drivers/sensor/st/iis2iclx/
Diis2iclx_shub.c751 uint8_t chip_id; in iis2iclx_shub_init() local
761 chip_id = 0; in iis2iclx_shub_init()
773 &chip_id, 1) < 0) { in iis2iclx_shub_init()
776 if (chip_id == sp->wai_val) { in iis2iclx_shub_init()
782 LOG_DBG("shub: invalid chip id 0x%x", chip_id); in iis2iclx_shub_init()
785 LOG_INF("shub: Ext Device Chip Id: 0x%02x", chip_id); in iis2iclx_shub_init()
Diis2iclx.c533 uint8_t chip_id; in iis2iclx_init_chip() local
539 if (iis2iclx_device_id_get((stmdev_ctx_t *)&cfg->ctx, &chip_id) < 0) { in iis2iclx_init_chip()
544 LOG_INF("chip id 0x%x", chip_id); in iis2iclx_init_chip()
546 if (chip_id != IIS2ICLX_ID) { in iis2iclx_init_chip()
547 LOG_ERR("Invalid chip id 0x%x", chip_id); in iis2iclx_init_chip()
/Zephyr-latest/drivers/sensor/st/ism330dhcx/
Dism330dhcx_shub.c721 uint8_t chip_id; in ism330dhcx_shub_init() local
729 chip_id = 0; in ism330dhcx_shub_init()
739 &chip_id, 1) < 0) { in ism330dhcx_shub_init()
742 if (chip_id == sp->wai_val) { in ism330dhcx_shub_init()
748 LOG_DBG("shub: invalid chip id 0x%x", chip_id); in ism330dhcx_shub_init()
751 LOG_INF("shub: Ext Device Chip Id: 0x%02x", chip_id); in ism330dhcx_shub_init()
Dism330dhcx.c693 uint8_t chip_id; in ism330dhcx_init_chip() local
697 if (ism330dhcx_device_id_get(ism330dhcx->ctx, &chip_id) < 0) { in ism330dhcx_init_chip()
702 LOG_INF("chip id 0x%x", chip_id); in ism330dhcx_init_chip()
704 if (chip_id != ISM330DHCX_ID) { in ism330dhcx_init_chip()
705 LOG_DBG("Invalid chip id 0x%x", chip_id); in ism330dhcx_init_chip()
/Zephyr-latest/drivers/mfd/
Dmfd_axp192.c146 uint8_t chip_id; in mfd_axp192_init() local
158 ret = i2c_reg_read_byte_dt(&config->i2c, AXP192_REG_CHIP_ID, &chip_id); in mfd_axp192_init()
162 if (chip_id != AXP192_CHIP_ID) { in mfd_axp192_init()
163 LOG_ERR("Invalid Chip detected (%d)", chip_id); in mfd_axp192_init()
/Zephyr-latest/drivers/sensor/st/lsm9ds1/
Dlsm9ds1.c571 uint8_t chip_id, fs; in lsm9ds1_init() local
580 ret = lsm9ds1_read_reg(ctx, LSM9DS1_WHO_AM_I, &chip_id, 1); in lsm9ds1_init()
586 if (chip_id != LSM9DS1_IMU_ID) { in lsm9ds1_init()
587 LOG_ERR("Invalid ID : got %x", chip_id); in lsm9ds1_init()
590 LOG_DBG("chip_id : %x", chip_id); in lsm9ds1_init()
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/
Dlsm6dso16is_shub.c774 uint8_t chip_id; in lsm6dso16is_shub_init() local
793 chip_id = 0; in lsm6dso16is_shub_init()
805 &chip_id, 1) < 0) { in lsm6dso16is_shub_init()
809 if (chip_id == sp->wai_val) { in lsm6dso16is_shub_init()
815 LOG_DBG("shub: invalid chip id 0x%x", chip_id); in lsm6dso16is_shub_init()
818 LOG_INF("shub: Ext Device Chip Id: %02x", chip_id); in lsm6dso16is_shub_init()
Dlsm6dso16is.c742 uint8_t chip_id; in lsm6dso16is_init_chip() local
755 if (lsm6dso16is_device_id_get(ctx, &chip_id) < 0) { in lsm6dso16is_init_chip()
760 LOG_INF("chip id 0x%x", chip_id); in lsm6dso16is_init_chip()
762 if (chip_id != LSM6DSO16IS_ID) { in lsm6dso16is_init_chip()
763 LOG_DBG("Invalid chip id 0x%x", chip_id); in lsm6dso16is_init_chip()
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x_shub.c774 uint8_t chip_id; in lsm6dsv16x_shub_init() local
793 chip_id = 0; in lsm6dsv16x_shub_init()
805 &chip_id, 1) < 0) { in lsm6dsv16x_shub_init()
809 if (chip_id == sp->wai_val) { in lsm6dsv16x_shub_init()
815 LOG_DBG("shub: invalid chip id 0x%x", chip_id); in lsm6dsv16x_shub_init()
818 LOG_INF("shub: Ext Device Chip Id: %02x", chip_id); in lsm6dsv16x_shub_init()
/Zephyr-latest/drivers/ethernet/
Deth_lan865x_priv.h73 uint16_t chip_id; member
/Zephyr-latest/drivers/sensor/st/lsm9ds0_mfd/
Dlsm9ds0_mfd.c648 uint8_t chip_id; in lsm9ds0_mfd_init_chip() local
655 if (i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_MFD_REG_WHO_AM_I_XM, &chip_id) < 0) { in lsm9ds0_mfd_init_chip()
660 if (chip_id != LSM9DS0_MFD_VAL_WHO_AM_I_XM) { in lsm9ds0_mfd_init_chip()
661 LOG_DBG("invalid chip id 0x%x", chip_id); in lsm9ds0_mfd_init_chip()
665 LOG_DBG("chip id 0x%x", chip_id); in lsm9ds0_mfd_init_chip()
/Zephyr-latest/drivers/sensor/memsic/mmc56x3/
Dmmc56x3.c153 uint8_t chip_id; in mmc56x3_chip_init() local
161 ret = mmc56x3_reg_read(dev, MMC56X3_REG_ID, &chip_id, 1); in mmc56x3_chip_init()
167 if (chip_id == MMC56X3_CHIP_ID) { in mmc56x3_chip_init()
170 LOG_DBG("bad chip id 0x%x", chip_id); in mmc56x3_chip_init()
/Zephyr-latest/drivers/sensor/st/lsm6dsl/
Dlsm6dsl.c714 uint8_t chip_id; in lsm6dsl_init_chip() local
721 if (data->hw_tf->read_reg(dev, LSM6DSL_REG_WHO_AM_I, &chip_id) < 0) { in lsm6dsl_init_chip()
725 if (chip_id != LSM6DSL_VAL_WHO_AM_I) { in lsm6dsl_init_chip()
726 LOG_DBG("invalid chip id 0x%x", chip_id); in lsm6dsl_init_chip()
730 LOG_DBG("chip id 0x%x", chip_id); in lsm6dsl_init_chip()
/Zephyr-latest/include/zephyr/drivers/mfd/
Dmfd_ite_it8801.h32 uint8_t chip_id; member
/Zephyr-latest/drivers/sensor/st/lsm6dso/
Dlsm6dso.c709 uint8_t chip_id, master_on; in lsm6dso_init_chip() local
722 if (lsm6dso_device_id_get(ctx, &chip_id) < 0) { in lsm6dso_init_chip()
727 LOG_INF("chip id 0x%x", chip_id); in lsm6dso_init_chip()
729 if (chip_id != LSM6DSO_ID) { in lsm6dso_init_chip()
730 LOG_DBG("Invalid chip id 0x%x", chip_id); in lsm6dso_init_chip()
/Zephyr-latest/drivers/sensor/tdk/icm42670/
Dicm42670.h57 uint8_t chip_id; member
/Zephyr-latest/drivers/sensor/bosch/bmm150/
Dbmm150.c554 uint8_t chip_id; in bmm150_init_chip() local
562 if (bmm150_reg_read(dev, BMM150_REG_CHIP_ID, &chip_id, 1) < 0) { in bmm150_init_chip()
567 if (chip_id != BMM150_CHIP_ID_VAL) { in bmm150_init_chip()
568 LOG_ERR("invalid chip id 0x%x", chip_id); in bmm150_init_chip()
/Zephyr-latest/drivers/video/
Dov5640.c935 uint16_t chip_id; in ov5640_init() local
1006 ret = ov5640_read_reg(&cfg->i2c, CHIP_ID_REG, &chip_id, sizeof(chip_id)); in ov5640_init()
1012 if (chip_id != CHIP_ID_VAL) { in ov5640_init()
1013 LOG_ERR("Wrong chip ID: %04x (expected %04x)", chip_id, CHIP_ID_VAL); in ov5640_init()
/Zephyr-latest/drivers/sensor/bosch/bmi270/
Dbmi270.c648 uint8_t chip_id; in bmi270_init() local
679 ret = bmi270_reg_read(dev, BMI270_REG_CHIP_ID, &chip_id, 1); in bmi270_init()
684 if (chip_id != BMI270_CHIP_ID) { in bmi270_init()
686 chip_id, BMI270_CHIP_ID); in bmi270_init()
/Zephyr-latest/drivers/sensor/bosch/bmp581/
Dbmp581.h309 uint8_t chip_id; member
/Zephyr-latest/drivers/sensor/bosch/bma4xx/
Dbma4xx.h209 uint8_t chip_id; member
Dbma4xx.c242 status = bma4xx->hw_ops->read_reg(dev, BMA4XX_REG_CHIP_ID, &bma4xx->chip_id); in bma4xx_chip_init()
247 LOG_DBG("chip_id is 0x%02x", bma4xx->chip_id); in bma4xx_chip_init()
249 if (bma4xx->chip_id != BMA4XX_CHIP_ID_BMA422) { in bma4xx_chip_init()

123