M471M/R1/S BSP V3.01.000
The Board Support Package for M4521
Functions
hub.c File Reference

USB Host library hub class driver. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "NuMicro.h"
#include "usb.h"
#include "usbh_lib.h"
#include "hub.h"
Include dependency graph for hub.c:

Go to the source code of this file.

Functions

HIDDEN_SYMBOLS int usbh_pooling_hubs (void)
 Let USB stack polls all root hubs and downstream hubs. If there's any hub port change found, USB stack will manage the hub events in this function call. In this function, USB stack enumerates newly connected devices and remove staff of disconnected devices. User's application should periodically invoke this function. More...
 
UDEV_T * usbh_find_device (char *hub_id, int port)
 Find the device under the specified hub port. More...
 

Detailed Description

USB Host library hub class driver.

SPDX-License-Identifier: Apache-2.0

Definition in file hub.c.