hv_drv_UsbGadgetConfig.h 899 B

123456789101112131415161718192021222324252627
  1. /*
  2. * @file hv_drv_UsbGadgetConfig.h
  3. * @brief Header file of hv_drv_UsbGadgetConfig(Simplify building config descriptors).
  4. *
  5. * @author HiView SoC Software Team
  6. * @version 1.0.0
  7. * @date 2022-06-15
  8. */
  9. #ifndef __HV_DRV_USB_GADGET_CONFIG_H_
  10. #define __HV_DRV_USB_GADGET_CONFIG_H_
  11. #include "hv_drv_UsbGadgetComposite.h"
  12. #include "hv_drv_UsbDefines.h"
  13. void usb_free_all_descriptors(struct usb_function *f);
  14. int usb_assign_descriptors(struct usb_function *f,struct usb_descriptor_header **fs,struct usb_descriptor_header **hs,struct usb_descriptor_header **ss);
  15. struct usb_descriptor_header ** usb_copy_descriptors(struct usb_descriptor_header **src);
  16. int usb_gadget_config_buf(const struct usb_config_descriptor *config,void *buf,unsigned length,const struct usb_descriptor_header **desc);
  17. int usb_descriptor_fillbuf(void *buf, unsigned buflen,const struct usb_descriptor_header **src);
  18. #endif