M480 BSP V3.05.005
The Board Support Package for M480 Series
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"

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.

Version
V1.10

SPDX-License-Identifier: Apache-2.0

Definition in file hub.c.