NIFPGA.Interop.cs 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net.Http.Headers;
  5. using System.Reflection;
  6. using System.Runtime.InteropServices;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using FxpConvert.Common;
  10. namespace NIFPGA
  11. {
  12. partial class Interop
  13. {
  14. public enum NiFpga_FifoProperty
  15. {
  16. /// NiFpga_FifoProperty_BytesPerElement -> 1
  17. NiFpga_FifoProperty_BytesPerElement = 1,
  18. /// NiFpga_FifoProperty_HostBufferAllocationGranularity -> 2
  19. NiFpga_FifoProperty_HostBufferAllocationGranularity = 2,
  20. /// NiFpga_FifoProperty_HostBufferSize -> 3
  21. NiFpga_FifoProperty_HostBufferSize = 3,
  22. /// NiFpga_FifoProperty_HostBufferMirrorSize -> 4
  23. NiFpga_FifoProperty_HostBufferMirrorSize = 4,
  24. /// NiFpga_FifoProperty_HostBufferType -> 5
  25. NiFpga_FifoProperty_HostBufferType = 5,
  26. /// NiFpga_FifoProperty_HostBuffer -> 6
  27. NiFpga_FifoProperty_HostBuffer = 6,
  28. /// NiFpga_FifoProperty_FlowControl -> 7
  29. NiFpga_FifoProperty_FlowControl = 7,
  30. /// NiFpga_FifoProperty_ElementsCurrentlyAcquired -> 8
  31. NiFpga_FifoProperty_ElementsCurrentlyAcquired = 8,
  32. }
  33. public enum NiFpga_CloseAttribute
  34. {
  35. /// NiFpga_CloseAttribute_NoResetIfLastSession -> 1
  36. NiFpga_CloseAttribute_NoResetIfLastSession = 1,
  37. }
  38. public enum NiFpga_RunAttribute
  39. {
  40. NiFpga_RunAttribute_None=0,
  41. /// NiFpga_RunAttribute_WaitUntilDone -> 1
  42. NiFpga_RunAttribute_WaitUntilDone = 1,
  43. }
  44. public static Boolean NiFpga_IsError(NiFpga_Status status) => status < NiFpga_Status.Success;
  45. public static Boolean NiFpga_IsNotError(NiFpga_Status status) => status >= NiFpga_Status.Success;
  46. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  47. 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);
  48. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  49. public delegate NiFpga_Status NiFpgaDll_Finalize();
  50. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  51. public delegate NiFpga_Status NiFpgaDll_Close(uint session, NiFpga_CloseAttribute attribute);
  52. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  53. public delegate NiFpga_Status NiFpgaDll_Run(uint session, NiFpga_RunAttribute attribute);
  54. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  55. public delegate NiFpga_Status NiFpgaDll_Abort(uint session);
  56. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  57. public delegate NiFpga_Status NiFpgaDll_Reset(uint session);
  58. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  59. public delegate NiFpga_Status NiFpgaDll_Download(uint session);
  60. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  61. public delegate NiFpga_Status NiFpgaDll_ReadBool(uint session, uint indicator, ref byte value);
  62. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  63. public delegate NiFpga_Status NiFpgaDll_ReadI8(uint session, uint indicator, ref sbyte value);
  64. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  65. public delegate NiFpga_Status NiFpgaDll_ReadU8(uint session, uint indicator, ref byte value);
  66. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  67. public delegate NiFpga_Status NiFpgaDll_ReadI16(uint session, uint indicator, ref short value);
  68. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  69. public delegate NiFpga_Status NiFpgaDll_ReadU16(uint session, uint indicator, ref ushort value);
  70. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  71. public delegate NiFpga_Status NiFpgaDll_ReadI32(uint session, uint indicator, ref int value);
  72. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  73. public delegate NiFpga_Status NiFpgaDll_ReadU32(uint session, uint indicator, ref uint value);
  74. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  75. public delegate NiFpga_Status NiFpgaDll_ReadI64(uint session, uint indicator, ref long value);
  76. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  77. public delegate NiFpga_Status NiFpgaDll_ReadU64(uint session, uint indicator, ref ulong value);
  78. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  79. public delegate NiFpga_Status NiFpgaDll_ReadSgl(uint session, uint indicator, ref float value);
  80. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  81. public delegate NiFpga_Status NiFpgaDll_ReadDbl(uint session, uint indicator, ref double value);
  82. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  83. public delegate NiFpga_Status NiFpgaDll_WriteBool(uint session, uint control, byte value);
  84. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  85. public delegate NiFpga_Status NiFpgaDll_WriteI8(uint session, uint control, sbyte value);
  86. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  87. public delegate NiFpga_Status NiFpgaDll_WriteU8(uint session, uint control, byte value);
  88. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  89. public delegate NiFpga_Status NiFpgaDll_WriteI16(uint session, uint control, short value);
  90. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  91. public delegate NiFpga_Status NiFpgaDll_WriteU16(uint session, uint control, ushort value);
  92. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  93. public delegate NiFpga_Status NiFpgaDll_WriteI32(uint session, uint control, int value);
  94. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  95. public delegate NiFpga_Status NiFpgaDll_WriteU32(uint session, uint control, uint value);
  96. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  97. public delegate NiFpga_Status NiFpgaDll_WriteI64(uint session, uint control, long value);
  98. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  99. public delegate NiFpga_Status NiFpgaDll_WriteU64(uint session, uint control, ulong value);
  100. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  101. public delegate NiFpga_Status NiFpgaDll_WriteSgl(uint session, uint control, float value);
  102. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  103. public delegate NiFpga_Status NiFpgaDll_WriteDbl(uint session, uint control, double value);
  104. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  105. public delegate NiFpga_Status NiFpgaDll_ReadArrayBool(uint session, uint indicator, ref byte array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  106. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  107. public delegate NiFpga_Status NiFpgaDll_ReadArrayI8(uint session, uint indicator, ref sbyte array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  108. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  109. public delegate NiFpga_Status NiFpgaDll_ReadArrayU8(uint session, uint indicator, ref byte array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  110. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  111. public delegate NiFpga_Status NiFpgaDll_ReadArrayI16(uint session, uint indicator, ref short array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  112. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  113. public delegate NiFpga_Status NiFpgaDll_ReadArrayU16(uint session, uint indicator, ref ushort array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  114. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  115. public delegate NiFpga_Status NiFpgaDll_ReadArrayI32(uint session, uint indicator, ref int array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  116. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  117. public delegate NiFpga_Status NiFpgaDll_ReadArrayU32(uint session, uint indicator, ref uint array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  118. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  119. public delegate NiFpga_Status NiFpgaDll_ReadArrayI64(uint session, uint indicator, ref long array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  120. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  121. public delegate NiFpga_Status NiFpgaDll_ReadArrayU64(uint session, uint indicator, ref ulong array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  122. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  123. public delegate NiFpga_Status NiFpgaDll_ReadArraySgl(uint session, uint indicator, ref float array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  124. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  125. public delegate NiFpga_Status NiFpgaDll_ReadArrayDbl(uint session, uint indicator, ref double array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  126. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  127. public delegate NiFpga_Status NiFpgaDll_WriteArrayBool(uint session, uint control, ref byte array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  128. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  129. public delegate NiFpga_Status NiFpgaDll_WriteArrayI8(uint session, uint control, ref sbyte array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  130. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  131. public delegate NiFpga_Status NiFpgaDll_WriteArrayU8(uint session, uint control, ref byte array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  132. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  133. public delegate NiFpga_Status NiFpgaDll_WriteArrayI16(uint session, uint control, ref short array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  134. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  135. public delegate NiFpga_Status NiFpgaDll_WriteArrayU16(uint session, uint control, ref ushort array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  136. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  137. public delegate NiFpga_Status NiFpgaDll_WriteArrayI32(uint session, uint control, ref int array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  138. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  139. public delegate NiFpga_Status NiFpgaDll_WriteArrayU32(uint session, uint control, ref uint array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  140. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  141. public delegate NiFpga_Status NiFpgaDll_WriteArrayI64(uint session, uint control, ref long array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  142. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  143. public delegate NiFpga_Status NiFpgaDll_WriteArrayU64(uint session, uint control, ref ulong array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  144. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  145. public delegate NiFpga_Status NiFpgaDll_WriteArraySgl(uint session, uint control, ref float array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  146. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  147. public delegate NiFpga_Status NiFpgaDll_WriteArrayDbl(uint session, uint control, ref double array, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint size);
  148. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  149. public delegate NiFpga_Status NiFpgaDll_ReserveIrqContext(uint session, ref System.IntPtr context);
  150. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  151. public delegate NiFpga_Status NiFpgaDll_UnreserveIrqContext(uint session, System.IntPtr context);
  152. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  153. 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);
  154. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  155. public delegate NiFpga_Status NiFpgaDll_AcknowledgeIrqs(uint session, NiFpga_Irq irqs);
  156. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  157. public delegate NiFpga_Status NiFpgaDll_ConfigureFifo(uint session, uint fifo, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint depth);
  158. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  159. public delegate NiFpga_Status NiFpgaDll_ConfigureFifo2(uint session, uint fifo, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint requestedDepth, ref uint actualDepth);
  160. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  161. public delegate NiFpga_Status NiFpgaDll_SetFifoPropertyU32(uint session, uint fifo, NiFpga_FifoProperty property, uint value);
  162. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  163. public delegate NiFpga_Status NiFpgaDll_SetFifoPropertyI32(uint session, uint fifo, NiFpga_FifoProperty property, int value);
  164. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  165. public delegate NiFpga_Status NiFpgaDll_SetFifoPropertyU64(uint session, uint fifo, NiFpga_FifoProperty property, ulong value);
  166. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  167. public delegate NiFpga_Status NiFpgaDll_SetFifoPropertyI64(uint session, uint fifo, NiFpga_FifoProperty property, long value);
  168. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  169. public delegate NiFpga_Status NiFpgaDll_SetFifoPropertyPtr(uint session, uint fifo, NiFpga_FifoProperty property, IntPtr value);
  170. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  171. public delegate NiFpga_Status NiFpgaDll_GetFifoPropertyU32(uint session, uint fifo, NiFpga_FifoProperty property, ref uint value);
  172. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  173. public delegate NiFpga_Status NiFpgaDll_GetFifoPropertyI32(uint session, uint fifo, NiFpga_FifoProperty property, ref int value);
  174. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  175. public delegate NiFpga_Status NiFpgaDll_GetFifoPropertyU64(uint session, uint fifo, NiFpga_FifoProperty property, ref ulong value);
  176. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  177. public delegate NiFpga_Status NiFpgaDll_GetFifoPropertyI64(uint session, uint fifo, NiFpga_FifoProperty property, ref long value);
  178. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  179. public delegate NiFpga_Status NiFpgaDll_GetFifoPropertyPtr(uint session, uint fifo, NiFpga_FifoProperty property, ref IntPtr value);
  180. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  181. public delegate NiFpga_Status NiFpgaDll_CommitFifoConfiguration(uint session, uint fifo);
  182. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  183. public delegate NiFpga_Status NiFpgaDll_StartFifo(uint session, uint fifo);
  184. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  185. public delegate NiFpga_Status NiFpgaDll_StopFifo(uint session, uint fifo);
  186. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  187. public delegate NiFpga_Status NiFpgaDll_UnreserveFifo(uint session, uint fifo);
  188. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  189. 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);
  190. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  191. 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);
  192. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  193. 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);
  194. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  195. 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);
  196. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  197. 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);
  198. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  199. 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);
  200. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  201. 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);
  202. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  203. 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);
  204. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  205. 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);
  206. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  207. 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);
  208. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  209. 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);
  210. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  211. 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);
  212. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  213. 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);
  214. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  215. 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);
  216. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  217. 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);
  218. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  219. 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);
  220. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  221. 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);
  222. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  223. 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);
  224. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  225. 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);
  226. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  227. 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);
  228. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  229. 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);
  230. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  231. 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);
  232. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  233. 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);
  234. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  235. 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);
  236. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  237. 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);
  238. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  239. 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);
  240. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  241. 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);
  242. [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);
  243. [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);
  244. [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);
  245. [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);
  246. [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);
  247. [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);
  248. [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);
  249. [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);
  250. [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);
  251. [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);
  252. [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);
  253. [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);
  254. [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);
  255. [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);
  256. [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);
  257. [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);
  258. [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);
  259. [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);
  260. [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);
  261. [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_ReleaseFifoElements(uint session, uint fifo, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.U4)] uint elements);
  262. [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate NiFpga_Status NiFpgaDll_GetPeerToPeerFifoEndpoint(uint session, uint fifo, ref uint endpoint);
  263. }
  264. }