Compartilhar via


OEMInterruptEnable (Compact 2013)

10/16/2014

This function performs hardware operations necessary to enable the specified hardware interrupt.

Syntax

BOOL OEMInterruptEnable(
  DWORD idInt, 
  LPVOID pvData, 
  DWORD cbData 
);

Parameters

  • idInt
    [in] Interrupt identifier to be enabled.
  • cbData
    [in] Size of data pointed to by pvData.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

This function performs hardware operations necessary to allow a device to generate the specified interrupt. This can include

  • Setting a hardware priority for the device
  • Setting a hardware interrupt enable port
  • Clearing pending interrupt conditions from the device

These actions can be split between the device driver and the code in this function.

In general, actions that involve shared state among multiple devices should be managed by the OAL functions, and actions that involve private state should be managed by the device driver.

When a device driver calls the InterruptInitialize kernel routine, the kernel then calls this function.

The system cannot be pre-empted when this function is called.

Requirements

Header

nkintr.h

Library

OEMMain.lib or OEMMain_StaticKITL.lib

See Also

Reference

Required OAL Functions
OEMInterruptDisable