public DaveInterface(FD fd, string name, int localMPI, PLCEnum.Protocols useProto, PLCEnum.ProfiBusSpeed speed) { Pointer = API.DaveNewInterface(fd, name, localMPI, (int)useProto, (int)speed); }
private static extern IntPtr daveNewInterface( [MarshalAs(UnmanagedType.Struct)] FD fd, [MarshalAs(UnmanagedType.LPStr)] string name, int localMPI, int useProto, int speed);