Mmmapiospace, Syntax, Remarks – Rockwell Automation 6182 SDK User Manual
Page 63: Interruptinitialize
RAC6182-Specific Extensions to the CE API
4–23
Publication 6182-UM002B-EN-P
MmMapIoSpace
This function maps the PCI IO space.
Syntax
#include
#include
PVOID MmMapIoSpace(
PHYSICAL_ADDRESS PhysicalAddress,
ULONG NumberOfBytes,
BOOLEAN CacheEnable
)
Remarks
MmMapIoSpace() maps a physical address range into a virtual address
range usable by an application. This function should be used on PCI
memory or IO range information obtained with
HalGetBusDataByOffset() and translated with
HalTranslateBusAddress().
Parameter
Description
PhysicalAddress
NumberOfBytes
CacheEnable
InterruptInitialize
This function initializes the PCI interrupt.
Syntax
#include
#include
BOOL InterruptInitialize(
DWORD idInt,
HANDLE hEvent,
LPVOID pvData,
DWORD cbData
)
Remarks
InterruptInitialize() associates a virtual interrupt number with an
application created event so that the application can use WaitFor*()
functions to wait for the interrupt to occur. For RAC6182, the virtual
interrupt is obtained from the PCI configuration space interrupt register