nds2-client - ClientDeveloper  0.16.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
channel.h
Go to the documentation of this file.
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 {
74 
77 
80 
83 
86 
89 
92 
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:82
Definition: channel.h:91
Definition: channel.h:34
Definition: channel.h:73
DLL_EXPORT size_t data_type_word(daq_data_t dtype)
Definition: daqc_access.c:79
Definition: channel.h:52
Definition: channel.h:79
DLL_EXPORT double data_type_max(daq_data_t dtype)
Definition: daqc_access.c:107
Definition: channel.h:85
Definition: channel.h:94
#define DLL_EXPORT
Definition: channel.h:12
Definition: channel.h:76
Definition: channel.h:55
DLL_EXPORT const char * cvt_chantype_str(chantype_t code)
chantype
Channel type code enumerator.
Definition: channel.h:28
DLL_EXPORT daq_data_t data_type_code(const char *name)
Definition: daqc_access.c:154
daq_data_t
Definition: channel.h:71
Definition: channel.h:43
Definition: channel.h:31
Definition: channel.h:49
Definition: channel.h:37
Definition: channel.h:40
DLL_EXPORT const char * data_type_name(daq_data_t dtype)
Definition: daqc_access.c:130
Definition: channel.h:88
Definition: channel.h:46
DLL_EXPORT size_t data_type_size(daq_data_t dtype)
Definition: daqc_access.c:57
DLL_EXPORT chantype_t cvt_str_chantype(const char *str)
Definition: daqc_access.c:1623