Searched refs:chip_cfg (Results 1 – 2 of 2) sorted by relevance
108 uint8_t chip_cfg[6]; in lis3mdl_init() local140 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()
93 uint8_t chip_cfg[3], id[3], idx; in hmc5883l_init() local139 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()