nds2-client - ClientAdministrator  0.16.8
 All Functions Typedefs Enumerations Enumerator Groups Pages
trench.h
1 /* -*- tab-width:8 c-basic-offset:4 indent-tabs-mode:nil -*- */
2 /* set vi: ts=8:softtabstop=4,shiftwidth=4,expandtab */
3 
4 #ifndef TRENCH_H
5 #define TRENCH_H
6 #include "channel.h"
7 #include "sys/types.h"
8 
9 #ifndef DLL_EXPORT
10 #if WIN32 || WIN64
11 #define DLL_EXPORT __declspec( dllexport )
12 #else
13 #define DLL_EXPORT
14 #endif /* WIN32 || WIN64 */
15 #endif /* DLL_EXPORT */
16 
19 enum trench_type
20 {
21  trch_base,
22  trch_mean,
23  trch_rms,
24  trch_min,
25  trch_max,
26  trch_n
27 };
28 
58 struct trench_struct
59 {
61  char* str;
62 
64  size_t len;
65 
67  enum trench_type styp;
68 
70  chantype_t ctype;
71 
76  double rate;
77 
82  daq_data_t dtype;
83 };
84 
96 DLL_EXPORT int trench_cmp_base( struct trench_struct* t, const char* s );
97 
102 DLL_EXPORT void trench_destroy( struct trench_struct* t );
103 
110 DLL_EXPORT daq_data_t trench_dtype( struct trench_struct* t,
111  daq_data_t rawtype );
112 
120 DLL_EXPORT void trench_infer_chan_info( struct trench_struct* t,
121  enum chantype ctype,
122  double rate,
123  daq_data_t rawtype );
124 
130 DLL_EXPORT void trench_init( struct trench_struct* t );
131 
137 DLL_EXPORT void trench_parse( struct trench_struct* tch, const char* str );
138 
139 #endif /* defined(TRENCH_H) */
enum chantype chantype_t
Channel type code enumerator.
chantype
Channel type code enumerator.
Definition: channel.h:28