Lines Matching refs:datarate
90 int datarate; member
183 static int ads1119_get_hw_datarate(int datarate) in ads1119_get_hw_datarate() argument
185 switch (datarate) { in ads1119_get_hw_datarate()
199 int gain, int datarate) in ads1119_configure_channel() argument
216 ads1119_get_hw_datarate(datarate))); in ads1119_configure_channel()
222 unsigned int datarate = st->channels_cfg[chan->address].datarate; in ads1119_poll_data_ready() local
227 wait_time = DIV_ROUND_CLOSEST(MICRO, 5 * datarate); in ads1119_poll_data_ready()
268 int datarate = st->channels_cfg[chan->address].datarate; in ads1119_single_conversion() local
279 ret = ads1119_configure_channel(st, mux, gain, datarate); in ads1119_single_conversion()
299 static int ads1119_validate_datarate(struct ads1119_state *st, int datarate) in ads1119_validate_datarate() argument
301 switch (datarate) { in ads1119_validate_datarate()
306 return datarate; in ads1119_validate_datarate()
358 *val = st->channels_cfg[index].datarate; in ads1119_read_raw()
389 st->channels_cfg[index].datarate = ret; in ads1119_write_raw()
447 st->channels_cfg[index].datarate); in ads1119_triggered_buffer_preenable()
646 st->channels_cfg[i].datarate = ADS1119_DEFAULT_DATARATE; in ads1119_alloc_and_config_channels()