Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
USB device core API

Data Structures

struct  usbd_msg
 USB device message. More...
 

Enumerations

enum  usbd_msg_type {
  USBD_MSG_VBUS_READY , USBD_MSG_VBUS_REMOVED , USBD_MSG_RESUME , USBD_MSG_SUSPEND ,
  USBD_MSG_RESET , USBD_MSG_CONFIGURATION , USBD_MSG_UDC_ERROR , USBD_MSG_STACK_ERROR ,
  USBD_MSG_CDC_ACM_LINE_CODING , USBD_MSG_CDC_ACM_CONTROL_LINE_STATE , USBD_MSG_MAX_NUMBER
}
 USB device support message types. More...
 

Functions

static const char * usbd_msg_type_string (const enum usbd_msg_type type)
 Returns the message type as a constant string.
 

Detailed Description

Enumeration Type Documentation

◆ usbd_msg_type

#include <zephyr/usb/usbd_msg.h>

USB device support message types.

The first set of message types map to event types from the UDC driver API.

Enumerator
USBD_MSG_VBUS_READY 

VBUS ready message (optional)

USBD_MSG_VBUS_REMOVED 

VBUS removed message (optional)

USBD_MSG_RESUME 

Device resume message.

USBD_MSG_SUSPEND 

Device suspended message.

USBD_MSG_RESET 

Bus reset detected.

USBD_MSG_CONFIGURATION 

Device changed configuration.

USBD_MSG_UDC_ERROR 

Non-correctable UDC error message

USBD_MSG_STACK_ERROR 

Unrecoverable device stack error message

USBD_MSG_CDC_ACM_LINE_CODING 

CDC ACM Line Coding update.

USBD_MSG_CDC_ACM_CONTROL_LINE_STATE 

CDC ACM Line State update.

USBD_MSG_MAX_NUMBER 

Maximum number of message types.

Function Documentation

◆ usbd_msg_type_string()

static const char * usbd_msg_type_string ( const enum usbd_msg_type type)
inlinestatic

#include <zephyr/usb/usbd_msg.h>

Returns the message type as a constant string.

Parameters
[in]typeUSBD message type
Returns
Message type as a constant string