1 /** 2 ************************************************************************** 3 * @file usb_sdr.h 4 * @brief usb 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 25 /* define to prevent recursive inclusion -------------------------------------*/ 26 #ifndef __USB_SDR_H 27 #define __USB_SDR_H 28 29 #ifdef __cplusplus 30 extern "C" { 31 #endif 32 33 /* includes ------------------------------------------------------------------*/ 34 #include "usb_core.h" 35 36 /** @addtogroup USBD_drivers_standard_request 37 * @{ 38 */ 39 40 /** @defgroup USBD_sdr_exported_functions 41 * @{ 42 */ 43 44 #ifdef USE_OTG_DEVICE_MODE 45 46 void usbd_setup_request_parse(usb_setup_type *setup, uint8_t *buf); 47 usb_sts_type usbd_device_request(usbd_core_type *udev); 48 usb_sts_type usbd_interface_request(usbd_core_type *udev); 49 usb_sts_type usbd_endpoint_request(usbd_core_type *udev); 50 51 #endif 52 53 /** 54 * @} 55 */ 56 57 /** 58 * @} 59 */ 60 61 #ifdef __cplusplus 62 } 63 #endif 64 65 #endif 66