UCX_USBDEVICE_EVENT_CALLBACKS_INIT function (ucxusbdevice.h)

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

Syntax

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

Parameters

[out] Callbacks

A pointer to a UCX_USBDEVICE_EVENT_CALLBACKS structure to initialize.

[in] EvtUsbDeviceEndpointsConfigure

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

[in] EvtUsbDeviceEnable

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

[in] EvtUsbDeviceDisable

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

[in] EvtUsbDeviceReset

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

[in] EvtUsbDeviceAddress

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

[in] EvtUsbDeviceUpdate

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

[in] EvtUsbDeviceHubInfo

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

[in] EvtUsbDeviceDefaultEndpointAdd

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

[in] EvtUsbDeviceEndpointAdd

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

Return value

None

Requirements

Requirement Value
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