diff options
Diffstat (limited to 'libarmep/libarmep.h')
-rw-r--r-- | libarmep/libarmep.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libarmep/libarmep.h b/libarmep/libarmep.h index 5bb868c..06b7a33 100644 --- a/libarmep/libarmep.h +++ b/libarmep/libarmep.h @@ -41,7 +41,7 @@ #define AEP_INPUT_QUEUE 163840 #define MAX_RESULT_QUEUE_DEPTH (512 * 8) -#define MAX_BYTES_PER_AEP_SERVICE 64 +#define MAX_BYTES_PER_AEP_SERVICE 512 #define TRIG_HYSTERESIS_MV 200 #define TRIG_HYSTERESIS_MW 200 @@ -142,6 +142,7 @@ struct interp_tables { struct interp *map; int len; double percentage_error_ref; + unsigned short precomputed_common_10mV[600]; }; @@ -283,7 +284,7 @@ extern void avg_mean_us_free(struct avg_mean_us *amu); extern void avg_mean_us_flush(struct avg_mean_us *amu); extern struct interp_tables interp_tables[3]; -extern double correct(int no_correction, double common_mode, double in, struct interp *map, int map_len); +extern double correct(int no_correction, double common_mode, double in, struct interp_tables *itable); extern int get_stdin_line(char *buf, int maxlen); extern int process_sample(struct aep *aep, int ch_index); @@ -293,3 +294,4 @@ extern int configure(struct aep_context *aep_context, struct aep *aep, const cha extern char configuration_name[64]; extern int service_aeps(struct aep_context *aep_context, int fd); extern void probe_close(struct aep *aep); +extern void init_interpolation(void); |