Lines Matching full:gain
2 /* gain-time-scale conversion helpers for IIO light sensors
15 * struct iio_gain_sel_pair - gain - selector values
18 * (gain) using a register interface. This structure describes amplification
21 * @gain: Gain (multiplication) value. Gain must be positive, negative
23 * @sel: Selector (usually register value) used to indicate this gain.
27 int gain; member
36 * of measured values (gain). This structure describes the relation of
74 .gain = (_gain), \
118 * @gts: Gain time scale descriptor
137 * @gts: Gain time scale descriptor
156 * @gts: Gain time scale descriptor
166 int iio_gts_find_sel_by_gain(struct iio_gts *gts, int gain);
169 * iio_gts_valid_gain - check if given HW-gain is valid
170 * @gts: Gain time scale descriptor
171 * @gain: HW-gain to check
175 static inline bool iio_gts_valid_gain(struct iio_gts *gts, int gain) in iio_gts_valid_gain() argument
177 return iio_gts_find_sel_by_gain(gts, gain) >= 0; in iio_gts_valid_gain()
180 int iio_find_closest_gain_low(struct iio_gts *gts, int gain, bool *in_range);
191 int iio_gts_get_scale(struct iio_gts *gts, int gain, int time, int *scale_int,