USB Library
USBGenWrite Macro
Syntax
#define USBGenWrite(ep,data,len) USBTxOnePacket(ep,data,len)
Description

This function sends the specified data out the specified endpoint and returns a handle to the transfer information. 

Typical Usage:

//make sure that the last transfer isn't busy by checking the handle
if(!USBHandleBusy(USBGenericInHandle))
{
    //Send the data contained in the INPacket[] array out on
    //  endpoint USBGEN_EP_NUM
    USBGenericInHandle = USBGenWrite(USBGEN_EP_NUM,(BYTE*)&INPacket[0],sizeof(INPacket));
}
Preconditions

None

Return Values
Return Values 
Description 
a handle for the transfer. This information should be kept to track the status of the transfer 
Remarks

None

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