Lines Matching +full:back +full:- +full:to +full:- +full:back
1 /* SPDX-License-Identifier: GPL-2.0-only */
18 * struct iio_channel - everything needed for a consumer to use a channel
30 * iio_channel_get() - get description of all that is needed to access channel.
31 * @dev: Pointer to consumer device. Device name must match
33 * with which the desired provider to consumer mapping
35 * @consumer_channel: Unique name to identify the channel on the consumer
43 * iio_channel_release() - release channels obtained via iio_channel_get
44 * @chan: The channel to be released.
49 * devm_iio_channel_get() - Resource managed version of iio_channel_get().
50 * @dev: Pointer to consumer device. Device name must match
52 * with which the desired provider to consumer mapping
54 * @consumer_channel: Unique name to identify the channel on the consumer
58 * Returns a pointer to negative errno if it is not able to get the iio channel
67 * iio_channel_get_all() - get all channels associated with a client
68 * @dev: Pointer to consumer device.
72 * This function is used by fairly generic consumers to get all the
78 * iio_channel_release_all() - reverse iio_channel_get_all
79 * @chan: Array of channels to be released.
84 * devm_iio_channel_get_all() - Resource managed version of
86 * @dev: Pointer to consumer device.
88 * Returns a pointer to negative errno if it is not able to get the iio channel
92 * This function is used by fairly generic consumers to get all the
102 * iio_channel_get_all_cb() - register callback for triggered capture
103 * @dev: Pointer to client device.
105 * @private: Private data passed to callback.
107 * NB right now we have no ability to mux data from multiple devices.
116 * iio_channel_cb_set_buffer_watermark() - set the buffer watermark.
121 * This function allows to configure the buffer watermark.
127 * iio_channel_release_all_cb() - release and unregister the callback.
133 * iio_channel_start_all_cb() - start the flow of data through callback.
139 * iio_channel_stop_all_cb() - stop the flow of data through the callback.
145 * iio_channel_cb_get_channels() - get access to the underlying channels.
149 * This function allows one to obtain information about the channels.
151 * primary aim is to allow drivers that are consuming a channel to query
158 * iio_channel_cb_get_iio_dev() - get access to the underlying device.
162 * This function allows one to obtain information about the device.
163 * The primary aim is to allow drivers that are consuming a device to query
170 * iio_read_channel_raw() - read from a given channel
172 * @val: Value read back.
175 * scale will need to be applied if standard units required.
181 * iio_read_channel_average_raw() - read from a given channel
183 * @val: Value read back.
186 * scale will need to be applied if standard units required.
188 * In opposit to the normal iio_read_channel_raw this function
194 * iio_read_channel_processed() - read processed value from a given channel
196 * @val: Value read back.
209 * iio_write_channel_attribute() - Write values to the device attribute.
213 * @attribute: info attribute to be read.
221 * iio_read_channel_attribute() - Read values from the device attribute.
225 * @attribute: info attribute to be written.
235 * iio_write_channel_raw() - write to a given channel
239 * Note raw writes to iio channels are in dac counts and hence
240 * scale will need to be applied if standard units required.
245 * iio_read_max_channel_raw() - read maximum available raw value from a given
248 * @val: Value read back.
251 * scale will need to be applied if standard units are required.
256 * iio_read_avail_channel_raw() - read available raw values from a given channel
258 * @vals: Available values read back.
267 * hence scale will need to be applied if standard units are required.
273 * iio_read_avail_channel_attribute() - read available channel attribute values
275 * @vals: Available values read back.
276 * @type: Type of values read back.
278 * @attribute: info attribute to be read back.
287 * iio_get_channel_type() - get the type of a channel
297 * iio_read_channel_offset() - read the offset value for a channel
299 * @val: First part of value read back.
300 * @val2: Second part of value read back.
310 * iio_read_channel_scale() - read the scale value for a channel
312 * @val: First part of value read back.
313 * @val2: Second part of value read back.
323 * iio_convert_raw_to_processed() - Converts a raw value to a processed value
325 * @raw: The raw IIO to convert
327 * @scale: Scale factor to apply during the conversion
331 * This function converts a raw value to processed value for a specific channel.
337 * The scale factor allows to increase the precession of the returned value. For
346 * iio_get_channel_ext_info_count() - get number of ext_info attributes
347 * connected to the channel.
355 * iio_read_channel_ext_info() - read ext_info attribute from a given channel
357 * @attr: The ext_info attribute to read.
358 * @buf: Where to store the attribute value. Assumed to hold
361 * Returns the number of bytes written to buf (perhaps w/o zero termination;
368 * iio_write_channel_ext_info() - write ext_info attribute from a given channel
370 * @attr: The ext_info attribute to read.
371 * @buf: The new attribute value. Strings needs to be zero-