Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines notifications sent to class drivers.
Syntax
typedef enum _USBFN_EVENT {
UsbfnEventMinimum,
UsbfnEventAttach,
UsbfnEventReset,
UsbfnEventDetach,
UsbfnEventSuspend,
UsbfnEventResume,
UsbfnEventSetupPacket,
UsbfnEventConfigured,
UsbfnEventUnConfigured,
UsbfnEventPortType,
UsbfnEventBusTearDown,
UsbfnEventSetInterface,
UsbfnEventMaximum
} USBFN_EVENT, *PUSBFN_EVENT;
Constants
UsbfnEventMinimumThe minimum value in this enumeration. |
UsbfnEventAttachVBUS is powered. No action is required. |
UsbfnEventResetUSBFN has completed a USB Reset. If previously configured, class drivers should reset their state. Transfer requests will be cancelled. |
UsbfnEventDetachVBUS is no longer powered. If previously configured, class drivers should reset their state. Transfer requests will be cancelled. The BusSpeed field of the notification is set appropriately. |
UsbfnEventSuspendThere have been no SOF packets on the bus for 3ms. If a class driver wants to issue a remote wake up, the driver must use IOCTL_INTERNAL_USBFN_SIGNAL_REMOTE_WAKEUP or IOCTL_INTERNAL_USBFN_TRANSFER_IN. |
UsbfnEventResumeUSBFN has resumed from suspend to the previous state. |
UsbfnEventSetupPacketUSBFN has received a setup packet with bmRequestType.Type set to BMREQUEST_CLASS and bmRequestType.Recipient set to BMREQUEST_TO_INTERFACE. USBFN forwarded the setup packet to the class driver specified in wIndex.LowByte. The setup packet is available in the SetupPacket field of the event. If the control transfer does not require a data stage, class drivers should respond with IOCTL_INTERNAL_USBFN_CONTROL_STATUS_HANDSHAKE_OUT. If a data stage is required, class drivers should respond with one or more IOCTL_INTERNAL_USBFN_TRANSFER_IN or IOCTL_INTERNAL_USBFN_TRANSFER_OUT, followed by IOCTL_INTERNAL_USBFN_CONTROL_STATUS_HANDSHAKE_IN or IOCTL_INTERNAL_USBFN_CONTROL_STATUS_HANDSHAKE_OUT in the opposite direction. |
UsbfnEventConfiguredUSBFN has received a SET_CONFIGURATION setup packet. Transfer requests from class drivers are now permitted. The ConfigurationValue of the notification is set to wValue.W. |
UsbfnEventUnConfiguredUSBFN has received a SET_CONFIGURATION setup packet with wValue.W set to 0. If previously configured, class drivers should reset their state. Transfer requests will be cancelled. |
UsbfnEventPortTypeDeprecated. |
UsbfnEventBusTearDownDeprecated. |
UsbfnEventSetInterfaceUSBFN has received a SET_INTERFACE setup packet. On receiving this notification the class driver should query for the new endpoint set for the interface. |
UsbfnEventMaximumThe minimum value in this enumeration. |
Requirements
| Requirement | Value |
|---|---|
| Header | usbfnbase.h |