Function gx_hal_usbd_ep_transmit

  • Defined in file__output_copyinclude_src_include_usb_gx_hal_usbd.h

Function Documentation

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

Send an amount of data.

参数
  • handler – usbd handle

  • ep_addr – endpoint address

  • pBuf – pointer to the transmission buffer

  • len – amount of data to be sent

Returns 0

success, -1: failed