USB Library
USBTxOnePacket Function
Syntax
USB_HANDLE USBTxOnePacket(
    uint8_t ep, 
    uint8_t* data, 
    uint16_t len
);
Preconditions

None

Parameters
Parameters 
Description 
uint8_t ep 
the endpoint number you want to send the data out of 
uint8_t* data 
pointer to a user buffer that contains the data that you wish to send to the host. Note: This RAM buffer must be accessible by the USB module. 
uint16_t len 
the number of bytes of data that you wish to send to the host, in the next transaction on this endpoint. Note: this value should always be less than or equal to the endpoint size, as specified in the USB endpoint descriptor. 
Return Values
Return Values 
Description 
Returns a pointer to the BDT entry associated with the transaction. The firmware can check for completion of the transaction by using the USBHandleBusy() function, using the returned USB_HANDLE value. 
Remarks

None

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