/Zephyr-latest/drivers/sensor/st/lps25hb/ |
D | lps25hb.c | 118 uint8_t chip_id; in lps25hb_init_chip() local 131 &chip_id) < 0) { in lps25hb_init_chip() 135 if (chip_id != LPS25HB_VAL_WHO_AM_I) { in lps25hb_init_chip() 136 LOG_DBG("invalid chip id 0x%x", chip_id); in lps25hb_init_chip() 140 LOG_DBG("chip id 0x%x", chip_id); in lps25hb_init_chip()
|
/Zephyr-latest/drivers/sensor/st/lps22hb/ |
D | lps22hb.c | 99 uint8_t chip_id; in lps22hb_init_chip() local 102 &chip_id) < 0) { in lps22hb_init_chip() 107 if (chip_id != LPS22HB_VAL_WHO_AM_I) { in lps22hb_init_chip() 108 LOG_DBG("Invalid chip id 0x%x", chip_id); in lps22hb_init_chip()
|
/Zephyr-latest/drivers/sensor/bosch/bme280/ |
D | bme280.c | 183 if (dev_data->chip_id == BME280_CHIP_ID) { in bme280_sample_fetch_helper() 197 if (dev_data->chip_id == BME280_CHIP_ID) { in bme280_sample_fetch_helper() 239 if (data->chip_id != BME280_CHIP_ID) { in bme280_channel_get() 295 if (data->chip_id == BME280_CHIP_ID) { in bme280_read_compensation() 330 err = bme280_reg_read(dev, BME280_REG_ID, &data->chip_id, 1); in bme280_chip_init() 336 if (data->chip_id == BME280_CHIP_ID) { in bme280_chip_init() 338 } else if (data->chip_id == BMP280_CHIP_ID_MP || in bme280_chip_init() 339 data->chip_id == BMP280_CHIP_ID_SAMPLE_1) { in bme280_chip_init() 342 LOG_DBG("bad chip id 0x%x", data->chip_id); in bme280_chip_init() 362 if (data->chip_id == BME280_CHIP_ID) { in bme280_chip_init()
|
/Zephyr-latest/drivers/sensor/ams/tcs3400/ |
D | tcs3400.c | 204 uint8_t chip_id; in tcs3400_sensor_setup() local 218 ret = i2c_reg_read_byte_dt(&cfg->i2c, TCS3400_ID_REG, &chip_id); in tcs3400_sensor_setup() 224 if (!((chip_id == TCS3400_ID_1) || (chip_id == TCS3400_ID_2))) { in tcs3400_sensor_setup() 225 LOG_DBG("Invalid chip id: %02x", chip_id); in tcs3400_sensor_setup() 229 LOG_INF("chip id: 0x%x", chip_id); in tcs3400_sensor_setup()
|
/Zephyr-latest/drivers/sensor/st/stts751/ |
D | stts751.c | 146 stts751_id_t chip_id; in stts751_init_chip() local 148 if (stts751_device_id_get(data->ctx, &chip_id) < 0) { in stts751_init_chip() 153 if (chip_id.manufacturer_id != STTS751_ID_MAN) { in stts751_init_chip() 154 LOG_DBG("Invalid chip id 0x%x", chip_id.manufacturer_id); in stts751_init_chip()
|
/Zephyr-latest/drivers/input/ |
D | input_cst816s.c | 216 uint8_t chip_id = 0; in cst816s_chip_init() local 224 ret = i2c_reg_read_byte_dt(&cfg->i2c, CST816S_REG_CHIP_ID, &chip_id); in cst816s_chip_init() 230 if ((chip_id != CST816S_CHIP_ID1) && (chip_id != CST816S_CHIP_ID2) && in cst816s_chip_init() 231 (chip_id != CST816S_CHIP_ID3)) { in cst816s_chip_init() 232 LOG_ERR("CST816S wrong chip id: returned 0x%x", chip_id); in cst816s_chip_init()
|
D | input_cf1133.c | 96 uint8_t chip_id; member 115 data->chip_id = 2; in cf1133_get_chip_id() 117 data->chip_id = 0; in cf1133_get_chip_id() 120 data->chip_id = buffer[0]; in cf1133_get_chip_id() 124 LOG_DBG("Chip ID = %d, num_x = %d, num_y = %d", data->chip_id, num_x, num_y); in cf1133_get_chip_id() 137 if (data->chip_id <= 3) { in cf1133_get_protocol_type()
|
/Zephyr-latest/drivers/sensor/st/lis2dux12/ |
D | lis2dux12_api.c | 177 uint8_t chip_id; in st_lis2dux12_init() local 184 ret = lis2dux12_device_id_get(ctx, &chip_id); in st_lis2dux12_init() 190 if (chip_id != LIS2DUX12_ID) { in st_lis2dux12_init() 191 LOG_ERR("%s: Invalid chip ID 0x%02x", dev->name, chip_id); in st_lis2dux12_init() 203 LOG_INF("%s: chip id 0x%x", dev->name, chip_id); in st_lis2dux12_init()
|
D | lis2duxs12_api.c | 177 uint8_t chip_id; in st_lis2duxs12_init() local 184 ret = lis2duxs12_device_id_get(ctx, &chip_id); in st_lis2duxs12_init() 190 if (chip_id != LIS2DUXS12_ID) { in st_lis2duxs12_init() 191 LOG_ERR("%s: Invalid chip ID 0x%02x", dev->name, chip_id); in st_lis2duxs12_init() 203 LOG_INF("%s: chip id 0x%x", dev->name, chip_id); in st_lis2duxs12_init()
|
/Zephyr-latest/drivers/sensor/st/iis3dhhc/ |
D | iis3dhhc.c | 156 uint8_t chip_id, rst; in iis3dhhc_init_chip() local 158 if (iis3dhhc_device_id_get(data->ctx, &chip_id) < 0) { in iis3dhhc_init_chip() 163 if (chip_id != IIS3DHHC_ID) { in iis3dhhc_init_chip() 164 LOG_DBG("Invalid chip id 0x%x", chip_id); in iis3dhhc_init_chip()
|
/Zephyr-latest/drivers/sensor/st/lps22hh/ |
D | lps22hh.c | 186 uint8_t chip_id; in lps22hh_init_chip() local 203 if (lps22hh_device_id_get(ctx, &chip_id) < 0) { in lps22hh_init_chip() 208 if (chip_id != LPS22HH_ID) { in lps22hh_init_chip() 209 LOG_ERR("%s: Invalid chip ID 0x%02x", dev->name, chip_id); in lps22hh_init_chip() 213 LOG_DBG("%s: chip id 0x%x", dev->name, chip_id); in lps22hh_init_chip()
|
/Zephyr-latest/drivers/sensor/st/lsm9ds0_gyro/ |
D | lsm9ds0_gyro.c | 260 uint8_t chip_id; in lsm9ds0_gyro_init_chip() local 273 &chip_id) < 0) { in lsm9ds0_gyro_init_chip() 277 if (chip_id != LSM9DS0_GYRO_VAL_WHO_AM_I_G) { in lsm9ds0_gyro_init_chip() 278 LOG_DBG("invalid chip id 0x%x", chip_id); in lsm9ds0_gyro_init_chip() 281 LOG_DBG("chip id 0x%x", chip_id); in lsm9ds0_gyro_init_chip()
|
/Zephyr-latest/drivers/sensor/apds9253/ |
D | apds9253.c | 127 uint8_t chip_id; in apds9253_sensor_setup() local 129 if (i2c_reg_read_byte_dt(&config->i2c, APDS9253_PART_ID, &chip_id)) { in apds9253_sensor_setup() 134 if ((chip_id & APDS9253_PART_ID_ID_MASK) != APDS9253_DEVICE_PART_ID) { in apds9253_sensor_setup() 135 LOG_ERR("Invalid chip id 0x%x", chip_id); in apds9253_sensor_setup()
|
/Zephyr-latest/drivers/sensor/st/stts22h/ |
D | stts22h.c | 143 uint8_t chip_id, odr; in stts22h_init_chip() local 145 if (stts22h_dev_id_get(ctx, &chip_id) < 0) { in stts22h_init_chip() 150 LOG_INF("chip id 0x%02x", chip_id); in stts22h_init_chip()
|
/Zephyr-latest/drivers/sensor/bosch/bmp581/ |
D | bmp581.c | 217 if ((drv->chip_id == BMP5_CHIP_ID_PRIM) || (drv->chip_id == BMP5_CHIP_ID_SEC)) { in validate_chip_id() 220 drv->chip_id = 0; in validate_chip_id() 514 drv->chip_id = 0; in bmp581_init() 520 ret = i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_CHIP_ID, &drv->chip_id); in bmp581_init() 525 if (drv->chip_id != 0) { in bmp581_init() 531 drv->chip_id, BMP5_CHIP_ID_PRIM, BMP5_CHIP_ID_SEC); in bmp581_init() 536 LOG_ERR("Unexpected chip id (%x). Expected (%x or %x)", drv->chip_id, in bmp581_init()
|
/Zephyr-latest/drivers/sensor/st/lis2ds12/ |
D | lis2ds12.c | 274 uint8_t chip_id; in lis2ds12_init() local 278 ret = lis2ds12_device_id_get(ctx, &chip_id); in lis2ds12_init() 284 if (chip_id != LIS2DS12_ID) { in lis2ds12_init() 285 LOG_ERR("%s: Invalid chip ID 0x%02x", dev->name, chip_id); in lis2ds12_init() 297 LOG_DBG("%s: chip id 0x%x", dev->name, chip_id); in lis2ds12_init()
|
/Zephyr-latest/drivers/sensor/st/lis2de12/ |
D | lis2de12.c | 320 uint8_t chip_id; in lis2de12_init_chip() local 323 if (lis2de12_device_id_get(ctx, &chip_id) < 0) { in lis2de12_init_chip() 328 if (chip_id != LIS2DE12_ID) { in lis2de12_init_chip() 329 LOG_ERR("Invalid chip id 0x%x", chip_id); in lis2de12_init_chip() 333 LOG_INF("chip id 0x%x", chip_id); in lis2de12_init_chip()
|
/Zephyr-latest/drivers/sensor/st/lis2du12/ |
D | lis2du12.c | 321 lis2du12_id_t chip_id; in lis2du12_init_chip() local 324 if (lis2du12_id_get(ctx, &chip_id) < 0) { in lis2du12_init_chip() 329 LOG_INF("chip id 0x%x", chip_id.whoami); in lis2du12_init_chip() 331 if (chip_id.whoami != LIS2DU12_ID) { in lis2du12_init_chip() 332 LOG_ERR("Invalid chip id 0x%x", chip_id.whoami); in lis2du12_init_chip()
|
/Zephyr-latest/drivers/sensor/st/lsm6ds0/ |
D | lsm6ds0.c | 395 uint8_t chip_id; in lsm6ds0_init_chip() local 402 if (i2c_reg_read_byte_dt(&config->i2c, LSM6DS0_REG_WHO_AM_I, &chip_id) < 0) { in lsm6ds0_init_chip() 406 if (chip_id != LSM6DS0_VAL_WHO_AM_I) { in lsm6ds0_init_chip() 407 LOG_DBG("invalid chip id 0x%x", chip_id); in lsm6ds0_init_chip() 410 LOG_DBG("chip id 0x%x", chip_id); in lsm6ds0_init_chip()
|
/Zephyr-latest/drivers/sensor/st/lsm6dsl/ |
D | lsm6dsl_shub.c | 481 uint8_t chip_id = 0U; in lsm6dsl_shub_init_external_chip() local 499 &chip_id, 1) < 0) { in lsm6dsl_shub_init_external_chip() 503 if (chip_id == lsm6dsl_shub_sens_list[0].wai_val) { in lsm6dsl_shub_init_external_chip() 509 LOG_DBG("invalid chip id 0x%x", chip_id); in lsm6dsl_shub_init_external_chip() 512 LOG_DBG("Ext Device Chip Id: %02x", chip_id); in lsm6dsl_shub_init_external_chip()
|
/Zephyr-latest/drivers/sensor/apds9960/ |
D | apds9960.c | 277 uint8_t chip_id; in apds9960_sensor_setup() local 280 APDS9960_ID_REG, &chip_id)) { in apds9960_sensor_setup() 285 if (!((chip_id == APDS9960_ID_1) || (chip_id == APDS9960_ID_2))) { in apds9960_sensor_setup() 286 LOG_ERR("Invalid chip id 0x%x", chip_id); in apds9960_sensor_setup()
|
/Zephyr-latest/drivers/sensor/bosch/bmg160/ |
D | bmg160.c | 288 uint8_t chip_id = 0U; in bmg160_init() local 298 if (bmg160_read_byte(dev, BMG160_REG_CHIPID, &chip_id) < 0) { in bmg160_init() 303 if (chip_id != BMG160_CHIP_ID) { in bmg160_init() 304 LOG_DBG("Unsupported chip detected (0x%x)!", chip_id); in bmg160_init()
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_ite_it8801.c | 44 if (val != it8801_id_verify[i].chip_id) { in it8801_check_vendor_id() 47 i, it8801_id_verify[i].chip_id, val); in it8801_check_vendor_id()
|
/Zephyr-latest/drivers/sensor/ams/tmd2620/ |
D | tmd2620.c | 172 uint8_t chip_id; in tmd2620_sensor_setup() local 178 (void)i2c_reg_read_byte_dt(&config->i2c, TMD2620_ID_REG, &chip_id); in tmd2620_sensor_setup() 180 ret = i2c_reg_read_byte_dt(&config->i2c, TMD2620_ID_REG, &chip_id); in tmd2620_sensor_setup() 186 if (chip_id != TMD2620_CHIP_ID) { in tmd2620_sensor_setup()
|
/Zephyr-latest/drivers/sensor/st/lsm6dso/ |
D | lsm6dso_shub.c | 679 uint8_t chip_id; in lsm6dso_shub_init() local 695 chip_id = 0; in lsm6dso_shub_init() 707 &chip_id, 1) < 0) { in lsm6dso_shub_init() 711 if (chip_id == sp->wai_val) { in lsm6dso_shub_init() 717 LOG_DBG("shub: invalid chip id 0x%x", chip_id); in lsm6dso_shub_init() 720 LOG_INF("shub: Ext Device Chip Id: %02x", chip_id); in lsm6dso_shub_init()
|