Configure endpoint with buffer to receive data.
Every device driver’s usbd_drv.c
static CPU_INT32U USBD_DrvEP_RxStart (USBD_DRV *p_drv, CPU_INT08U ep_addr, CPU_INT08U *p_buf, CPU_INT32U buf_len, USBD_ERR *p_err); |
p_drv
Pointer to USB device driver structure.
ep_addr
Endpoint address.
p_buf
Pointer to data buffer.
buf_len
Length of the buffer.
p_err
Pointer to variable that will receive the return error code from this function.
Maximum number of octets that will be received, if NO error(s).
0, otherwise.
USB device core layer.
buf_len
).