User manual
mikroC PRO for dsPIC
MikroElektronika
667
Gen_Write
Prototype
char Gen_Write(char* writebuff, char length, char ep);
Description Sends the specied data to the specied endpoint.
Parameters
- writebuff: The data that you want to send.
- length: the length of the data that you wish to send.
- ep: Endpoint number you want to send the data into.
Returns Returns the number of transmitted bytes, otherwise 0.
Requires USB needs to be enabled before using this function. See HID_Enable.
Example
while(Gen_Write(writebuff,64,1)==0)
;
Notes None.