Zephyr API 3.6.99
Loading...
Searching...
No Matches
usbd_context Struct Reference

USB device support runtime context. More...

#include <usbd.h>

Data Fields

const char * name
 Name of the USB device.
 
struct k_mutex mutex
 Access mutex.
 
const struct devicedev
 Pointer to UDC device.
 
usbd_msg_cb_t msg_cb
 Notification message recipient callback.
 
struct usbd_ch9_data ch9_data
 Middle layer runtime data.
 
sys_dlist_t descriptors
 slist to manage descriptors like string, BOS
 
sys_slist_t fs_configs
 slist to manage Full-Speed device configurations
 
sys_slist_t hs_configs
 slist to manage High-Speed device configurations
 
struct usbd_status status
 Status of the USB device support.
 
void * fs_desc
 Pointer to Full-Speed device descriptor.
 
void * hs_desc
 Pointer to High-Speed device descriptor.
 

Detailed Description

USB device support runtime context.

Main structure that organizes all descriptors, configuration, and interfaces. An UDC device must be assigned to this structure.

Field Documentation

◆ ch9_data

struct usbd_ch9_data usbd_context::ch9_data

Middle layer runtime data.

◆ descriptors

sys_dlist_t usbd_context::descriptors

slist to manage descriptors like string, BOS

◆ dev

const struct device* usbd_context::dev

Pointer to UDC device.

◆ fs_configs

sys_slist_t usbd_context::fs_configs

slist to manage Full-Speed device configurations

◆ fs_desc

void* usbd_context::fs_desc

Pointer to Full-Speed device descriptor.

◆ hs_configs

sys_slist_t usbd_context::hs_configs

slist to manage High-Speed device configurations

◆ hs_desc

void* usbd_context::hs_desc

Pointer to High-Speed device descriptor.

◆ msg_cb

usbd_msg_cb_t usbd_context::msg_cb

Notification message recipient callback.

◆ mutex

struct k_mutex usbd_context::mutex

Access mutex.

◆ name

const char* usbd_context::name

Name of the USB device.

◆ status

struct usbd_status usbd_context::status

Status of the USB device support.


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