Function gx_hal_usbd_ep_open

  • Defined in file__output_copyinclude_src_include_usb_gx_hal_usbd.h

Function Documentation

int gx_hal_usbd_ep_open(uint32_t handler, uint8_t ep_addr, uint16_t ep_mps, uint8_t ep_type)

Open and configure an endpoint.

参数
  • handler – usbd handle

  • ep_addr – endpoint address

  • ep_mps – endpoint max packet size

  • ep_type – endpoint type

Returns 0

success, -1: failed