示例#1
0
 public NativeMethods(DllImportsFromSharedLib unusedInstance)
 {
     this.VLFD_ProgramFPGA_init        = DllImportsFromSharedLib.VLFD_ProgramFPGA;
     this.VLFD_AppOpen_init            = DllImportsFromSharedLib.VLFD_AppOpen;
     this.VLFD_AppFIFOReadData_init    = DllImportsFromSharedLib.VLFD_AppFIFOReadData;
     this.VLFD_AppFIFOWriteData_init   = DllImportsFromSharedLib.VLFD_AppFIFOWriteData;
     this.VLFD_AppChannelSelector_init = DllImportsFromSharedLib.VLFD_AppChannelSelector;
     this.VLFD_AppClose_init           = DllImportsFromSharedLib.VLFD_AppClose;
     this.VLFD_GetLastErrorMsg_init    = DllImportsFromSharedLib.VLFD_GetLastErrorMsg;
 }
示例#2
0
 public NativeMethods(UnmanagedLibrary library)
 {
     this.VLFD_ProgramFPGA_init        = GetMethodDelegate <Delegates.VLFD_ProgramFPGA_delegate>(library);
     this.VLFD_AppOpen_init            = GetMethodDelegate <Delegates.VLFD_AppOpen_delegate>(library);
     this.VLFD_IO_Open_init            = GetMethodDelegate <Delegates.VLFD_IO_Open_delegate>(library);
     this.VLFD_AppFIFOReadData_init    = GetMethodDelegate <Delegates.VLFD_AppFIFOReadData_delegate>(library);
     this.VLFD_AppFIFOWriteData_init   = GetMethodDelegate <Delegates.VLFD_AppFIFOWriteData_delegate>(library);
     this.VLFD_IO_WriteReadData_init   = GetMethodDelegate <Delegates.VLFD_IO_WriteReadData_delegate>(library);
     this.VLFD_AppChannelSelector_init = GetMethodDelegate <Delegates.VLFD_AppChannelSelector_delegate>(library);
     this.VLFD_AppClose_init           = GetMethodDelegate <Delegates.VLFD_AppClose_delegate>(library);
     this.VLFD_IO_Close_init           = GetMethodDelegate <Delegates.VLFD_IO_Close_delegate>(library);
     this.VLFD_GetLastErrorMsg_init    = GetMethodDelegate <Delegates.VLFD_GetLastErrorMsg_delegate>(library);
 }