| NUC472_NUC442_BSP V3.03.003 The Board Support Package for NUC472/NUC442

Data Structures | Typedefs | Functions | Variables
usbh_core.h File Reference

USB Host core driver header file. More...

`#include "usbh_config.h"`
`#include "usbh_list.h"`
`#include "usbh_err_code.h"`
Include dependency graph for usbh_core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures
struct | iso_pkt_t
struct | urb_t
struct | usb_device

## Typedefs
typedef HIDDEN_SYMBOLS struct iso_pkt_t | ISO_PACKET_DESCRIPTOR_T
typedef struct urb_t | URB_T
typedef HIDDEN_SYMBOLS struct usb_device | USB_DEV_T

## Functions
struct | __attribute__ ((__packed__))
int32_t | USBH_Open (void)
| Open USB Host controller function. More...
int | USBH_ProcessHubEvents ()
| Processed USB hub device events. User application must invoke this routine in the main while loop. Device enumeration is done in this routine. More...
URB_T * | USBH_AllocUrb ()
| Allocate an URB from USB Core driver internal URB pool. More...
void | USBH_FreeUrb (URB_T *urb)
| Free the URB allocated from USBH_AllocUrb() More...
int32_t | USBH_SubmitUrb (URB_T *urb)
| Submit an URB to USB core for transfer data. More...
int32_t | USBH_UnlinkUrb (URB_T *urb)
| Cancel an URB which has been submit to USB core. More...
int32_t | USBH_SendCtrlMsg (USB_DEV_T *dev, uint32_t pipe, uint8_t request, uint8_t requesttype, uint16_t value, uint16_t index, void *data, uint16_t size, int timeout)
| Execute a control transfer. More...
int32_t | USBH_SendBulkMsg (USB_DEV_T *usb_dev, uint32_t pipe, void *data, int len, int *actual_length, int timeout)
| Execute a bulk transfer. More...
int32_t | USBH_RegisterDriver (USB_DRIVER_T *new_driver)
| Register a device driver to USB Host Core driver. More...
int32_t | USBH_GetDescriptor (USB_DEV_T *dev, uint8_t type, uint8_t index, void *buf, int size)
| Get a descriptor from device. More...
int32_t | USBH_SetConfiguration (USB_DEV_T *dev, int configuration)
| Select USB device configuration. More...
int32_t | USBH_SetInterface (USB_DEV_T *dev, char interface, char alternate)
| Set USB device interface. More...
int32_t | USBH_ClearHalt (USB_DEV_T *dev, int pipe)
| Clear the halt state of an endpoint. More...
int32_t | USBH_Suspend (void)
| Suspend USB Host Controller and devices. More...
int32_t | USBH_Resume (void)
| Resume USB Host controller and devices. More...
int32_t | USBH_Close (void)
| Disable USB Host controller function. More...

## Variables
| DEV_REQ_T
| USB_DEV_DESC_T
| USB_EP_DESC_T
| USB_IF_DESC_T
| USB_CONFIG_DESC_T

## Detailed Description

USB Host core driver header file.

Version
  V1.00 $Revision 2 $

Date
  14/10/31 10:33a

Note
  SPDX-License-Identifier: Apache-2.0 Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved.

Definition in file usbh_core.h.