nds2-client - Developer 0.16.7
Loading...
Searching...
No Matches
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
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
96
99#define MIN_DATA_TYPE _16bit_integer
100
103#define MAX_DATA_TYPE _32bit_uint
104
107DLL_EXPORT chantype_t cvt_str_chantype( const char* str );
108
112
115DLL_EXPORT size_t data_type_size( daq_data_t dtype );
116
119DLL_EXPORT double data_type_max( daq_data_t dtype );
120
123DLL_EXPORT const char* data_type_name( daq_data_t dtype );
124
127DLL_EXPORT daq_data_t data_type_code( const char* name );
128
133DLL_EXPORT size_t data_type_word( daq_data_t dtype );
134
138#endif
DLL_EXPORT chantype_t cvt_str_chantype(const char *str)
Definition daqc_access.c:1623
DLL_EXPORT size_t data_type_word(daq_data_t dtype)
Definition daqc_access.c:79
#define DLL_EXPORT
Definition channel.h:12
DLL_EXPORT daq_data_t data_type_code(const char *name)
Definition daqc_access.c:154
DLL_EXPORT const char * cvt_chantype_str(chantype_t code)
DLL_EXPORT double data_type_max(daq_data_t dtype)
Definition daqc_access.c:107
DLL_EXPORT const char * data_type_name(daq_data_t dtype)
Definition daqc_access.c:130
daq_data_t
Definition channel.h:71
@ _32bit_uint
Definition channel.h:94
@ _16bit_integer
Definition channel.h:76
@ _32bit_integer
Definition channel.h:79
@ _undefined
Definition channel.h:73
@ _32bit_float
Definition channel.h:85
@ _64bit_double
Definition channel.h:88
@ _32bit_complex
Definition channel.h:91
@ _64bit_integer
Definition channel.h:82
DLL_EXPORT size_t data_type_size(daq_data_t dtype)
Definition daqc_access.c:57
chantype
Channel type code enumerator.
Definition channel.h:28
enum chantype chantype_t
Channel type code enumerator.
@ cMTrend
Definition channel.h:46
@ cTestPoint
Definition channel.h:49
@ cStatic
Definition channel.h:52
@ cSTrend
Definition channel.h:43
@ cRDS
Definition channel.h:40
@ cOnline
Definition channel.h:34
@ cUnknown
Definition channel.h:31
@ cRaw
Definition channel.h:37
@ cSimData
Definition channel.h:55