Loading...
Searching...
No Matches
usbus Struct Reference

USBUS context struct. More...

Detailed Description

USBUS context struct.

Definition at line 448 of file usbus.h.

#include <usbus.h>

Data Fields

usbus_string_t manuf
 Manufacturer string

 
usbus_string_t product
 Product string

 
usbus_string_t config
 Configuration string

 
usbus_string_t serial
 serial string

 
usbus_endpoint_t ep_out [USBDEV_NUM_ENDPOINTS]
 USBUS OUT endpoints

 
usbus_endpoint_t ep_in [USBDEV_NUM_ENDPOINTS]
 USBUS IN endpoints

 
event_queue_t queue
 Event queue

 
usbdev_tdev
 usb phy device of the usb manager

 
usbus_handler_tcontrol
 Ptr to the control endpoint handler

 
usbus_descr_gen_tdescr_gen
 Linked list of top level descriptor generators

 
usbus_string_tstrings
 List of descriptor strings

 
usbus_interface_tiface
 List of USB interfaces

 
usbus_handler_thandlers
 List of event callback handlers

 
uint32_t ep_events
 bitflags with endpoint event state

 
kernel_pid_t pid
 PID of the usb manager's thread

 
uint16_t str_idx
 Number of strings registered

 
usbus_state_t state
 Current state

 
usbus_state_t pstate
 state to recover to from suspend

 
uint8_t addr
 Address of the USB peripheral

 
bool wakeup_enabled
 Remote wakeup device feature status

 
char serial_str [2 *CONFIG_USB_SERIAL_BYTE_LENGTH+1]
 Hex representation of the device serial number.
 

Field Documentation

◆ addr

uint8_t usbus::addr

Address of the USB peripheral

Definition at line 468 of file usbus.h.

◆ config

usbus_string_t usbus::config

Configuration string

Definition at line 451 of file usbus.h.

◆ control

usbus_handler_t* usbus::control

Ptr to the control endpoint handler

Definition at line 457 of file usbus.h.

◆ descr_gen

usbus_descr_gen_t* usbus::descr_gen

Linked list of top level descriptor generators

Definition at line 458 of file usbus.h.

◆ dev

usbdev_t* usbus::dev

usb phy device of the usb manager

Definition at line 456 of file usbus.h.

◆ ep_events

uint32_t usbus::ep_events

bitflags with endpoint event state

Definition at line 463 of file usbus.h.

◆ ep_in

USBUS IN endpoints

Definition at line 454 of file usbus.h.

◆ ep_out

USBUS OUT endpoints

Definition at line 453 of file usbus.h.

◆ handlers

usbus_handler_t* usbus::handlers

List of event callback handlers

Definition at line 462 of file usbus.h.

◆ iface

usbus_interface_t* usbus::iface

List of USB interfaces

Definition at line 461 of file usbus.h.

◆ manuf

usbus_string_t usbus::manuf

Manufacturer string

Definition at line 449 of file usbus.h.

◆ pid

kernel_pid_t usbus::pid

PID of the usb manager's thread

Definition at line 464 of file usbus.h.

◆ product

usbus_string_t usbus::product

Product string

Definition at line 450 of file usbus.h.

◆ pstate

usbus_state_t usbus::pstate

state to recover to from suspend

Definition at line 467 of file usbus.h.

◆ queue

event_queue_t usbus::queue

Event queue

Definition at line 455 of file usbus.h.

◆ serial

usbus_string_t usbus::serial

serial string

Definition at line 452 of file usbus.h.

◆ serial_str

char usbus::serial_str[2 *CONFIG_USB_SERIAL_BYTE_LENGTH+1]

Hex representation of the device serial number.

Definition at line 474 of file usbus.h.

◆ state

usbus_state_t usbus::state

Current state

Definition at line 466 of file usbus.h.

◆ str_idx

uint16_t usbus::str_idx

Number of strings registered

Definition at line 465 of file usbus.h.

◆ strings

usbus_string_t* usbus::strings

List of descriptor strings

Definition at line 460 of file usbus.h.

◆ wakeup_enabled

bool usbus::wakeup_enabled

Remote wakeup device feature status

Definition at line 469 of file usbus.h.


The documentation for this struct was generated from the following file: