mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-11 15:49:56 +00:00
staging: iio: add channel info for sampling frequency
Adding channel info IIO_CHAN_INFO_SAMP_FREQ to select different sampling frequency per channel wise. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5b6bd35cc9
commit
ce85a1cbcc
@ -36,6 +36,7 @@ enum iio_chan_info_enum {
|
|||||||
IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW,
|
IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW,
|
||||||
IIO_CHAN_INFO_AVERAGE_RAW,
|
IIO_CHAN_INFO_AVERAGE_RAW,
|
||||||
IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY,
|
IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY,
|
||||||
|
IIO_CHAN_INFO_SAMP_FREQ,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define IIO_CHAN_INFO_SHARED_BIT(type) BIT(type*2)
|
#define IIO_CHAN_INFO_SHARED_BIT(type) BIT(type*2)
|
||||||
@ -81,6 +82,10 @@ enum iio_chan_info_enum {
|
|||||||
#define IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY_SEPARATE_BIT \
|
#define IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY_SEPARATE_BIT \
|
||||||
IIO_CHAN_INFO_SEPARATE_BIT( \
|
IIO_CHAN_INFO_SEPARATE_BIT( \
|
||||||
IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY)
|
IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY)
|
||||||
|
#define IIO_CHAN_INFO_SAMP_FREQ_SEPARATE_BIT \
|
||||||
|
IIO_CHAN_INFO_SEPARATE_BIT(IIO_CHAN_INFO_SAMP_FREQ)
|
||||||
|
#define IIO_CHAN_INFO_SAMP_FREQ_SHARED_BIT \
|
||||||
|
IIO_CHAN_INFO_SHARED_BIT(IIO_CHAN_INFO_SAMP_FREQ)
|
||||||
|
|
||||||
enum iio_endian {
|
enum iio_endian {
|
||||||
IIO_CPU,
|
IIO_CPU,
|
||||||
|
@ -90,6 +90,7 @@ static const char * const iio_chan_info_postfix[] = {
|
|||||||
[IIO_CHAN_INFO_AVERAGE_RAW] = "mean_raw",
|
[IIO_CHAN_INFO_AVERAGE_RAW] = "mean_raw",
|
||||||
[IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY]
|
[IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY]
|
||||||
= "filter_low_pass_3db_frequency",
|
= "filter_low_pass_3db_frequency",
|
||||||
|
[IIO_CHAN_INFO_SAMP_FREQ] = "sampling_frequency",
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct iio_chan_spec
|
const struct iio_chan_spec
|
||||||
|
Loading…
x
Reference in New Issue
Block a user