周立功的CAN /FD实现

This commit is contained in:
2026-02-06 12:34:34 +08:00
parent 2e8ad1cffa
commit 74338fdb3a
13 changed files with 4260 additions and 310 deletions

View File

@@ -88,10 +88,10 @@ namespace CapMachine.Wpf.CanDrive.ZlgCan
#endregion
#region
[DllImport("zlgcan.dll", CallingConvention = CallingConvention.StdCall)]
[DllImport("zlgcan.dll", CallingConvention = CallingConvention.StdCall, SetLastError = true)]
public static extern IntPtr ZCAN_OpenDevice(uint device_type, uint device_index, uint reserved);
[DllImport("zlgcan.dll", CallingConvention = CallingConvention.StdCall)]
[DllImport("zlgcan.dll", CallingConvention = CallingConvention.StdCall, SetLastError = true)]
public static extern IntPtr ZCAN_OpenDeviceByName(uint device_type, string name);
[DllImport("zlgcan.dll", CallingConvention = CallingConvention.StdCall)]