162306a36Sopenharmony_ciWhat: /sys/bus/iio/devices/iio:deviceX/in_voltage-voltage_filter_mode_available 262306a36Sopenharmony_ciKernelVersion: 6.2 362306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 462306a36Sopenharmony_ciDescription: 562306a36Sopenharmony_ci Reading returns a list with the possible filter modes. 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci * "sinc4" - Sinc 4. Excellent noise performance. Long 862306a36Sopenharmony_ci 1st conversion time. No natural 50/60Hz rejection. 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci * "sinc4+sinc1" - Sinc4 + averaging by 8. Low 1st conversion 1162306a36Sopenharmony_ci time. 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci * "sinc3" - Sinc3. Moderate 1st conversion time. 1462306a36Sopenharmony_ci Good noise performance. 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci * "sinc3+rej60" - Sinc3 + 60Hz rejection. At a sampling 1762306a36Sopenharmony_ci frequency of 50Hz, achieves simultaneous 50Hz and 60Hz 1862306a36Sopenharmony_ci rejection. 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ci * "sinc3+sinc1" - Sinc3 + averaging by 8. Low 1st conversion 2162306a36Sopenharmony_ci time. Best used with a sampling frequency of at least 2262306a36Sopenharmony_ci 216.19Hz. 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci * "sinc3+pf1" - Sinc3 + Post Filter 1. 53dB rejection @ 2562306a36Sopenharmony_ci 50Hz, 58dB rejection @ 60Hz. 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci * "sinc3+pf2" - Sinc3 + Post Filter 2. 70dB rejection @ 2862306a36Sopenharmony_ci 50Hz, 70dB rejection @ 60Hz. 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci * "sinc3+pf3" - Sinc3 + Post Filter 3. 99dB rejection @ 3162306a36Sopenharmony_ci 50Hz, 103dB rejection @ 60Hz. 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci * "sinc3+pf4" - Sinc3 + Post Filter 4. 103dB rejection @ 3462306a36Sopenharmony_ci 50Hz, 109dB rejection @ 60Hz. 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ciWhat: /sys/bus/iio/devices/iio:deviceX/in_voltageY-voltageZ_filter_mode 3762306a36Sopenharmony_ciKernelVersion: 6.2 3862306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 3962306a36Sopenharmony_ciDescription: 4062306a36Sopenharmony_ci Set the filter mode of the differential channel. When the filter 4162306a36Sopenharmony_ci mode changes, the in_voltageY-voltageZ_sampling_frequency and 4262306a36Sopenharmony_ci in_voltageY-voltageZ_sampling_frequency_available attributes 4362306a36Sopenharmony_ci might also change to accommodate the new filter mode. 4462306a36Sopenharmony_ci If the current sampling frequency is out of range for the new 4562306a36Sopenharmony_ci filter mode, the sampling frequency will be changed to the 4662306a36Sopenharmony_ci closest valid one. 47