def configure(self, requested_depth):
""" Specifies the depth of the host memory part of the DMA FIFO.
Args:
requested_depth (int): The depth of the host memory part of the DMA
FIFO in number of elements.
Returns:
actual_depth (int): The actual number of elements in the host
memory part of the DMA FIFO, which may be more than the
requested number.
"""
actual_depth = ctypes.c_size_t()
self._nifpga.ConfigureFifo2(self._session, self._number,
requested_depth, actual_depth)
return actual_depth.value
评论列表
文章目录