• Home
  • Raw
  • Download

Lines Matching +full:iio +full:- +full:consumer

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Industrial I/O in kernel consumer interface
11 #include <linux/iio/types.h>
18 * struct iio_channel - everything needed for a consumer to use a channel
21 * @data: Data about the channel used by consumer.
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
37 * the consumer. E.g. 'battery_voltage'
43 * iio_channel_release() - release channels obtained via iio_channel_get
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
56 * the consumer. E.g. 'battery_voltage'
58 * Returns a pointer to negative errno if it is not able to get the iio channel
59 * otherwise returns valid pointer for iio channel.
61 * The allocated iio channel is automatically released when the device is
67 * iio_channel_get_all() - get all channels associated with a client
68 * @dev: Pointer to consumer device.
73 * channels registered as having this consumer.
78 * iio_channel_release_all() - reverse iio_channel_get_all
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
93 * channels registered as having this consumer.
95 * The allocated iio channels are automatically released when the device is
102 * iio_channel_get_all_cb() - register callback for triggered capture
116 * iio_channel_cb_set_buffer_watermark() - set 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.
158 * iio_channel_cb_get_iio_dev() - get access to the underlying device.
170 * iio_read_channel_raw() - read from a given channel
174 * Note raw reads from iio channels are in adc counts and hence
181 * iio_read_channel_average_raw() - read from a given channel
185 * Note raw reads from iio channels are in adc counts and hence
194 * iio_read_channel_processed() - read processed value from a given channel
209 * iio_write_channel_attribute() - Write values to the device attribute.
221 * iio_read_channel_attribute() - Read values from the device attribute.
235 * iio_write_channel_raw() - write to a given channel
239 * Note raw writes to iio channels are in dac counts and hence
245 * iio_read_max_channel_raw() - read maximum available raw value from a given
250 * Note raw reads from iio channels are in adc counts and hence
256 * iio_read_avail_channel_raw() - read available raw values from a given channel
266 * Note raw available values from iio channels are in adc counts and
273 * iio_read_avail_channel_attribute() - read available channel attribute values
287 * iio_get_channel_type() - get the type of a channel
297 * iio_read_channel_offset() - read the offset value for a channel
310 * iio_read_channel_scale() - read the scale value for a channel
323 * iio_convert_raw_to_processed() - Converts a raw value to a processed value
325 * @raw: The raw IIO to convert
335 * according with the IIO specification.
338 * a scale factor of 1 the function will return the result in the normal IIO
346 * iio_get_channel_ext_info_count() - get number of ext_info attributes
355 * iio_read_channel_ext_info() - read ext_info attribute from a given channel
368 * iio_write_channel_ext_info() - write ext_info attribute from a given channel
371 * @buf: The new attribute value. Strings needs to be zero-