| Contents | Index |
void * xpcReserveMemoryRegion(const void *physical, uint32_T numBytes, uint32_T access)
physical | Starting address of the memory region to be reserved. This is typically obtained from one of the PCI base address registers. |
numBytes | Size of region to be located, in bytes. |
access | Type of access, limited to XPC_RT_PG_USERREADWRITE (read/write). |
The xpcReserveMemoryRegion function returns the virtual address to use to access the physical address.
This function reserves a region of physical memory (as returned by the PCI BIOS) and returns the corresponding virtual address. You can later use the virtual address for pointer addressing.
You can call this function multiple times with the same address. A call to this function with an already reserved area returns the same virtual address.
The required size differs from board to board. You can obtain the required number of bytes from the register programming manual of the particular board. This size is typically a multiple of a page (4096 bytes).

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |