123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- using System;
- using System.Runtime.InteropServices;
- using System.Text;
- using TDMS.Common;
- namespace TDMS.Externals
- {
- internal partial class DDC : DIAdemConnectivity
- {
- #region Channel-Data
- #region Set Data
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetDataValuesUInt8")]
- public static extern Error SetDataValuesUInt8(IntPtr channel, byte[] values, uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetDataValuesInt16")]
- public static extern Error SetDataValuesInt16(IntPtr channel, short[] values, uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetDataValuesInt32")]
- public static extern Error SetDataValuesInt32(IntPtr channel, int[] values, uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetDataValuesFloat")]
- public static extern Error SetDataValuesFloat(IntPtr channel, float[] values, uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetDataValuesDouble")]
- public static extern Error SetDataValuesDouble(IntPtr channel, double[] values, uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetDataValuesString")]
- public static extern Error SetDataValuesString(IntPtr channel, string[] values, uint numValues);
- #endregion
- #region Append Data
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_AppendDataValuesUInt8")]
- public static extern Error AppendDataValuesUInt8(IntPtr channel, byte[] values, uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_AppendDataValuesInt16")]
- public static extern Error AppendDataValuesInt16(IntPtr channel, short[] values, uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_AppendDataValuesInt32")]
- public static extern Error AppendDataValuesInt32(IntPtr channel, int[] values, uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_AppendDataValuesFloat")]
- public static extern Error AppendDataValuesFloat(IntPtr channel, float[] values, uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_AppendDataValuesDouble")]
- public static extern Error AppendDataValuesDouble(IntPtr channel, double[] values, uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_AppendDataValuesString")]
- public static extern Error AppendDataValuesString(IntPtr channel, string[] values, uint numValues);
- #endregion
- #region Replace Data
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_ReplaceDataValuesUInt8")]
- public static extern Error ReplaceDataValuesUInt8(IntPtr channel,
- uint indexOfFirstValueToReplace,
- byte[] values,
- uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_ReplaceDataValuesInt16")]
- public static extern Error ReplaceDataValuesInt16(IntPtr channel,
- uint indexOfFirstValueToReplace,
- short[] values,
- uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_ReplaceDataValuesInt32")]
- public static extern Error ReplaceDataValuesInt32(IntPtr channel,
- uint indexOfFirstValueToReplace,
- int[] values,
- uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_ReplaceDataValuesFloat")]
- public static extern Error ReplaceDataValuesFloat(IntPtr channel,
- uint indexOfFirstValueToReplace,
- float[] values,
- uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_ReplaceDataValuesDouble")]
- public static extern Error ReplaceDataValuesDouble(IntPtr channel,
- uint indexOfFirstValueToReplace,
- double[] values,
- uint numValues);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_ReplaceDataValuesString")]
- public static extern Error ReplaceDataValuesString(IntPtr channel,
- uint indexOfFirstValueToReplace,
- string[] values,
- uint numValues);
- #endregion
- #region GetDataValues
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetDataValuesUInt8")]
- public static extern Error GetDataValuesUInt8(IntPtr channel,
- uint indexOfFirstValueToGet,
- uint numValuesToGet,
- byte[] values);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetDataValuesInt16")]
- public static extern Error GetDataValuesInt16(IntPtr channel,
- uint indexOfFirstValueToGet,
- uint numValuesToGet,
- short[] values);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetDataValuesInt32")]
- public static extern Error GetDataValuesInt32(IntPtr channel,
- uint indexOfFirstValueToGet,
- uint numValuesToGet,
- int[] values);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetDataValuesFloat")]
- public static extern Error GetDataValuesFloat(IntPtr channel,
- uint indexOfFirstValueToGet,
- uint numValuesToGet,
- float[] values);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetDataValuesDouble")]
- public static extern Error GetDataValuesDouble(IntPtr channel,
- uint indexOfFirstValueToGet,
- uint numValuesToGet,
- double[] values);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetDataValuesString")]
- public static extern Error GetDataValuesString(IntPtr channel,
- uint indexOfFirstValueToGet,
- uint numValuesToGet,
- IntPtr[] values);
- #endregion
- #endregion
- #region FileProperty
- #region CreateFileProperty
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateFilePropertyUInt8")]
- public static extern Error CreateFilePropertyUInt8(IntPtr file, string property, byte value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateFilePropertyInt16")]
- public static extern Error CreateFilePropertyInt16(IntPtr file, string property, short value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateFilePropertyInt32")]
- public static extern Error CreateFilePropertyInt32(IntPtr file, string property, int value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateFilePropertyFloat")]
- public static extern Error CreateFilePropertyFloat(IntPtr file, string property, float value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateFilePropertyDouble")]
- public static extern Error CreateFilePropertyDouble(IntPtr file, string property, double value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateFilePropertyString")]
- public static extern Error CreateFilePropertyString(IntPtr file, string property, string value);
- #endregion
- #region SetFileProperty
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetFilePropertyUInt8")]
- public static extern Error SetFilePropertyUInt8(IntPtr file, string property, byte value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetFilePropertyInt16")]
- public static extern Error SetFilePropertyInt16(IntPtr file, string property, short value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetFilePropertyInt32")]
- public static extern Error SetFilePropertyInt32(IntPtr file, string property, int value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetFilePropertyFloat")]
- public static extern Error SetFilePropertyFloat(IntPtr file, string property, float value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetFilePropertyDouble")]
- public static extern Error SetFilePropertyDouble(IntPtr file, string property, double value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetFilePropertyString")]
- public static extern Error SetFilePropertyString(IntPtr file, string property, string value);
- #endregion
- #region GetFileProperty
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetFilePropertyUInt8")]
- public static extern Error GetFilePropertyUInt8(IntPtr file, string property, out byte value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetFilePropertyInt16")]
- public static extern Error GetFilePropertyInt16(IntPtr file, string property, out short value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetFilePropertyInt32")]
- public static extern Error GetFilePropertyInt32(IntPtr file, string property, out int value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetFilePropertyFloat")]
- public static extern Error GetFilePropertyFloat(IntPtr file, string property, out float value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetFilePropertyDouble")]
- public static extern Error GetFilePropertyDouble(IntPtr file, string property, out double value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetFilePropertyString")]
- public static extern Error GetFilePropertyString(IntPtr file, string property, StringBuilder value, uint valueSize);
- #endregion
- #endregion
- #region ChannelGroupProperty
- #region CreateChannelGroupProperty
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateChannelGroupPropertyUInt8")]
- public static extern Error CreateChannelGroupPropertyUInt8(IntPtr file, string property, byte value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateChannelGroupPropertyInt16")]
- public static extern Error CreateChannelGroupPropertyInt16(IntPtr file, string property, short value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateChannelGroupPropertyInt32")]
- public static extern Error CreateChannelGroupPropertyInt32(IntPtr file, string property, int value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateChannelGroupPropertyFloat")]
- public static extern Error CreateChannelGroupPropertyFloat(IntPtr file, string property, float value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateChannelGroupPropertyDouble")]
- public static extern Error CreateChannelGroupPropertyDouble(IntPtr file, string property, double value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateChannelGroupPropertyString")]
- public static extern Error CreateChannelGroupPropertyString(IntPtr file, string property, string value);
- #endregion
- #region SetChannelGroupProperty
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetChannelGroupPropertyUInt8")]
- public static extern Error SetChannelGroupPropertyUInt8(IntPtr file, string property, byte value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetChannelGroupPropertyInt16")]
- public static extern Error SetChannelGroupPropertyInt16(IntPtr file, string property, short value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetChannelGroupPropertyInt32")]
- public static extern Error SetChannelGroupPropertyInt32(IntPtr file, string property, int value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetChannelGroupPropertyFloat")]
- public static extern Error SetChannelGroupPropertyFloat(IntPtr file, string property, float value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetChannelGroupPropertyDouble")]
- public static extern Error SetChannelGroupPropertyDouble(IntPtr file, string property, double value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetChannelGroupPropertyString")]
- public static extern Error SetChannelGroupPropertyString(IntPtr file, string property, string value);
- #endregion
- #region GetChannelGroupProperty
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelGroupPropertyUInt8")]
- public static extern Error GetChannelGroupPropertyUInt8(IntPtr file, string property, out byte value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelGroupPropertyInt16")]
- public static extern Error GetChannelGroupPropertyInt16(IntPtr file, string property, out short value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelGroupPropertyInt32")]
- public static extern Error GetChannelGroupPropertyInt32(IntPtr file, string property, out int value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelGroupPropertyFloat")]
- public static extern Error GetChannelGroupPropertyFloat(IntPtr file, string property, out float value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelGroupPropertyDouble")]
- public static extern Error GetChannelGroupPropertyDouble(IntPtr file, string property, out double value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelGroupPropertyString")]
- public static extern Error GetChannelGroupPropertyString(IntPtr file, string property, StringBuilder value, uint valueSize);
- #endregion
- #endregion
- #region ChannelProperty
- #region CreateChannelProperty
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateChannelPropertyUInt8")]
- public static extern Error CreateChannelPropertyUInt8(IntPtr file, string property, byte value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateChannelPropertyInt16")]
- public static extern Error CreateChannelPropertyInt16(IntPtr file, string property, short value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateChannelPropertyInt32")]
- public static extern Error CreateChannelPropertyInt32(IntPtr file, string property, int value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateChannelPropertyFloat")]
- public static extern Error CreateChannelPropertyFloat(IntPtr file, string property, float value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateChannelPropertyDouble")]
- public static extern Error CreateChannelPropertyDouble(IntPtr file, string property, double value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_CreateChannelPropertyString")]
- public static extern Error CreateChannelPropertyString(IntPtr file, string property, string value);
- #endregion
- #region SetChannelProperty
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetChannelPropertyUInt8")]
- public static extern Error SetChannelPropertyUInt8(IntPtr file, string property, byte value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetChannelPropertyInt16")]
- public static extern Error SetChannelPropertyInt16(IntPtr file, string property, short value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetChannelPropertyInt32")]
- public static extern Error SetChannelPropertyInt32(IntPtr file, string property, int value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetChannelPropertyFloat")]
- public static extern Error SetChannelPropertyFloat(IntPtr file, string property, float value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetChannelPropertyDouble")]
- public static extern Error SetChannelPropertyDouble(IntPtr file, string property, double value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_SetChannelPropertyString")]
- public static extern Error SetChannelPropertyString(IntPtr file, string property, string value);
- #endregion
- #region GetChannelProperty
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelPropertyUInt8")]
- public static extern Error GetChannelPropertyUInt8(IntPtr file, string property, out byte value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelPropertyInt16")]
- public static extern Error GetChannelPropertyInt16(IntPtr file, string property, out short value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelPropertyInt32")]
- public static extern Error GetChannelPropertyInt32(IntPtr file, string property, out int value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelPropertyFloat")]
- public static extern Error GetChannelPropertyFloat(IntPtr file, string property, out float value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelPropertyDouble")]
- public static extern Error GetChannelPropertyDouble(IntPtr file, string property, out double value);
- [DllImport(DLL, CallingConvention = CallingConvention.StdCall, EntryPoint = "DDC_GetChannelPropertyString")]
- public static extern Error GetChannelPropertyString(IntPtr file, string property, StringBuilder value, uint valueSize);
- #endregion
- #endregion
- }
- }
|