|
ESPHome 2026.11.0-dev
|
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} |
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.
|
strong |
| Enumerator | |
|---|---|
| CONNECTED | |
| DISCONNECTED | |
| OPENED | |
| STARTED | |
| RESUMED | |
| CLOSED | |
Definition at line 60 of file usb_audio.h.
| uint8_t esphome::usb_audio::USBAudioEvent::addr {0} |
Definition at line 71 of file usb_audio.h.
| Endpoint esphome::usb_audio::USBAudioEvent::endpoint {Endpoint::SPEAKER} |
Definition at line 76 of file usb_audio.h.
| uac_host_device_handle_t esphome::usb_audio::USBAudioEvent::handle {nullptr} |
Definition at line 70 of file usb_audio.h.
| uint8_t esphome::usb_audio::USBAudioEvent::iface_num {0} |
Definition at line 72 of file usb_audio.h.
| bool esphome::usb_audio::USBAudioEvent::ok {false} |
Definition at line 77 of file usb_audio.h.
| bool esphome::usb_audio::USBAudioEvent::rejected {false} |
Definition at line 80 of file usb_audio.h.
| uint8_t esphome::usb_audio::USBAudioEvent::seq {0} |
Definition at line 74 of file usb_audio.h.
| Type esphome::usb_audio::USBAudioEvent::type {Type::CONNECTED} |
Definition at line 75 of file usb_audio.h.