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

Functions
usbh_core.c File Reference

NUC472/NUC442 MCU USB Host Library core. More...

`#include <stdio.h>`
`#include <string.h>`
`#include "NUC472_442.h"`
`#include "usbh_core.h"`
`#include "usbh_ohci.h"`
Include dependency graph for usbh_core.c:

Go to the source code of this file.

## Functions
int32_t | USBH_RegisterDriver (USB_DRIVER_T *new_driver)
| Register a device driver to USB Host Core driver. 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_GetDescriptor (USB_DEV_T *dev, uint8_t type, uint8_t index, void *buf, int size)
| Get a descriptor from device. More...
int32_t | USBH_ClearHalt (USB_DEV_T *dev, int pipe)
| Clear the halt state of an endpoint. More...
int32_t | USBH_SetInterface (USB_DEV_T *dev, char interface, char alternate)
| Set USB device interface. More...
int32_t | USBH_SetConfiguration (USB_DEV_T *dev, int configuration)
| Select USB device configuration. More...
int32_t | USBH_Open (void)
| Open USB Host controller function. More...
int32_t | USBH_Close (void)
| Disable USB Host controller function. 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...

## Detailed Description

NUC472/NUC442 MCU USB Host Library core.

Version
  V1.00

Revision
  18

Date
  15/05/22 10:44a

Note
  Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved.

Definition in file usbh_core.c.