Lines Matching +full:delta +full:- +full:sigma
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Support code for Analog Devices Sigma-Delta ADCs
6 * Author: Lars-Peter Clausen <[email protected]>
21 * struct ad_sigma_delta_calib_data - Calibration data for Sigma Delta devices
36 * struct ad_sigma_delta_info - Sigma Delta driver specific callbacks and options
48 * if there is just one read-only sample data shift register.
56 * @irq_line: IRQ for reading conversions. If 0, spi->irq will be used
78 * struct ad_sigma_delta - Sigma Delta device struct
79 * @spi: The spi device associated with the Sigma Delta device.
80 * @trig: The IIO trigger associated with the Sigma Delta device.
82 * Most of the fields are private to the sigma delta library code and should not
124 if (sd->info->set_channel) in ad_sigma_delta_set_channel()
125 return sd->info->set_channel(sd, channel); in ad_sigma_delta_set_channel()
134 if (sd->info->append_status) { in ad_sigma_delta_append_status()
135 ret = sd->info->append_status(sd, append); in ad_sigma_delta_append_status()
139 sd->status_appended = append; in ad_sigma_delta_append_status()
147 if (sd->info->disable_all) in ad_sigma_delta_disable_all()
148 return sd->info->disable_all(sd); in ad_sigma_delta_disable_all()
156 if (sd->info->disable_one) in ad_sigma_delta_disable_one()
157 return sd->info->disable_one(sd, chan); in ad_sigma_delta_disable_one()
165 if (sd->info->set_mode) in ad_sigma_delta_set_mode()
166 return sd->info->set_mode(sd, mode); in ad_sigma_delta_set_mode()
174 if (sd->info->postprocess_sample) in ad_sigma_delta_postprocess_sample()
175 return sd->info->postprocess_sample(sd, raw_sample); in ad_sigma_delta_postprocess_sample()