Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/iio/adc/
Dad_sigma_delta.c40 void ad_sd_set_comm(struct ad_sigma_delta *sigma_delta, uint8_t comm) in ad_sd_set_comm() argument
44 sigma_delta->comm = comm & AD_SD_COMM_CHAN_MASK; in ad_sd_set_comm()
58 int ad_sd_write_reg(struct ad_sigma_delta *sigma_delta, unsigned int reg, in ad_sd_write_reg() argument
61 uint8_t *data = sigma_delta->tx_buf; in ad_sd_write_reg()
65 .cs_change = sigma_delta->keep_cs_asserted, in ad_sd_write_reg()
70 data[0] = (reg << sigma_delta->info->addr_shift) | sigma_delta->comm; in ad_sd_write_reg()
91 if (sigma_delta->bus_locked) in ad_sd_write_reg()
92 ret = spi_sync_locked(sigma_delta->spi, &m); in ad_sd_write_reg()
94 ret = spi_sync(sigma_delta->spi, &m); in ad_sd_write_reg()
100 static int ad_sd_read_reg_raw(struct ad_sigma_delta *sigma_delta, in ad_sd_read_reg_raw() argument
[all …]
Dad7780.c84 static int ad7780_set_mode(struct ad_sigma_delta *sigma_delta, in ad7780_set_mode() argument
87 struct ad7780_state *st = ad_sigma_delta_to_ad7780(sigma_delta); in ad7780_set_mode()
184 static int ad7780_postprocess_sample(struct ad_sigma_delta *sigma_delta, in ad7780_postprocess_sample() argument
187 struct ad7780_state *st = ad_sigma_delta_to_ad7780(sigma_delta); in ad7780_postprocess_sample()
/linux-5.19.10/include/linux/iio/adc/
Dad_sigma_delta.h156 void ad_sd_set_comm(struct ad_sigma_delta *sigma_delta, uint8_t comm);
157 int ad_sd_write_reg(struct ad_sigma_delta *sigma_delta, unsigned int reg,
159 int ad_sd_read_reg(struct ad_sigma_delta *sigma_delta, unsigned int reg,
162 int ad_sd_reset(struct ad_sigma_delta *sigma_delta,
167 int ad_sd_calibrate(struct ad_sigma_delta *sigma_delta,
169 int ad_sd_calibrate_all(struct ad_sigma_delta *sigma_delta,
171 int ad_sd_init(struct ad_sigma_delta *sigma_delta, struct iio_dev *indio_dev,