embassy-usb-host

Crates

git

Versions

default

Flavors

Skip to main content

find_ccid

Function find_ccid 

Source
pub fn find_ccid(config_desc: &[u8]) -> Option<CcidInfo>
Expand description

Find the first CCID interface with bulk IN and OUT endpoints.

An interface qualifies either by declaring class [USB_CLASS_CCID], or by carrying a CCID functional descriptor. The latter matters because readers are commonly shipped under the vendor-specific class while speaking standard CCID.