USBMSDInit Function

Microchip USB Device Library

USB Device Library Help
USBMSDInit Function
C
void USBMSDInit();
Description

This routine initializes the MSD class packet handles, prepares to receive a MSD packet, and initializes the MSD state machine. This function should be called once after the device is enumerated. 

Typical Usage:

void USBCBInitEP(void)
{
    USBEnableEndpoint(MSD_DATA_IN_EP,USB_IN_ENABLED|USB_OUT_ENABLED|USB_HANDSHAKE_ENABLED|USB_DISALLOW_SETUP);
    USBMSDInit();
}
Preconditions

The device should already be enumerated with a configuration that supports MSD before calling this function. 

Paramters: None

Remarks

None

Microchip MCHPFSUSB v2.3 - Sept 20, 2008
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.