Files
CherryUSB/class/hub/usbh_hub.h

30 lines
605 B
C
Raw Normal View History

/*
* Copyright (c) 2022, sakumisu
2022-02-08 11:44:46 +08:00
*
* SPDX-License-Identifier: Apache-2.0
2022-02-08 11:44:46 +08:00
*/
#ifndef USBH_HUB_H
#define USBH_HUB_H
2022-02-08 11:44:46 +08:00
#include "usbh_core.h"
2022-02-08 11:44:46 +08:00
#include "usb_hub.h"
#define USBH_HUB_MAX_PORTS 4
/* Maximum size of an interrupt IN transfer */
#define USBH_HUB_INTIN_BUFSIZE ((USBH_HUB_MAX_PORTS + 8) >> 3)
extern usb_slist_t hub_class_head;
2022-02-08 11:44:46 +08:00
#ifdef __cplusplus
extern "C" {
#endif
void usbh_roothub_thread_wakeup(uint8_t port);
void usbh_hub_register(struct usbh_hub *hub);
void usbh_hub_unregister(struct usbh_hub *hub);
2022-02-08 11:44:46 +08:00
int usbh_hub_initialize(void);
#ifdef __cplusplus
}
#endif
#endif /* USBH_HUB_H */