#include <usbhw.h>
U32 USB_ReadEP (
U32 EPNum, /* Endpoint number and direction */
U8 *pData); /* Pointer to buffer to write to */
Description
The USB_ReadEP function reads data from the USB
controller’s endpoint buffer to the local software buffer.
When new data are available, the USB_EndPointNumber
function can call USB_ReadEP to obtain the data. The
EPNum parameter contains the endpoint number (0-15) in the
first 4 bits, and the direction in bit 7. Usually, the direction bit
is 0, denoting an OUT endpoint. pData is the pointer to the
buffer to store the data received from the endpoint.
It is not required to modify this function.
The USB_ReadEP function is part of the USB Device
Controller Driver layer of the RL-USB Software Stack.
Return Value
The USB_ReadEP function returns the number of bytes read
from the endpoint buffer.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.