Home
last modified time | relevance | path

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

/openbsd/sys/dev/i2c/
H A Dtsl2560.c139 u_int16_t chan0, chan1; in tsl_refresh() local
149 chan0 = data[1] << 8 | data[0]; in tsl_refresh()
160 sc->sc_sensor.value = tsl_lux(chan0, chan1); in tsl_refresh()
203 tsl_lux(u_int32_t chan0, u_int32_t chan1) in tsl_lux() argument
210 if (chan0 != 0) in tsl_lux()
211 ratio1 = (chan1 << (TSL2560_RATIO_SCALE + 1)) / chan0; in tsl_lux()
230 lux = b * chan0 - m * chan1; in tsl_lux()