Function gx_hal_usbd_ep_receive

  • Defined in file__output_copyinclude_src_include_usb_gx_hal_usbd.h

Function Documentation

int gx_hal_usbd_ep_receive(uint32_t handler, uint8_t ep_addr, uint8_t *pBuf, uint32_t len)

Receive an amount of data.

参数
  • handler – usbd handle

  • ep_addr – endpoint address

  • pBuf – pointer to the reception buffer

  • len – amount of data to be received

Returns 0

success, -1: failed