ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::usb_audio::USBAudioEvent Struct Reference

Posted to the main loop, by the USB driver task (CONNECTED, DISCONNECTED) or the hub's worker (the results). More...

#include <usb_audio.h>

Public Types

enum class  Type : uint8_t {
  CONNECTED , DISCONNECTED , OPENED , STARTED ,
  RESUMED , CLOSED
}
 

Data Fields

uac_host_device_handle_t handle {nullptr}
 
uint8_t addr {0}
 
uint8_t iface_num {0}
 
uint8_t seq {0}
 
Type type {Type::CONNECTED}
 
Endpoint endpoint {Endpoint::SPEAKER}
 
bool ok {false}
 
bool rejected {false}
 

Detailed Description

Posted to the main loop, by the USB driver task (CONNECTED, DISCONNECTED) or the hub's worker (the results).

Definition at line 59 of file usb_audio.h.

Member Enumeration Documentation

◆ Type

enum class esphome::usb_audio::USBAudioEvent::Type : uint8_t
strong
Enumerator
CONNECTED 
DISCONNECTED 
OPENED 
STARTED 
RESUMED 
CLOSED 

Definition at line 60 of file usb_audio.h.

Field Documentation

◆ addr

uint8_t esphome::usb_audio::USBAudioEvent::addr {0}

Definition at line 71 of file usb_audio.h.

◆ endpoint

Endpoint esphome::usb_audio::USBAudioEvent::endpoint {Endpoint::SPEAKER}

Definition at line 76 of file usb_audio.h.

◆ handle

uac_host_device_handle_t esphome::usb_audio::USBAudioEvent::handle {nullptr}

Definition at line 70 of file usb_audio.h.

◆ iface_num

uint8_t esphome::usb_audio::USBAudioEvent::iface_num {0}

Definition at line 72 of file usb_audio.h.

◆ ok

bool esphome::usb_audio::USBAudioEvent::ok {false}

Definition at line 77 of file usb_audio.h.

◆ rejected

bool esphome::usb_audio::USBAudioEvent::rejected {false}

Definition at line 80 of file usb_audio.h.

◆ seq

uint8_t esphome::usb_audio::USBAudioEvent::seq {0}

Definition at line 74 of file usb_audio.h.

◆ type

Type esphome::usb_audio::USBAudioEvent::type {Type::CONNECTED}

Definition at line 75 of file usb_audio.h.


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