USB Library
USBEnableEndpoint Function
Syntax
void USBEnableEndpoint(
    uint8_t ep, 
    uint8_t options
);
Description

This function will enable the specified endpoint with the specified options. 

Typical Usage:

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

 

In the above example endpoint number MSD_DATA_IN_EP is being configured for both IN and OUT traffic with handshaking enabled. Also since MSD_DATA_IN_EP is not endpoint 0 (MSD does not allow this), then we can explicitly disable SETUP packets on this endpoint.

Preconditions

None

Returns

None

Remarks

None

MLA - USB Library Help Version : 2.16
http://www.microchip.com/mla