Beispiel #1
0
 /// <summary>
 /// This operation maps in a specified memory space. The memory space that is mapped is dependent on the
 /// mapSpace (refer to the following table) parameter. The address parameter returns the address in your
 /// process space where memory is mapped.
 ///
 /// Value               Description
 /// ------------        -------------------------
 /// VI_A16_SPACE        Map the A16 address space of VXI/MXI bus.
 /// VI_A24_SPACE        Map the A24 address space of VXI/MXI bus.
 /// VI_A32_SPACE        Map the A32 address space of VXI/MXI bus.
 /// VI_A64_SPACE        Map the A64 address space of VXI/MXI bus.
 /// VI_PXI_CFG_SPACE    Address the PCI configuration space.
 /// VI_PXI_BAR0_SPACE – VI_PXI_BAR5_SPACE	Address the specified PCI memory or I/O space.
 /// VI_PXI_ALLOC_SPACE  Access physical locally allocated memory
 /// </summary>
 /// <param name="mapSpace">Specifies the address space to map. </param>
 /// <param name="mapOffset">Offset (in bytes) of the memory to be mapped.</param>
 /// <param name="mapSize">Amount of memory to map (in bytes).</param>
 /// <param name="accMode">VI_FALSE</param>
 /// <param name="suggested">If suggested parameter is not VI_NULL, the operating system attempts to map
 ///                         the memory to the address specified in suggested. There is no guarantee,
 ///                         however, that the memory will be mapped to that address. This operation
 ///                         may map the memory into an address region different from suggested.</param>
 /// <param name="address">Address in your process space where the memory was mapped.</param>
 public void MapAddress(short mapSpace,
                        int mapOffset,
                        int mapSize,
                        short accMode,
                        IntPtr suggested,
                        out IntPtr address)
 {
     CheckStatus(AgVisa32.viMapAddress(mSession, mapSpace, mapOffset, mapSize, accMode, suggested, out address));
 }