32 #ifndef NIDAS_SHORT_FILTERS_KERNEL_H
33 #define NIDAS_SHORT_FILTERS_KERNEL_H
43 typedef struct short_sample
68 struct short_filter_data {
73 const char* deviceName;
111 typedef void* (*shortfilt_init_method)(void);
120 typedef int (*shortfilt_config_method)(
struct short_filter_data* fdata,
121 const void* cfg,
int nbcfg);
132 typedef int (*shortfilt_filter_method)(
void* obj,
138 typedef void (*shortfilt_cleanup_method)(
void* obj);
149 struct pickoff_filter_config
156 struct boxcar_filter_config
167 struct timeavg_filter_config
175 struct short_filter_methods {
176 shortfilt_init_method init;
177 shortfilt_config_method config;
178 shortfilt_filter_method filter;
179 shortfilt_cleanup_method cleanup;
183 struct short_filter_info {
184 shortfilt_init_method finit;
185 shortfilt_config_method fconfig;
186 shortfilt_filter_method filter;
187 shortfilt_cleanup_method fcleanup;
188 struct short_filter_data data;
int dsm_sample_time_t
Depending on the module, either tenths of milliseconds, or milliseconds since 00:00 UTC today...
Definition: types.h:48
nidas_short_filter
Enumeration of supported filter types.
Definition: short_filters.h:39
static float rate
Definition: sing.cc:53
unsigned int dsm_sample_length_t
length of data portion of sample.
Definition: types.h:51
struct short_filter_methods get_short_filter_methods(enum nidas_short_filter which)
Return structure of pointers to the methods for a given filter.
Definition: short_filters.c:415