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