Fix sampling rate of iio and reduce reporting frequency from devices

This commit is contained in:
Denis 2024-02-13 01:12:05 +01:00
parent 9da2278640
commit 98e64bb864
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
3 changed files with 49 additions and 9 deletions

View file

@ -52,6 +52,9 @@
#define LSB_PER_16G ((double)0.004785)
#define LSB_PER_16G_STR "0.004785"
#define PREFERRED_SAMPLING_FREQ ((double)800.000000)
#define PREFERRED_SAMPLING_FREQ_STR "800.000000"
// courtesy of linux kernel
#ifndef __packed
#define __packed __attribute__((packed))