embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

Module ccid

Module ccid 

Source
Expand description

Smart card (CCID) class.

Modules§

device
USB Chip/Smart Card Interface Device (CCID) device implementation.
host
USB Chip/Smart Card Interface Device (CCID) host support.

Structs§

SlotStatus
Decoded RDR_to_PC_SlotStatus response.

Enums§

CardState
Smart-card presence reported by a CCID slot.

Constants§

CCID_ERR_BAD_ATR
Bad ATR response from card.
CCID_ERR_CMD_NOT_SUPPORTED
Command not supported.
CCID_ERR_HW_ERROR
Hardware error.
CCID_ERR_ICC_MUTE
ICC mute / unresponsive.
CCID_ERR_NONE
No error.
CCID_ERR_SLOT_NOT_FOUND
Slot does not exist.
CCID_ERR_XFR_OVERRUN
Transfer overrun.
CCID_FUNCTIONAL_DESCRIPTOR
bDescriptorType of the CCID class-specific functional descriptor.
CCID_FUNCTIONAL_LEN
Length in bytes of the standard CCID functional descriptor (54 bytes).
CCID_ICC_NOT_PRESENT
ICC not present.
CCID_ICC_PRESENT_ACTIVE
ICC present and active.
CCID_ICC_PRESENT_INACTIVE
ICC present and inactive.
CCID_MAX_SLOT_INDEX
Offset of bMaxSlotIndex within the CCID functional descriptor.
CCID_REQ_ABORT
Abort command on control endpoint.
CCID_REQ_GET_CLOCK_FREQUENCIES
Get clock frequencies supported by the reader.
CCID_REQ_GET_DATA_RATES
Get data rates supported by the reader.
CCID_STATUS_CMD_FAILED
Command failed (see bError for reason).
CCID_STATUS_CMD_SUCCESS
Command executed without error.
CCID_STATUS_TIME_EXTENSION
Time extension requested.
HEADER_LEN
Header length of all CCID messages (10 bytes).
MAX_APDU_LEN
Maximum standard short APDU payload length.
MAX_CCID_MESSAGE_LEN
Maximum standard CCID message length (10-byte header + 261-byte APDU).
PC_TO_RDR_ABORT
Abort an ongoing transfer.
PC_TO_RDR_ESCAPE
Vendor-specific escape command.
PC_TO_RDR_GET_PARAMETERS
Get communication parameters for a slot.
PC_TO_RDR_GET_SLOT_STATUS
Query slot and card status.
PC_TO_RDR_ICC_POWER_OFF
Power off the smart card.
PC_TO_RDR_ICC_POWER_ON
Power on and reset the smart card (requests ATR).
PC_TO_RDR_RESET_PARAMETERS
Reset communication parameters for a slot to defaults.
PC_TO_RDR_SECURE
Secure PIN verification/modification.
PC_TO_RDR_SET_PARAMETERS
Set communication parameters for a slot.
PC_TO_RDR_XFR_BLOCK
Transfer an APDU block to the smart card.
RDR_TO_PC_DATA_BLOCK
Response carrying data (e.g. ATR or APDU response).
RDR_TO_PC_DATA_RATE_AND_CLOCK_FREQUENCY
Response carrying data rate and clock frequency.
RDR_TO_PC_ESCAPE
Response carrying escape data.
RDR_TO_PC_HARDWARE_ERROR
Hardware error event.
RDR_TO_PC_NOTIFY_SLOT_CHANGE
Slot status change event.
RDR_TO_PC_PARAMETERS
Response carrying communication parameters.
RDR_TO_PC_SLOT_STATUS
Response carrying slot and ICC status.
USB_CLASS_CCID
USB Class code for CCID (Integrated Circuit(s) Cards Interface Device).
USB_PROTOCOL_CCID
USB Protocol code for CCID.
USB_SUBCLASS_CCID
USB Subclass code for CCID.