XenevaOS
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions
dwc2_usbdev.h File Reference
#include "dwc2.h"
#include "dwc2_reg.h"
#include "usb_desc.h"
Include dependency graph for dwc2_usbdev.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _dwc2_usb_dev_
 

Typedefs

typedef struct _dwc2_usb_dev_ dwc2_usb_device
 

Enumerations

enum  _transfer_stage_ { TRANSFER_SSPLT , TRANSFER_CSPLT }
 

Functions

bool dwc2_usbdev_initialize (dwc2_core_regs *regs, uint8_t port, uint8_t hub_addr, uint8_t hub_port, uint8_t speed)
 

Detailed Description

BSD 2-Clause License

Copyright (c) 2022-2026, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Typedef Documentation

◆ dwc2_usb_device

Enumeration Type Documentation

◆ _transfer_stage_

Enumerator
TRANSFER_SSPLT 
TRANSFER_CSPLT 

Function Documentation

◆ dwc2_usbdev_initialize()

bool dwc2_usbdev_initialize ( dwc2_core_regs regs,
uint8_t  port,
uint8_t  hub_addr,
uint8_t  hub_port,
uint8_t  speed 
)
extern

dwc2_usbdev_initialize – initializing usb device

Parameters
port– port number
hub_addr– hub device address
hub_port– hub's port number
speed– speed of the port

get the first device descriptor