Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/sensor/st/lis3mdl/
Dlis3mdl.c108 uint8_t chip_cfg[6]; in lis3mdl_init() local
140 chip_cfg[0] = LIS3MDL_REG_CTRL1; in lis3mdl_init()
141 chip_cfg[1] = LIS3MDL_TEMP_EN_MASK | lis3mdl_odr_bits[idx]; in lis3mdl_init()
142 chip_cfg[2] = LIS3MDL_FS_IDX << LIS3MDL_FS_SHIFT; in lis3mdl_init()
143 chip_cfg[3] = LIS3MDL_MD_CONTINUOUS; in lis3mdl_init()
144 chip_cfg[4] = ((lis3mdl_odr_bits[idx] & LIS3MDL_OM_MASK) >> in lis3mdl_init()
146 chip_cfg[5] = LIS3MDL_BDU_EN; in lis3mdl_init()
148 if (i2c_write_dt(&config->i2c, chip_cfg, 6) < 0) { in lis3mdl_init()
/Zephyr-latest/drivers/sensor/honeywell/hmc5883l/
Dhmc5883l.c93 uint8_t chip_cfg[3], id[3], idx; in hmc5883l_init() local
139 chip_cfg[0] = idx << HMC5883L_ODR_SHIFT; in hmc5883l_init()
140 chip_cfg[1] = drv_data->gain_idx << HMC5883L_GAIN_SHIFT; in hmc5883l_init()
141 chip_cfg[2] = HMC5883L_MODE_CONTINUOUS; in hmc5883l_init()
144 chip_cfg, 3) < 0) { in hmc5883l_init()