Searched refs:mtreg (Results 1 – 1 of 1) sorted by relevance
43 uint8_t mtreg; member72 static int bh1750_mtreg_write(const struct device *dev, uint8_t mtreg) in bh1750_mtreg_write() argument75 uint8_t high_byte = mtreg & BH1750_MTREG_HIGH_BYTE_MASK; in bh1750_mtreg_write()76 uint8_t low_byte = mtreg & BH1750_MTREG_LOW_BYTE_MASK; in bh1750_mtreg_write()145 wait_time = (max_wait * (cfg->mtreg * 10000 / BH1750_DEFAULT_MTREG)) / 10000; in bh1750_sample_fetch()178 tmp = (drv_data->sample * 1000 / 12) * (BH1750_DEFAULT_MTREG * 100 / cfg->mtreg); in bh1750_channel_get()204 if (cfg->mtreg != BH1750_DEFAULT_MTREG) { in bh1750_init()205 bh1750_mtreg_write(dev, cfg->mtreg); in bh1750_init()215 .mtreg = DT_INST_PROP(_num, mtreg), \