Lines Matching +full:full +full:- +full:scale

1 /* SPDX-License-Identifier: GPL-2.0-only */
19 * struct iio_channel - everything needed for a consumer to use a channel
21 * @channel: Full description of the channel.
31 * iio_channel_get() - get description of all that is needed to access channel.
44 * iio_channel_release() - release channels obtained via iio_channel_get
50 * devm_iio_channel_get() - Resource managed version of iio_channel_get().
68 * iio_channel_get_all() - get all channels associated with a client
79 * iio_channel_release_all() - reverse iio_channel_get_all
85 * devm_iio_channel_get_all() - Resource managed version of
102 * fwnode_iio_channel_get_by_name() - get description of all that is needed to access channel.
112 * devm_fwnode_iio_channel_get_by_name() - Resource managed version of
132 * iio_channel_get_all_cb() - register callback for triggered capture
146 * iio_channel_cb_set_buffer_watermark() - set the buffer watermark.
157 * iio_channel_release_all_cb() - release and unregister the callback.
163 * iio_channel_start_all_cb() - start the flow of data through callback.
169 * iio_channel_stop_all_cb() - stop the flow of data through the callback.
175 * iio_channel_cb_get_channels() - get access to the underlying channels.
188 * iio_channel_cb_get_iio_dev() - get access to the underlying device.
200 * iio_read_channel_raw() - read from a given channel
205 * need the offset (default 0) and scale (default 1) to be applied
206 * as (raw + offset) * scale.
212 * iio_read_channel_average_raw() - read from a given channel
217 * need the offset (default 0) and scale (default 1) to be applied
218 * as (raw + offset) * scale.
226 * iio_read_channel_processed() - read processed value from a given channel
235 * the function will query the raw value and the channels scale and offset and
241 * iio_read_channel_processed_scale() - read and scale a processed value
244 * @scale: Scale factor to apply during the conversion
249 * like @iio_read_channel_processed() but also scale with an additional
250 * scale factor while attempting to minimize any precision loss.
253 unsigned int scale);
256 * iio_write_channel_attribute() - Write values to the device attribute.
268 * iio_read_channel_attribute() - Read values from the device attribute.
282 * iio_write_channel_raw() - write to a given channel
287 * in standard units, the affect of the scale and offset must be removed
288 * as (value / scale) - offset.
293 * iio_read_max_channel_raw() - read maximum available raw value from a given
299 * need the offset (default 0) and scale (default 1) to be applied
300 * as (raw + offset) * scale.
305 * iio_read_min_channel_raw() - read minimum available raw value from a given
311 * need the offset (default 0) and scale (default 1) to be applied
312 * as (raw + offset) * scale.
317 * iio_read_avail_channel_raw() - read available raw values from a given channel
328 * channels need the offset (default 0) and scale (default 1) to be applied
329 * as (raw + offset) * scale.
335 * iio_read_avail_channel_attribute() - read available channel attribute values
349 * iio_get_channel_type() - get the type of a channel
359 * iio_read_channel_offset() - read the offset value for a channel
372 * iio_read_channel_scale() - read the scale value for a channel
385 * iio_convert_raw_to_processed() - Converts a raw value to a processed value
389 * @scale: Scale factor to apply during the conversion
399 * The scale factor allows to increase the precession of the returned value. For
400 * a scale factor of 1 the function will return the result in the normal IIO
402 * nanovolts instead pass 1000000 as the scale factor.
405 int *processed, unsigned int scale);
408 * iio_get_channel_ext_info_count() - get number of ext_info attributes
417 * iio_read_channel_ext_info() - read ext_info attribute from a given channel
430 * iio_write_channel_ext_info() - write ext_info attribute from a given channel
433 * @buf: The new attribute value. Strings needs to be zero-