structure UFX_DEVICE_CALLBACKS (ufxclient.h)

La structure UFX_DEVICE_CALLBACKS est utilisée pour définir les fonctions de rappel d’événement prises en charge par le pilote client.

Syntaxe

typedef struct _UFX_DEVICE_CALLBACKS {
  ULONG                                           Size;
  PFN_UFX_DEVICE_HOST_CONNECT                     EvtDeviceHostConnect;
  PFN_UFX_DEVICE_HOST_DISCONNECT                  EvtDeviceHostDisconnect;
  PFN_UFX_DEVICE_ADDRESSED                        EvtDeviceAddressed;
  PFN_UFX_DEVICE_ENDPOINT_ADD                     EvtDeviceEndpointAdd;
  PFN_UFX_DEVICE_DEFAULT_ENDPOINT_ADD             EvtDeviceDefaultEndpointAdd;
  PFN_UFX_DEVICE_USB_STATE_CHANGE                 EvtDeviceUsbStateChange;
  PFN_UFX_DEVICE_PORT_CHANGE                      EvtDevicePortChange;
  PFN_UFX_DEVICE_PORT_DETECT                      EvtDevicePortDetect;
  PFN_UFX_DEVICE_REMOTE_WAKEUP_SIGNAL             EvtDeviceRemoteWakeupSignal;
  PFN_UFX_DEVICE_CONTROLLER_RESET                 EvtDeviceControllerReset;
  PFN_UFX_DEVICE_TEST_MODE_SET                    EvtDeviceTestModeSet;
  PFN_UFX_DEVICE_TESTHOOK                         EvtDeviceTestHook;
  PFN_UFX_DEVICE_SUPER_SPEED_POWER_FEATURE        EvtDeviceSuperSpeedPowerFeature;
  PFN_UFX_DEVICE_PROPRIETARY_CHARGER_DETECT       EvtDeviceProprietaryChargerDetect;
  PFN_UFX_DEVICE_PROPRIETARY_CHARGER_SET_PROPERTY EvtDeviceProprietaryChargerSetProperty;
  PFN_UFX_DEVICE_PROPRIETARY_CHARGER_RESET        EvtDeviceProprietaryChargerReset;
} UFX_DEVICE_CALLBACKS, *PUFX_DEVICE_CALLBACKS;

Membres

Size

Taille de la structure UFX_DEVICE_CALLBACKS .

EvtDeviceHostConnect

Pointeur vers la routine de rappel EVT_UFX_DEVICE_HOST_CONNECT du pilote client.

EvtDeviceHostDisconnect

Pointeur vers la routine de rappel EVT_UFX_DEVICE_HOST_DISCONNECT du pilote client.

EvtDeviceAddressed

Pointeur vers la routine de rappel EVT_UFX_DEVICE_ADDRESSED du pilote client.

EvtDeviceEndpointAdd

Pointeur vers la routine de rappel EVT_UFX_DEVICE_ENDPOINT_ADD du pilote client.

EvtDeviceDefaultEndpointAdd

Pointeur vers la routine de rappel EVT_UFX_DEVICE_DEFAULT_ENDPOINT_ADD du pilote client.

EvtDeviceUsbStateChange

Pointeur vers la routine de rappel EVT_UFX_DEVICE_USB_STATE_CHANGE du pilote client.

EvtDevicePortChange

Pointeur vers la routine de rappel EVT_UFX_DEVICE_PORT_CHANGE du pilote client.

EvtDevicePortDetect

Pointeur vers la routine de rappel EVT_UFX_DEVICE_PORT_DETECT du pilote client.

EvtDeviceRemoteWakeupSignal

Pointeur vers la routine de rappel EVT_UFX_DEVICE_REMOTE_WAKEUP_SIGNAL du pilote client.

EvtDeviceControllerReset

Pointeur vers la routine de rappel EVT_UFX_DEVICE_CONTROLLER_RESET du pilote client.

EvtDeviceTestModeSet

Pointeur vers la routine de rappel EVT_UFX_DEVICE_TEST_MODE_SET du pilote client.

EvtDeviceTestHook

Réservé. Doit avoir la valeur NULL.

EvtDeviceSuperSpeedPowerFeature

Pointeur vers la routine de rappel EVT_UFX_DEVICE_SUPER_SPEED_POWER_FEATURE du pilote client.

EvtDeviceProprietaryChargerDetect

Pointeur vers la routine de rappel EVT_UFX_DEVICE_DETECT_PROPRIETARY_CHARGER du pilote client.

EvtDeviceProprietaryChargerSetProperty

Pointeur vers la routine de rappel EVT_UFX_DEVICE_PROPRIETARY_CHARGER_SET_PROPERTY du pilote client.

EvtDeviceProprietaryChargerReset

Pointeur vers la routine de rappel EVT_UFX_DEVICE_PROPRIETARY_CHARGER_RESET du pilote client.

Remarques

Le pilote client doit utiliser la macro UFX_DEVICE_CALLBACKS_INIT pour initialiser la structure UFX_DEVICE_CALLBACKS , puis définir les champs de structure sur les routines de rappel d’événements appropriées avant d’appeler la fonction d’exportation UfxDeviceCreate .

Configuration requise

Condition requise Valeur
En-tête ufxclient.h