1 /*
2  * Copyright (c) 2022, sakumisu
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #ifndef USBH_HUB_H
7 #define USBH_HUB_H
8 
9 #include "usb_hub.h"
10 
11 struct usbh_hub;
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 int usbh_hub_set_feature(struct usbh_hub *hub, uint8_t port, uint8_t feature);
18 int usbh_hub_clear_feature(struct usbh_hub *hub, uint8_t port, uint8_t feature);
19 
20 void usbh_hub_thread_wakeup(struct usbh_hub *hub);
21 
22 int usbh_hub_initialize(struct usbh_bus *bus);
23 int usbh_hub_deinitialize(struct usbh_bus *bus);
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif /* USBH_HUB_H */
30