Share via


UsbDbgPdd_DeInit (Compact 2013)

10/16/2014

Implement this function to disconnect the device from the USB bus.

Syntax

extern "C" void UsbDbgPdd_DeInit( )

Parameters

None.

Return Value

None.

Remarks

This function is called by the model device driver (MDD) when the kernel independent transport layer (KITL) or download engine (DLE) call the pfnDeInit function.

Example

The following example shows a typical implementation of the UsbDbgPdd_DeInit function.

Important

For readability, the following code example does not contain security checking or error handling. Do not use the following code in a production environment.

extern "C" void UsbDbgPdd_DeInit( )
{
    USBFN_PDD *pPdd = (USBFN_PDD *)&usbfn_pdd;
    CSP_USB_REGS* pUSBDRegs = pPdd->pUSBDRegs;

    USBDBGMSG(USBDBG_ZONE_FUNC, (L"usbdbgpdd: +UsbDbgPdd_DeInit\r\n"));

    // Disconnect hardware
    USBControllerRun( pUSBDRegs, FALSE);

    USBDBGMSG(USBDBG_ZONE_FUNC, (L"usbdbgpdd: -UsbDbgPdd_DeInit\r\n"));
}

Requirements

Header

UsbDbgDdsi.h

See Also

Reference

USBDBG PDD Functions
USBDBGMSG