Searched refs:sigma_delta (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.4/drivers/iio/adc/ |
D | ad_sigma_delta.c | 39 void ad_sd_set_comm(struct ad_sigma_delta *sigma_delta, uint8_t comm) in ad_sd_set_comm() argument 43 sigma_delta->comm = comm & AD_SD_COMM_CHAN_MASK; in ad_sd_set_comm() 57 int ad_sd_write_reg(struct ad_sigma_delta *sigma_delta, unsigned int reg, in ad_sd_write_reg() argument 60 uint8_t *data = sigma_delta->data; in ad_sd_write_reg() 64 .cs_change = sigma_delta->keep_cs_asserted, in ad_sd_write_reg() 69 data[0] = (reg << sigma_delta->info->addr_shift) | sigma_delta->comm; in ad_sd_write_reg() 92 if (sigma_delta->bus_locked) in ad_sd_write_reg() 93 ret = spi_sync_locked(sigma_delta->spi, &m); in ad_sd_write_reg() 95 ret = spi_sync(sigma_delta->spi, &m); in ad_sd_write_reg() 101 static int ad_sd_read_reg_raw(struct ad_sigma_delta *sigma_delta, in ad_sd_read_reg_raw() argument [all …]
|
D | ad7780.c | 84 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-v5.4/include/linux/iio/adc/ |
D | ad_sigma_delta.h | 111 void ad_sd_set_comm(struct ad_sigma_delta *sigma_delta, uint8_t comm); 112 int ad_sd_write_reg(struct ad_sigma_delta *sigma_delta, unsigned int reg, 114 int ad_sd_read_reg(struct ad_sigma_delta *sigma_delta, unsigned int reg, 117 int ad_sd_reset(struct ad_sigma_delta *sigma_delta, 122 int ad_sd_calibrate_all(struct ad_sigma_delta *sigma_delta, 124 int ad_sd_init(struct ad_sigma_delta *sigma_delta, struct iio_dev *indio_dev,
|