123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net.Http.Headers;
- using System.Reflection;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Threading.Tasks;
- using FxpConvert.Common;
- namespace NIFPGA
- {
- partial class Interop
- {
- public enum NiFpga_FifoProperty
- {
- /// NiFpga_FifoProperty_BytesPerElement -> 1
- NiFpga_FifoProperty_BytesPerElement = 1,
- /// NiFpga_FifoProperty_HostBufferAllocationGranularity -> 2
- NiFpga_FifoProperty_HostBufferAllocationGranularity = 2,
- /// NiFpga_FifoProperty_HostBufferSize -> 3
- NiFpga_FifoProperty_HostBufferSize = 3,
- /// NiFpga_FifoProperty_HostBufferMirrorSize -> 4
- NiFpga_FifoProperty_HostBufferMirrorSize = 4,
- /// NiFpga_FifoProperty_HostBufferType -> 5
- NiFpga_FifoProperty_HostBufferType = 5,
- /// NiFpga_FifoProperty_HostBuffer -> 6
- NiFpga_FifoProperty_HostBuffer = 6,
- /// NiFpga_FifoProperty_FlowControl -> 7
- NiFpga_FifoProperty_FlowControl = 7,
- /// NiFpga_FifoProperty_ElementsCurrentlyAcquired -> 8
- NiFpga_FifoProperty_ElementsCurrentlyAcquired = 8,
- }
- public enum NiFpga_CloseAttribute
- {
- /// NiFpga_CloseAttribute_NoResetIfLastSession -> 1
- NiFpga_CloseAttribute_NoResetIfLastSession = 1,
- }
- public enum NiFpga_RunAttribute
- {
- NiFpga_RunAttribute_None=0,
- /// NiFpga_RunAttribute_WaitUntilDone -> 1
- NiFpga_RunAttribute_WaitUntilDone = 1,
- }
- public static Boolean NiFpga_IsError(NiFpga_Status status) => status < NiFpga_Status.Success;
- public static Boolean NiFpga_IsNotError(NiFpga_Status status) => status >= NiFpga_Status.Success;
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_Open([System.Runtime.InteropServices.InAttribute()][System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string bitfile, [System.Runtime.InteropServices.InAttribute()][System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string signature, [System.Runtime.InteropServices.InAttribute()][System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string resource, NiFpga_OpenAttribute attribute, ref uint session);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_Finalize();
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_Close(uint session, NiFpga_CloseAttribute attribute);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_Run(uint session, NiFpga_RunAttribute attribute);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_Abort(uint session);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_Reset(uint session);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_Download(uint session);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadBool(uint session, uint indicator, ref byte value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadI8(uint session, uint indicator, ref sbyte value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadU8(uint session, uint indicator, ref byte value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadI16(uint session, uint indicator, ref short value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadU16(uint session, uint indicator, ref ushort value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadI32(uint session, uint indicator, ref int value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadU32(uint session, uint indicator, ref uint value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadI64(uint session, uint indicator, ref long value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadU64(uint session, uint indicator, ref ulong value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadSgl(uint session, uint indicator, ref float value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadDbl(uint session, uint indicator, ref double value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteBool(uint session, uint control, byte value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteI8(uint session, uint control, sbyte value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteU8(uint session, uint control, byte value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteI16(uint session, uint control, short value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteU16(uint session, uint control, ushort value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteI32(uint session, uint control, int value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteU32(uint session, uint control, uint value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteI64(uint session, uint control, long value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteU64(uint session, uint control, ulong value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteSgl(uint session, uint control, float value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteDbl(uint session, uint control, double value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadArrayBool(uint session, uint indicator, ref byte array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadArrayI8(uint session, uint indicator, ref sbyte array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadArrayU8(uint session, uint indicator, ref byte array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadArrayI16(uint session, uint indicator, ref short array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadArrayU16(uint session, uint indicator, ref ushort array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadArrayI32(uint session, uint indicator, ref int array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadArrayU32(uint session, uint indicator, ref uint array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadArrayI64(uint session, uint indicator, ref long array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadArrayU64(uint session, uint indicator, ref ulong array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadArraySgl(uint session, uint indicator, ref float array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadArrayDbl(uint session, uint indicator, ref double array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteArrayBool(uint session, uint control, ref byte array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteArrayI8(uint session, uint control, ref sbyte array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteArrayU8(uint session, uint control, ref byte array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteArrayI16(uint session, uint control, ref short array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteArrayU16(uint session, uint control, ref ushort array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteArrayI32(uint session, uint control, ref int array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteArrayU32(uint session, uint control, ref uint array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteArrayI64(uint session, uint control, ref long array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteArrayU64(uint session, uint control, ref ulong array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteArraySgl(uint session, uint control, ref float array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteArrayDbl(uint session, uint control, ref double array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReserveIrqContext(uint session, ref System.IntPtr context);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_UnreserveIrqContext(uint session, System.IntPtr context);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WaitOnIrqs(uint session, System.IntPtr context, NiFpga_Irq irqs, uint timeout, ref uint irqsAsserted, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.I1)] ref bool timedOut);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_AcknowledgeIrqs(uint session, NiFpga_Irq irqs);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ConfigureFifo(uint session, uint fifo, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint depth);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ConfigureFifo2(uint session, uint fifo, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint requestedDepth, ref uint actualDepth);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_SetFifoPropertyU32(uint session, uint fifo, NiFpga_FifoProperty property, uint value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_SetFifoPropertyI32(uint session, uint fifo, NiFpga_FifoProperty property, int value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_SetFifoPropertyU64(uint session, uint fifo, NiFpga_FifoProperty property, ulong value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_SetFifoPropertyI64(uint session, uint fifo, NiFpga_FifoProperty property, long value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_SetFifoPropertyPtr(uint session, uint fifo, NiFpga_FifoProperty property, IntPtr value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_GetFifoPropertyU32(uint session, uint fifo, NiFpga_FifoProperty property, ref uint value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_GetFifoPropertyI32(uint session, uint fifo, NiFpga_FifoProperty property, ref int value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_GetFifoPropertyU64(uint session, uint fifo, NiFpga_FifoProperty property, ref ulong value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_GetFifoPropertyI64(uint session, uint fifo, NiFpga_FifoProperty property, ref long value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_GetFifoPropertyPtr(uint session, uint fifo, NiFpga_FifoProperty property, ref IntPtr value);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_CommitFifoConfiguration(uint session, uint fifo);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_StartFifo(uint session, uint fifo);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_StopFifo(uint session, uint fifo);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_UnreserveFifo(uint session, uint fifo);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadFifoBool(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadFifoI8(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadFifoU8(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadFifoI16(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadFifoU16(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadFifoI32(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadFifoU32(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadFifoI64(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadFifoU64(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadFifoSgl(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadFifoDbl(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_ReadFifoComposite(uint session, uint fifo, ref byte data, uint bytesPerElement, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteFifoBool(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint emptyElementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteFifoI8(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint emptyElementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteFifoU8(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint emptyElementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteFifoI16(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint emptyElementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteFifoU16(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint emptyElementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteFifoI32(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint emptyElementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteFifoU32(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint emptyElementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteFifoI64(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint emptyElementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteFifoU64(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint emptyElementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteFifoSgl(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint emptyElementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteFifoDbl(uint session, uint fifo, ref byte data, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint emptyElementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_WriteFifoComposite(uint session, uint fifo, ref byte data, uint bytesPerElement, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint numberOfElements, uint timeout, ref uint emptyElementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_AcquireFifoReadElementsBool(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_AcquireFifoReadElementsI8(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate NiFpga_Status NiFpgaDll_AcquireFifoReadElementsU8(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoReadElementsI16(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoReadElementsU16(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoReadElementsI32(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoReadElementsU32(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoReadElementsI64(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoReadElementsU64(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoReadElementsSgl(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoReadElementsDbl(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoWriteElementsBool(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoWriteElementsI8(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoWriteElementsU8(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoWriteElementsI16(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoWriteElementsU16(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoWriteElementsI32(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoWriteElementsU32(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoWriteElementsI64(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoWriteElementsU64(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoWriteElementsSgl(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_AcquireFifoWriteElementsDbl(uint session, uint fifo, ref System.IntPtr elements, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elementsRequested, uint timeout, ref uint elementsAcquired, ref uint elementsRemaining);
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_ReleaseFifoElements(uint session, uint fifo, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elements);
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_GetPeerToPeerFifoEndpoint(uint session, uint fifo, ref uint endpoint);
- }
- }
|