pub struct DeviceInfo {
pub vendor_id: u16,
pub product_id: u16,
pub product_name: String,
pub manufacturer_name: Option<String>,
pub device_name: Option<String>,
pub claimed_interfaces: Vec<u8>,
pub configuration_id: Option<u8>,
pub unavailable_feedback_interfaces: Vec<u8>,
}Expand description
Identity of the USB device and the interfaces the host has claimed.
On Android the host gets the file descriptor from
UsbDeviceConnection.getFileDescriptor() after claiming the audio
interfaces with claimInterface; claimed_interfaces lists those interface
numbers. The library never claims or releases interfaces itself: it checks
that the host claimed all AudioControl and playback AudioStreaming interfaces
of the active configuration, plus only preflight-approved feedback sources.
Fields§
§vendor_id: u16§product_id: u16§product_name: StringProduct string (UsbDevice.getProductName()); used for quirk matching.
manufacturer_name: Option<String>§device_name: Option<String>Platform device name, for example /dev/bus/usb/001/004. Only used to
key the remembered original volume.
claimed_interfaces: Vec<u8>Interface numbers the host has claimed.
configuration_id: Option<u8>Active configuration identified by feedback claim preflight.
Plausible feedback sources the host could not claim.