LIN 调度表配置初版,初步可以运行

This commit is contained in:
2025-10-14 20:31:40 +08:00
parent 5849d0cb5d
commit db6acc2741
4 changed files with 152 additions and 65 deletions

View File

@@ -1,4 +1,4 @@
using System.Runtime.InteropServices;
using System.Runtime.InteropServices;
using System.Text;
namespace CapMachine.Wpf.LinDrive
@@ -75,6 +75,8 @@ namespace CapMachine.Wpf.LinDrive
[DllImport("USB2XXX.dll")]
public static extern Int32 LDF_GetRawMsg(UInt64 LDFHandle, IntPtr pLINMsg, int BufferSize);
[DllImport("USB2XXX.dll")]
public static extern Int32 LDF_SyncMsgToValue(UInt64 LDFHandle, USB2LIN_EX.LIN_EX_MSG[] pLINMsg, int MsgLen);
[DllImport("USB2XXX.dll")]
public static extern Int32 LDF_StopSchTable(UInt64 LDFHandle);
[DllImport("USB2XXX.dll")]
public static extern Int32 LDF_Release(UInt64 LDFHandle);