nds2-client - ClientAdministrator  0.16.8
 All Functions Typedefs Enumerations Enumerator Groups Pages
channel.h
1 /* -*- mode: c; c-basic-offset: 4; -*- */
2 #ifndef CHANNEL_H
3 #define CHANNEL_H
4 
5 #include <stddef.h>
6 #include <sys/types.h>
7 
8 #ifndef DLL_EXPORT
9 #if WIN32 || WIN64
10 #define DLL_EXPORT __declspec( dllexport )
11 #else
12 #define DLL_EXPORT
13 #endif /* WIN32 || WIN64 */
14 #endif /* DLL_EXPORT */
15 
28 typedef enum chantype {
29 
32 
35 
38 
41 
44 
47 
50 
53 
56 
57 } chantype_t;
58 
60 #define MAX_LONG_CHANNEL_NAME_LENGTH 255
61 
63 #define MAX_CHANNEL_NAME_LENGTH 64
64 
66 #define MAX_SIGNAL_UNIT_LENGTH 40
67 
71 typedef enum {
73  _undefined = 0,
74 
76  _16bit_integer = 1,
77 
79  _32bit_integer = 2,
80 
82  _64bit_integer = 3,
83 
85  _32bit_float = 4,
86 
88  _64bit_double = 5,
89 
91  _32bit_complex = 6,
92 
94  _32bit_uint = 7
95 } daq_data_t;
96 
99 #define MIN_DATA_TYPE _16bit_integer
100 
103 #define MAX_DATA_TYPE _32bit_uint
104 
107 DLL_EXPORT chantype_t cvt_str_chantype( const char* str );
108 
111 DLL_EXPORT const char* cvt_chantype_str( chantype_t code );
112 
115 DLL_EXPORT size_t data_type_size( daq_data_t dtype );
116 
119 DLL_EXPORT double data_type_max( daq_data_t dtype );
120 
123 DLL_EXPORT const char* data_type_name( daq_data_t dtype );
124 
127 DLL_EXPORT daq_data_t data_type_code( const char* name );
128 
133 DLL_EXPORT size_t data_type_word( daq_data_t dtype );
134 
138 #endif
enum chantype chantype_t
Channel type code enumerator.
Definition: channel.h:34
Definition: channel.h:52
Definition: channel.h:55
chantype
Channel type code enumerator.
Definition: channel.h:28
Definition: channel.h:43
Definition: channel.h:31
Definition: channel.h:49
Definition: channel.h:37
Definition: channel.h:40
Definition: channel.h:46