USBCBInitEP Function

Microchip USB Device Library

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

This function is called when the device becomes initialized, which occurs after the host sends a SET_CONFIGURATION (wValue not = 0) request. This callback function should initialize the endpoints for the device's usage according to the current configuration. 

Typical Usage:

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

None

Remarks

None

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