NUC472_NUC442_BSP V3.03.004
The Board Support Package for NUC472/NUC442
Functions
lw_usbh.c File Reference

Light-Weight USB Host driver. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "NUC472_442.h"
#include "usb.h"
#include "lw_usbh.h"
Include dependency graph for lw_usbh.c:

Go to the source code of this file.

Functions

int usbh_drv_ctrl_req (uint8_t requesttype, uint8_t request, uint16_t value, uint16_t index, uint16_t length, int data_len, uint8_t *buffer, int dir)
 Execute a control transfer request. More...
 
int usbh_drv_bulk_xfer (uint16_t ep_addr, uint8_t *toggle, uint8_t *data_buff, int data_len, int timeout)
 Execute a control transfer request. More...
 
int usbh_get_device_descriptor (uint8_t *desc_buff)
 Get device descriptor from the USB device. More...
 
int get_config_descriptor (uint8_t *desc_buff)
 Get configuration descriptor from the USB device. More...
 
int usbh_set_configuration (int conf_val)
 Issue a standard request SET_CONFIGURATION to USB device. More...
 
int usbh_clear_halt (uint16_t ep_addr)
 Issue a standard request SET_FEATURE to clear USB device endpoint halt state. More...
 
int usbh_probe_port (uint32_t port)
 Probe USB root-hub port connect/disconnect status. A newly connected device will be initialized in this function. More...
 
int usbh_init (void)
 Initialized USB host controller driver. More...
 

Detailed Description

Light-Weight USB Host driver.

Version
V1.00
Revision
5
Date
14/10/07 5:47p
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.

Definition in file lw_usbh.c.