Lines Matching +full:channel +full:- +full:use
1 /* SPDX-License-Identifier: GPL-2.0-only */
19 * struct iio_channel - everything needed for a consumer to use a channel
20 * @indio_dev: Device on which the channel exists.
21 * @channel: Full description of the channel.
22 * @data: Data about the channel used by consumer.
26 const struct iio_chan_spec *channel; member
31 * iio_channel_get() - get description of all that is needed to access channel.
36 * @consumer_channel: Unique name to identify the channel on the consumer
37 * side. This typically describes the channels use within
44 * iio_channel_release() - release channels obtained via iio_channel_get
45 * @chan: The channel to be released.
50 * devm_iio_channel_get() - Resource managed version of iio_channel_get().
55 * @consumer_channel: Unique name to identify the channel on the consumer
56 * side. This typically describes the channels use within
59 * Returns a pointer to negative errno if it is not able to get the iio channel
60 * otherwise returns valid pointer for iio channel.
62 * The allocated iio channel is automatically released when the device is
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
89 * Returns a pointer to negative errno if it is not able to get the iio channel
102 * of_iio_channel_get_by_name() - get description of all that is needed to access channel.
104 * @consumer_channel: Unique name to identify the channel on the consumer
105 * side. This typically describes the channels use within
119 * devm_of_iio_channel_get_by_name() - Resource managed version of of_iio_channel_get_by_name().
122 * @consumer_channel: Unique name to identify the channel on the consumer
123 * side. This typically describes the channels use within
126 * Returns a pointer to negative errno if it is not able to get the iio channel
127 * otherwise returns valid pointer for iio channel.
129 * The allocated iio channel is automatically released when the device is
138 * iio_channel_get_all_cb() - register callback for triggered capture
152 * iio_channel_cb_set_buffer_watermark() - set the buffer watermark.
153 * @cb_buffer: The callback buffer from whom we want the channel
163 * iio_channel_release_all_cb() - release and unregister the callback.
169 * iio_channel_start_all_cb() - start the flow of data through callback.
175 * iio_channel_stop_all_cb() - stop the flow of data through the callback.
181 * iio_channel_cb_get_channels() - get access to the underlying channels.
182 * @cb_buffer: The callback buffer from whom we want the channel
187 * primary aim is to allow drivers that are consuming a channel to query
188 * things like scaling of the channel.
194 * iio_channel_cb_get_iio_dev() - get access to the underlying device.
206 * iio_read_channel_raw() - read from a given channel
207 * @chan: The channel being queried.
217 * iio_read_channel_average_raw() - read from a given channel
218 * @chan: The channel being queried.
230 * iio_read_channel_processed() - read processed value from a given channel
231 * @chan: The channel being queried.
236 * This function will read a processed value from a channel. A processed value
245 * iio_read_channel_processed_scale() - read and scale a processed value
246 * @chan: The channel being queried.
252 * This function will read a processed value from a channel. This will work
260 * iio_write_channel_attribute() - Write values to the device attribute.
261 * @chan: The channel being queried.
263 * @val2: Value being written.val2 use depends on attribute type.
272 * iio_read_channel_attribute() - Read values from the device attribute.
273 * @chan: The channel being queried.
275 * @val2: Value being written.Val2 use depends on attribute type.
286 * iio_write_channel_raw() - write to a given channel
287 * @chan: The channel being queried.
296 * iio_read_max_channel_raw() - read maximum available raw value from a given
297 * channel, i.e. the maximum possible value.
298 * @chan: The channel being queried.
307 * iio_read_avail_channel_raw() - read available raw values from a given channel
308 * @chan: The channel being queried.
324 * iio_read_avail_channel_attribute() - read available channel attribute values
325 * @chan: The channel being queried.
338 * iio_get_channel_type() - get the type of a channel
339 * @channel: The channel being queried.
340 * @type: The type of the channel.
342 * returns the enum iio_chan_type of the channel
344 int iio_get_channel_type(struct iio_channel *channel,
348 * iio_read_channel_offset() - read the offset value for a channel
349 * @chan: The channel being queried.
361 * iio_read_channel_scale() - read the scale value for a channel
362 * @chan: The channel being queried.
374 * iio_convert_raw_to_processed() - Converts a raw value to a processed value
375 * @chan: The channel being queried
382 * This function converts a raw value to processed value for a specific channel.
390 * unit for the channel type. E.g. millivolt for voltage channels, if you want
397 * iio_get_channel_ext_info_count() - get number of ext_info attributes
398 * connected to the channel.
399 * @chan: The channel being queried
406 * iio_read_channel_ext_info() - read ext_info attribute from a given channel
407 * @chan: The channel being queried.
419 * iio_write_channel_ext_info() - write ext_info attribute from a given channel
420 * @chan: The channel being queried.
422 * @buf: The new attribute value. Strings needs to be zero-