The USB_WriteEP function writes data into the endpoint buffer. When the host computer requests new data, the USB_EndPointNumber function can call USB_WriteEP to send the data. The argument EPNum contains the endpoint number (0-15) in the first 4 bits, and the direction in bit 7. Usually, the direction bit is one (1) denoting an IN endpoint. It is not required to modify this function. The USB_WriteEP function is part of the USB Device Controller Driver layer of the RL-USB Software Stack. |