UrsReportHardwareEvent - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ursdevice.h

VOID UrsReportHardwareEvent(
  [in] WDFDEVICE          Device,
  [in] URS_HARDWARE_EVENT HardwareEvent
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ursdevice-ursreporthardwareevent)

UrsReportHardwareEvent function

Description

Notifies the USB dual-role class extension about a new hardware event.

Parameters

Device [in]

A handle to the framework device object that the client driver retrieved in the previous call to WdfDeviceCreate.

HardwareEvent [in]

A URS_HARDWARE_EVENT-type value that indicates the type of event that occurred.

Remarks

Before reporting any hardware events, the client driver for the dual-role controller must indicate to the class extension that the driver supports hardware events by calling UrsSetHardwareEventSupport.

The client driver cannot pass UrsHardwareEventNone as the HardwareEvent parameter value. That value is reserved for internal use.

The client driver must call this method to report any hardware event, such as ID-pin interrupts. Typically, in the driver's implementation of the EvtInterruptIsr callback, the driver reads the ID-pin state and reports the event to the class extension by calling this method.

See also