EVT_UFX_DEVICE_ADDRESSED コールバック関数 (ufxclient.h)
関数コントローラーでアドレスを割り当てるクライアント ドライバーの実装。
構文
EVT_UFX_DEVICE_ADDRESSED EvtUfxDeviceAddressed;
void EvtUfxDeviceAddressed(
[in] UFXDEVICE unnamedParam1,
[in] USHORT unnamedParam2
)
{...}
パラメーター
[in] unnamedParam1
UfxDeviceCreateへの以前の呼び出しでクライアント ドライバーが受信した USB デバイス オブジェクトへのハンドル。
[in] unnamedParam2
割り当てる新しい USB デバイス アドレス。
戻り値
何一つ
備考
関数ホスト コントローラーのクライアント ドライバーは、UfxDeviceCreate メソッドを呼び出すことによって、その EVT_UFX_DEVICE_ADDRESSED 実装を USB 関数クラス拡張機能 (UFX) に登録します。
クライアント ドライバーは、UfxDeviceEventComplete メソッドを呼び出すことによって、このイベントの完了を示します。
例
EVT_UFX_DEVICE_ADDRESSED UfxDevice_EvtDeviceAddressed;
VOID
UfxDevice_EvtDeviceAddressed (
_In_ UFXDEVICE UfxDevice,
_In_ USHORT DeviceAddress
)
/*++
Routine Description:
EvtDeviceAddressed handler for the UFXDEVICE object.
Sets the Address indicated by 'DeviceAddress' on the controller.
Arguments:
UfxDevice - UFXDEVICE object representing the device.
DeviceAddress - USB Device Address, as determined by the UFX.
--*/
{
UNREFERENCED_PARAMETER(DeviceAddress);
TraceEntry();
//
// Set the device address on the controller
//
//
// #### Insert code to set the device address on controller ####
//
UfxDeviceEventComplete(UfxDevice, STATUS_SUCCESS);
TraceExit();
}
必要条件
要件 | 価値 |
---|---|
ターゲット プラットフォーム の | ウィンドウズ |
最小 KMDF バージョン | 1.0 |
UMDF の最小バージョン を する | 2.0 |
ヘッダー | ufxclient.h |
IRQL | <=DISPATCH_LEVEL |
関連項目
UfxDeviceCreate の
UfxDeviceEventComplete の