Home
last modified time | relevance | path

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

/drivers/iio/adc/
Dad_sigma_delta.c39 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->tx_buf; 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()
90 if (sigma_delta->bus_locked) in ad_sd_write_reg()
91 ret = spi_sync_locked(sigma_delta->spi, &m); in ad_sd_write_reg()
93 ret = spi_sync(sigma_delta->spi, &m); in ad_sd_write_reg()
99 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()