pub struct Config<'d> {
pub max_slot_index: u8,
pub voltage_support: u8,
pub protocols: u32,
pub default_clock_khz: u32,
pub max_clock_khz: u32,
pub default_data_rate_bps: u32,
pub max_data_rate_bps: u32,
pub max_ifsd: u32,
pub features: u32,
pub max_message_length: u32,
pub interrupt_endpoint: Option<(u16, u8)>,
pub interface_name: Option<&'d str>,
}Expand description
Configuration for the CCID device class.
Fields§
§max_slot_index: u8Highest slot index supported (0 = 1 slot, 1 = 2 slots, etc.). Default is 0.
voltage_support: u8Voltage support bitmask (bit 0 = 5.0V, bit 1 = 3.0V, bit 2 = 1.8V). Default is 0x07 (all).
protocols: u32Supported smart card protocols bitmask (bit 0 = T=0, bit 1 = T=1). Default is 0x03 (both).
default_clock_khz: u32Default ICC clock frequency in kHz (e.g. 3580 for 3.58 MHz). Default is 3580.
max_clock_khz: u32Maximum ICC clock frequency in kHz. Default is 3580.
default_data_rate_bps: u32Default data rate in bps (e.g. 9600).
max_data_rate_bps: u32Maximum data rate in bps (e.g. 115200).
max_ifsd: u32Maximum IFSD (Information Field Size Device) for T=1 protocol. Default is 254.
features: u32CCID features bitmask. Default is 0x00010040 (Short APDU level exchange + automatic voltage selection).
max_message_length: u32Maximum CCID message length. Default is 271 (10-byte header + 261-byte APDU).
interrupt_endpoint: Option<(u16, u8)>Optional Interrupt IN endpoint configuration (max_packet_size, poll_ms).
When specified, an interrupt endpoint is allocated for RDR_to_PC_NotifySlotChange messages.
interface_name: Option<&'d str>Optional interface string description.