1 /** 2 ************************************************************************** 3 * @file usbh_int.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 __USBH_INT_H 27 #define __USBH_INT_H 28 29 #ifdef __cplusplus 30 extern "C" { 31 #endif 32 33 /* includes ------------------------------------------------------------------*/ 34 #include "usbh_core.h" 35 #include "usb_core.h" 36 37 /** @addtogroup USBH_drivers_int 38 * @{ 39 */ 40 41 /** @defgroup USBH_interrupt_exported_types 42 * @{ 43 */ 44 45 #ifdef USE_OTG_HOST_MODE 46 47 void usbh_irq_handler(otg_core_type *hdev); 48 void usbh_hch_handler(usbh_core_type *uhost); 49 void usbh_port_handler(usbh_core_type *uhost); 50 void usbh_disconnect_handler(usbh_core_type *uhost); 51 void usbh_hch_in_handler(usbh_core_type *uhost, uint8_t chn); 52 void usbh_hch_out_handler(usbh_core_type *uhost, uint8_t chn); 53 void usbh_rx_qlvl_handler(usbh_core_type *uhost); 54 void usbh_wakeup_handler(usbh_core_type *uhost); 55 void usbh_sof_handler(usbh_core_type *uhost); 56 void usbh_connect_callback(usbh_core_type *uhost); 57 void usbh_disconnect_callback(usbh_core_type *uhost); 58 void usbd_notify_urbchange_callback(usbh_core_type *uhost, uint8_t chnum, urb_sts_type sts); 59 60 #endif 61 62 /** 63 * @} 64 */ 65 66 /** 67 * @} 68 */ 69 70 #ifdef __cplusplus 71 } 72 #endif 73 74 #endif 75 76