Partager via


OEMInterruptEnable (Windows CE 5.0)

Send Feedback

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

BOOL OEMInterruptEnable(DWORDidInt,LPVOIDpvData,DWORDcbData );

Parameters

  • idInt
    [in] Interrupt identifier to be enabled.
  • pvData
    [out] Pointer to data passed in the InterruptInitialize function.
  • cbData
    [in] Size of data pointed to by pvData.

Return Values

If this function succeeds, it returns TRUE.

If this function fails, it returns FALSE.

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 OEMInterruptEnable.

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 OEMInterruptEnable.

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

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Nkintr.h.
Link Library: Nk.lib.

See Also

InterruptInitialize | OEMInterruptDisable | Implementing an ISR

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.