UrsReportHardwareEvent function (ursdevice.h)
Notifies the USB dual-role class extension about a new hardware event.
[in] WDFDEVICE Device,
[in] URS_HARDWARE_EVENT HardwareEvent
A handle to the framework device object that the client driver retrieved in the previous call to WdfDeviceCreate.
A URS_HARDWARE_EVENT-type value that indicates the type of event that occurred.
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.
|Minimum supported client
|Minimum supported server
|Windows Server 2016
|Minimum KMDF version
|ursdevice.h (include Urscx.h)