1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- using System;
- using System.Runtime.InteropServices;
- using TDMS.Common;
- namespace TDMS.Externals
- {
- internal partial class DDC : DIAdemConnectivity
- {
- [DllImport(DLL, CallingConvention = CallingConvention.Cdecl, EntryPoint = "DDC_SetChannelProperty")]
- public static extern Error SetChannelProperty(IntPtr channel, string property, __arglist);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetChannelPropertyTimestampComponents")]
- public static extern Error SetChannelPropertyTimestampComponents(IntPtr channel,
- string property,
- uint year,
- uint month,
- uint day,
- uint hour,
- uint minute,
- uint second,
- double milliSecond);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetChannelPropertyV")]
- public static extern Error SetChannelPropertyV(IntPtr channel, string property, IntPtr args);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelProperty")]
- public static extern Error GetChannelProperty(IntPtr channel,
- string property,
- ref byte value,
- uint valueSizeInBytes);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelPropertyTimestampComponents")]
- public static extern Error GetChannelPropertyTimestampComponents(IntPtr channel,
- string property,
- out uint year,
- out uint month,
- out uint day,
- out uint hour,
- out uint minute,
- out uint second,
- out double milliSecond,
- out uint weekDay);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelStringPropertyLength")]
- public static extern Error GetChannelStringPropertyLength(IntPtr channel, string property, out uint length);
- [DllImport(DLL, CallingConvention = CallingConvention.Cdecl, EntryPoint = "DDC_CreateChannelProperty")]
- public static extern Error CreateChannelProperty(IntPtr channel,
- string property,
- TDMSDataType dataType,
- __arglist);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall,
- EntryPoint = "DDC_CreateChannelPropertyTimestampComponents")]
- public static extern Error CreateChannelPropertyTimestampComponents(IntPtr channel,
- string property,
- uint year,
- uint month,
- uint day,
- uint hour,
- uint minute,
- uint second,
- double milliSecond);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateChannelPropertyV")]
- public static extern Error CreateChannelPropertyV(IntPtr channel,
- string property,
- TDMSDataType dataType,
- IntPtr args);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_ChannelPropertyExists")]
- public static extern Error ChannelPropertyExists(IntPtr channel, string property, out bool exists);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetNumChannelProperties")]
- public static extern Error CountChannelProperties(IntPtr channel, out uint numProperties);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelPropertyNames")]
- public static extern Error GetChannelPropertyNames(IntPtr channel, IntPtr[] propertyNames, uint numPropertyNames);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelPropertyType")]
- public static extern Error GetChannelPropertyType(IntPtr channel, string property, out TDMSDataType dataType);
- }
- }
|