struttura UFX_DEVICE_CALLBACKS (ufxclient.h)
La struttura UFX_DEVICE_CALLBACKS viene usata per definire le funzioni di callback degli eventi supportate dal driver client.
Sintassi
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;
Membri
Size
Dimensione della struttura UFX_DEVICE_CALLBACKS.
EvtDeviceHostConnect
Puntatore alla routine di callback del driver del client EVT_UFX_DEVICE_HOST_CONNECT.
EvtDeviceHostDisconnect
Puntatore alla routine di callback del driver del client EVT_UFX_DEVICE_HOST_DISCONNECT.
EvtDeviceAddressed
Puntatore alla routine di callback EVT_UFX_DEVICE_ADDRESSED del driver client.
EvtDeviceEndpointAdd
Puntatore alla routine di callback EVT_UFX_DEVICE_ENDPOINT_ADD del driver client.
EvtDeviceDefaultEndpointAdd
Puntatore alla routine di callback EVT_UFX_DEVICE_DEFAULT_ENDPOINT_ADD del driver client.
EvtDeviceUsbStateChange
Puntatore alla routine di callback EVT_UFX_DEVICE_USB_STATE_CHANGE del driver client.
EvtDevicePortChange
Puntatore alla routine di callback del driver del client EVT_UFX_DEVICE_PORT_CHANGE.
EvtDevicePortDetect
Puntatore alla routine di callback del driver client EVT_UFX_DEVICE_PORT_DETECT.
EvtDeviceRemoteWakeupSignal
Puntatore alla routine di callback EVT_UFX_DEVICE_REMOTE_WAKEUP_SIGNAL del driver client.
EvtDeviceControllerReset
Puntatore alla routine di callback del driver client EVT_UFX_DEVICE_CONTROLLER_RESET.
EvtDeviceTestModeSet
Puntatore alla routine di callback EVT_UFX_DEVICE_TEST_MODE_SET del driver client.
EvtDeviceTestHook
Riservato. Deve essere impostato su NULL.
EvtDeviceSuperSpeedPowerFeature
Puntatore alla routine di callback del driver del client EVT_UFX_DEVICE_SUPER_SPEED_POWER_FEATURE.
EvtDeviceProprietaryChargerDetect
Puntatore alla routine di callback del driver client EVT_UFX_DEVICE_DETECT_PROPRIETARY_CHARGER.
EvtDeviceProprietaryChargerSetProperty
Puntatore alla routine di callback EVT_UFX_DEVICE_PROPRIETARY_CHARGER_SET_PROPERTY del driver client.
EvtDeviceProprietaryChargerReset
Puntatore alla routine di callback EVT_UFX_DEVICE_PROPRIETARY_CHARGER_RESET del driver client.
Osservazioni
Il driver client userà la macro UFX_DEVICE_CALLBACKS_INIT per inizializzare la struttura UFX_DEVICE_CALLBACKS e quindi imposta i campi della struttura sulle routine di callback degli eventi appropriate prima di chiamare la funzione di esportazione UfxDeviceCreate.
Fabbisogno
Requisito | Valore |
---|---|
intestazione | ufxclient.h |