usbd_sdr.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. **************************************************************************
  3. * @file usbd_sdr.h
  4. * @brief usb standard request header file
  5. **************************************************************************
  6. * Copyright notice & Disclaimer
  7. *
  8. * The software Board Support Package (BSP) that is made available to
  9. * download from Artery official website is the copyrighted work of Artery.
  10. * Artery authorizes customers to use, copy, and distribute the BSP
  11. * software and its related documentation for the purpose of design and
  12. * development in conjunction with Artery microcontrollers. Use of the
  13. * software is governed by this copyright notice and the following disclaimer.
  14. *
  15. * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
  16. * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS,
  17. * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR
  18. * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS,
  19. * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
  20. * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
  21. *
  22. **************************************************************************
  23. */
  24. /* define to prevent recursive inclusion -------------------------------------*/
  25. #ifndef __USBD_SDR_H
  26. #define __USBD_SDR_H
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. /* includes ------------------------------------------------------------------*/
  31. #include "usbd_core.h"
  32. /** @addtogroup USBD_drivers_standard_request
  33. * @{
  34. */
  35. /** @defgroup USBD_sdr_exported_functions
  36. * @{
  37. */
  38. #ifdef BSP_USING_USBD
  39. void usbd_setup_request_parse(usb_setup_type *setup, uint8_t *buf);
  40. usb_sts_type usbd_device_request(usbd_core_type *udev);
  41. usb_sts_type usbd_interface_request(usbd_core_type *udev);
  42. usb_sts_type usbd_endpoint_request(usbd_core_type *udev);
  43. #endif
  44. /**
  45. * @}
  46. */
  47. /**
  48. * @}
  49. */
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif