UCX_USBDEVICE_EVENT_CALLBACKS_INIT function

Initializes a UCX_USBDEVICE_EVENT_CALLBACKS structure with the function pointers to client driver's callback functions.

Syntax

void UCX_USBDEVICE_EVENT_CALLBACKS_INIT(
  PUCX_USBDEVICE_EVENT_CALLBACKS         Callbacks,
  PFN_UCX_USBDEVICE_ENDPOINTS_CONFIGURE  EvtUsbDeviceEndpointsConfigure,
  PFN_UCX_USBDEVICE_ENABLE               EvtUsbDeviceEnable,
  PFN_UCX_USBDEVICE_DISABLE              EvtUsbDeviceDisable,
  PFN_UCX_USBDEVICE_RESET                EvtUsbDeviceReset,
  PFN_UCX_USBDEVICE_ADDRESS              EvtUsbDeviceAddress,
  PFN_UCX_USBDEVICE_UPDATE               EvtUsbDeviceUpdate,
  PFN_UCX_USBDEVICE_HUB_INFO             EvtUsbDeviceHubInfo,
  PFN_UCX_USBDEVICE_DEFAULT_ENDPOINT_ADD EvtUsbDeviceDefaultEndpointAdd,
  PFN_UCX_USBDEVICE_ENDPOINT_ADD         EvtUsbDeviceEndpointAdd
);

Parameters

Callbacks

A pointer to a UCX_USBDEVICE_EVENT_CALLBACKS structure to initialize.

EvtUsbDeviceEndpointsConfigure

A pointer to client driver's implementation of the EVT_UCX_USBDEVICE_ENDPOINTS_CONFIGURE event callback function.

EvtUsbDeviceEnable

A pointer to client driver's implementation of the EVT_UCX_USBDEVICE_ENABLE event callback function.

EvtUsbDeviceDisable

A pointer to client driver's implementation of the EVT_UCX_USBDEVICE_DISABLE event callback function.

EvtUsbDeviceReset

A pointer to client driver's implementation of the EVT_UCX_USBDEVICE_RESET event callback function.

EvtUsbDeviceAddress

A pointer to client driver's implementation of the EVT_UCX_USBDEVICE_ADDRESS event callback function.

EvtUsbDeviceUpdate

A pointer to client driver's implementation of the EVT_UCX_USBDEVICE_UPDATE event callback function.

EvtUsbDeviceHubInfo

A pointer to client driver's implementation of the EVT_UCX_USBDEVICE_HUB_INFO event callback function.

EvtUsbDeviceDefaultEndpointAdd

A pointer to client driver's implementation of the EVT_UCX_USBDEVICE_DEFAULT_ENDPOINT_ADD event callback function.

EvtUsbDeviceEndpointAdd

A pointer to client driver's implementation of the EVT_UCX_USBDEVICE_ENDPOINT_ADD event callback function.

Return Value

This function does not return a value.

Requirements

   
Minimum supported client Windows 10
Target Platform Windows
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header ucxusbdevice.h (include Ucxclass.h)

See Also

UCX_USBDEVICE_EVENT_CALLBACKS

UcxUsbDeviceCreate

UcxUsbDeviceInitSetEventCallbacks