1 /* 2 * Copyright (c) 2022, sakumisu 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef USBH_MTP_H 7 #define USBH_MTP_H 8 9 #include "usb_mtp.h" 10 11 struct usbh_mtp { 12 struct usbh_hubport *hport; 13 14 uint8_t intf; /* interface number */ 15 usbh_pipe_t bulkin; /* BULK IN endpoint */ 16 usbh_pipe_t bulkout; /* BULK OUT endpoint */ 17 #ifdef CONFIG_USBHOST_MTP_NOTIFY 18 usbh_pipe_t intin; /* Interrupt IN endpoint (optional) */ 19 #endif 20 }; 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 #endif /* USBH_MTP_H */ 31