#include <usbhw.h>
U32 USB_WriteEP(
U32 EPNum, /* Endpoint number and direction */
U8 *pData, /* Pointer to data buffer */
U32 cnt); /* Number of bytes to write */
Description
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.
Return Value
The USB_WriteEP function returns the number of bytes
written to the endpoint buffer.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.