Re: [PATCH 5/5] iio:adxl372: Add filter bandwidth support

From: Lars-Peter Clausen
Date: Sun Jul 15 2018 - 06:44:27 EST


On 07/15/2018 12:36 PM, Jonathan Cameron wrote:
> On Thu, 12 Jul 2018 18:36:58 +0300
> Stefan Popa <stefan.popa@xxxxxxxxxx> wrote:
>
>> This patch adds the option for the user to select the filter bandwidth. The
>> user can also read the available bandwidths which are always adjusted to be
>> at most half of the sampling frequency. Furthermore, the currently selected
>> bandwidth can be read via the read_raw function, while the write_raw sets a
>> new bandwidth value.
>>
>
> How will the youth of today learn about aliasing if we are so nice to them?
> :) Good user friendly design choice btw. If someone is doing something
> crazy where they actually want the aliasing they can hack the driver.

Actually they can't. The hardware itself enforces that the filter bandwidth
is below or equal to the Nyquist frequency. All the user can do is select a
bandwidth even smaller. :)