Home | History | Annotate | Download | only in i2c

Lines Matching refs:gain

268 	/* Auto-gain is a software feature; no need for I2C. */
426 SYSCTL_DESCR("auto-gain algorithm enabled"),
433 CTLFLAG_PERMANENT|CTLFLAG_READWRITE, CTLTYPE_INT, "gain",
434 SYSCTL_DESCR("sensor gain"), tsllux_sysctl_gain, 0,
579 tsllux_set_gain0(struct tsllux_softc *sc, uint8_t gain)
584 sc->sc_itime | gain)) != 0)
587 sc->sc_gain = gain;
592 tsllux_set_gain(struct tsllux_softc *sc, uint8_t gain)
596 switch (gain) {
608 if ((error = tsllux_set_gain0(sc, gain)) != 0)
710 * v2.0 - Rewrote driver for Adafruit_Sensor and Auto-Gain support, and
734 * Auto-gain thresholds:
775 /* Read data and adjust the gain until we have a valid range. */
782 /* Increase the gain and try again. */
790 /* Decrease the gain and try again. */
805 * If we've already adjust the gain once, just
807 * loops where a value is at one extre pre-gain
808 * and at the other extreme post-gain.
991 /* Scale for gain. */