__attribute__
Default mainpageat91libusbcommoncdc__attribute__
Description Public Protected Private Related All Inheritance Collaboration
__attribute__
Read/write error recovery mode page
 
Struct Attributes Table
Public ( Name ) Type Description
 abData unsigned char
Data block sent to the CCID.
 abPINApdu unsigned char
Byte array APDU to send to the ICC
 abstractControlManagement CDCAbstractControlManagementDescriptor
CDC abstract control management functional descriptor.
 APDU unsigned char
Application Protocol Data Unit.
 bAdditionalLength unsigned char
Length of remaining INQUIRY data.
 bAllocationLength unsigned char
Host buffer allocated size.
 bAlternateSetting unsigned char
Value to select this alternate interface setting.
 bBlockDescriptorLength unsigned char
Length of all block descriptors.
 bcdCCID unsigned short
Integrated Circuit(s) Cards Interface Devices (CCID) Specification Release Number.
 bcdCDC unsigned short
USB CDC specification release number.
 bcdDevice unsigned short
Device release number in BCD format.
 bcdHID unsigned short
HID class specification release number in BCD format.
 bcdUSB unsigned short
USB specification release number (in BCD format).
 bCharFormat char
Number of stop bits.
 bClassEnvelope unsigned char
Significant only for CCID that offers an extended APDU level for exchanges.
 bClassGetResponse unsigned char
Significant only for CCID that offers an APDU level for exchanges.
 bClockStop unsigned char
ICC Clock Stop Support 00 = Stopping the Clock is not allowed 01 = Stop with Clock signal Low 02 = Stop with Clock signal High 03 = Stop with Clock either High or Low
 bConfigurationValue unsigned char
Value for selecting this configuration.
 bConfirmPIN unsigned char
00h,01h,02h,03h Indicates if a confirmation is requested before acceptance of a new PIN (meaning that the user has to enter this new PIN twice before it is accepted) Indicates if the current PIN must be entered and set in the same APDU field of not.
 bControl unsigned char
0x00
 bCountryCode unsigned char
Country code of the device if it is localized.
 bDataBits char
Number of data bits (5, 6, 7, 8 or 16).
 bDataInterface unsigned char
Interface number of the data class interface used for call management (optional).
 bDescriptorSubtype unsigned char
Descriptor subtype (CDCDescriptors_UNION).
 bDescriptorType unsigned char
Functional Descriptor type
 bDescriptorType0 unsigned char
Type of the first subordinate descriptor.
 bDeviceClass unsigned char
Device class code.
 bDeviceProtocol unsigned char
Device protocol code.
 bDeviceSubClass unsigned char
Device subclass code.
 bEndpointAddress unsigned char
Address and direction of the endpoint.
 bEntryValidationCondition unsigned char
The value is a bit wise OR operation.
 bError unsigned char
Slot error.
 bFunctionLength unsigned char
Size of the descriptor in bytes.
 bGroupNumber unsigned char
Information grouping.
 bGuardTimeT0 unsigned char
Extra Guardtime between two characters.
 bGuardTimeT1 unsigned char
Extra Guardtime (0 to 254 etu between two characters).
 bIFSC unsigned char
Size of negotiated IFSC.
 bInsertionOffsetNew unsigned char
Insertion position offset in byte for the new PIN.
 bInsertionOffsetOld unsigned char
Insertion position offset in byte for the current PIN.
 bInterfaceClass unsigned char
Interface class code.
 bInterfaceNumber unsigned char
Number of the interface in its configuration.
 bInterfaceProtocol unsigned char
Interface protocol code.
 bInterfaceSubClass unsigned char
Interface subclass code.
 bInterval unsigned char
Polling rate of the endpoint.
 bLength unsigned char
Size of this descriptor, in bytes.
 bMasterInterface unsigned char
Number of the master interface for this union.
 bmAttributes unsigned char
Endpoint type and additional characteristics (for isochronous endpoints).
 bMaxCCIDBusySlots unsigned char
Maximum number of slots which can be simultaneously busy.
 bMaxPacketSize0 unsigned char
Maximum packet size of endpoint 0.
 bMaxPower unsigned char
Maximum power consumption of the device when in this configuration.
 bMaxSlotIndex unsigned char
Index of the highest available slot.
 bmCapabilities unsigned char
Configuration capabilities ("CDC CallManagement Capabilities").
 bMediumType unsigned char
Type of medium (SBC_MEDIUM_TYPE_DIRECT_ACCESS_BLOCK_DEVICE).
 bmFindexDindex unsigned char
B7-4 – FI – Index into the table 7 in ISO/IEC 7816-3:1997 selecting a clock rate conversion factor B3-0 – DI - Index into the table 8 in ISO/IEC 7816-3:1997 selecting a baud rate conversion factor
 bmFormatString unsigned char
Several parameters for the PIN format options.
 bmFormatString4 unsigned char
Several parameters for the PIN format options (defined in § 6.1.11.4).
 bmModifierKeys unsigned char
State of modifier keys.
 bModeDataLength unsigned char
Length of mode data to follow.
 bmPINBlockString unsigned char
Define the length of the PIN to present in the APDU command
 bmPinLengthFormat unsigned char
Allows the length PIN insertion in the APDU command (defined in § 6.1.11.6).
 bmPINLengthFormat unsigned char
Allows the length PIN insertion in the APDU command.
 bMRIE unsigned char
Method of reporting informational exceptions.
 bMsgIndex unsigned char
Message index in the Reader message table.
 bMsgIndex1 unsigned char
Message index in the Reader message table (should be 00h or 01h).
 bMsgIndex2 unsigned char
Message index in the Reader message table (should be 01h or 02h).
 bMsgIndex3 unsigned char
Message index in the Reader message table (should be 02h).
 bmTCCKST0 unsigned char
For T=0 ,B0 – 0b, B7-2 – 000000b B1 – Convention used (b1=0 for direct, b1=1 for inverse).
 bmTCCKST1 unsigned char
For T=1, B7-2 – 000100b B0 – Checksum type (b0=0 for LRC, b0=1 for CRC B1 – Convention used (b1=0 for direct, b1=1 for inverse).
 bmWaitingIntegersT1 unsigned char
B7-4 = BWI B3-0 = CWI.
 bNadValue unsigned char
Nad value used by CCID.
 bNumberMessage unsigned char
00h,01h,02h,03h,or FFh Number of messages to display for the PIN modify command.
 bNumClockSupported unsigned char
The number of clock frequencies that are supported by the CCID.
 bNumConfigurations unsigned char
Number of possible configurations for the device.
 bNumDataRatesSupported unsigned char
The number of data rates that are supported by the CCID.
 bNumDescriptors unsigned char
Number of subordinate descriptors.
 bNumEndpoints unsigned char
Number of endpoints used by the inteface (excluding endpoint 0).
 bNumInterfaces unsigned char
Number of interfaces in this configuration.
 bObsolete1 unsigned char
Obsolete bit
 bObsolete2 unsigned char
Obsolete bit.
 bObsolete3 unsigned char
Obsolete bits.
 bOperationCode unsigned char
0x1A : SBC_MODE_SENSE_6
 bPageCode unsigned char
0x01 : SBC_PAGE_READ_WRITE_ERROR_RECOVERY
 bPageLength unsigned char
Length of page data (0x0A)
 bParityType char
Type of parity checking used.
 bPC unsigned char
Type of parameter values to return.
 bPeripheralDeviceType unsigned char
Peripheral device type.
 bPeripheralQualifier unsigned char
Peripheral qualifier.
 bPINSupport unsigned char
This value indicates what PIN support features the CCID has.
 bPrevent unsigned char
Accept/prohibit removal.
 bRdProtect unsigned char
Protection information to send.
 bReadRetryCount unsigned char
Number of retries when reading.
 bReserved unsigned char
Reserved.
 bReserved1 unsigned char
Reserved byte
 bReserved2 unsigned char
Reserved byte
 bReserved3 unsigned char
Reserved bits.
 bResponseDataFormat unsigned char
Must be 0x2.
 bSeq unsigned char
Sequence number for command.
 bSlaveInterface0 unsigned char
Number of the first slave interface for this union.
 bSlot unsigned char
Identifies the slot number for this command
 bSpecific unsigned char
specific register
 bSpecific_0 unsigned char
specific register
 bStatus unsigned char
Slot status register.
 bSubpageCode unsigned char
Mode subpage to return.
 bTeoPrologue unsigned char
T=1 I-block prologue field to use. Significant only if protocol in use is T=1.
 bTimeOut unsigned char
Number of seconds. If 00h then CCID default value is used.
 bTimerOut unsigned char
Number of seconds.
 bTPGS unsigned char
Target port support group.
 bulkIn USBEndpointDescriptor
Bulk-in endpoint descriptor.
 bulkOut USBEndpointDescriptor
Bulk-out endpoint descriptor.
 bUnused1 unsigned char
Unused feature.
 bUnused2 unsigned char
Unused features.
 bUnused3 unsigned char
Unused features.
 bVersion unsigned char
SPC version used.
 bVoltageSupport unsigned char
This value indicates what voltages the CCID can supply to its slots.
 bWaitingIntegerT0 unsigned char
WI for T=0 used to define WWT.
 bWriteRetryCount unsigned char
Number of retries when writing.
 bX signed char
Bitmap state of three mouse buttons.
 bY signed char
Pointer displacement along the X axis.
 callManagement CDCCallManagementDescriptor
CDC call management functional descriptor.
 capsLockStatus unsigned char
State of the num. lock LED.
 ccid CCIDDescriptor
CCID descriptor.
 communication USBInterfaceDescriptor
Communication interface descriptor.
 configuration USBConfigurationDescriptor
Standard configuration descriptor.
 data USBInterfaceDescriptor
Data interface descriptor.
 dataIn USBEndpointDescriptor
Data IN endpoint descriptor.
 dataOut USBEndpointDescriptor
Data OUT endpoint descriptor.
 dwDataRate unsigned long
Default ICC I/O data rate in bps. This is an integer value.
 dwDefaultClock unsigned long
Default ICC clock frequency in KHz. This is an integer value.
 dwDTERate unsigned int
Data terminal rate in bits per second.
 dwFeatures unsigned long
This value indicates what intelligent features the CCID has.
 dwMaxCCIDMessageLength unsigned long
For extended APDU level the value shall be between 261 + 10 (header) and 65544 +10, otherwise the minimum value is the wMaxPacketSize of the Bulk-OUT endpoint.
 dwMaxDataRate unsigned long
Maximum supported ICC I/O data rate in bps.
 dwMaxIFSD unsigned long
Indicates the maximum IFSD supported by CCID for protocol T=1.
 dwMaximumClock unsigned long
Maximum supported ICC clock frequency in KHz. This is an integer value.
 dwMechanical unsigned long
The value is a bitwise OR operation performed on the following values: - 00000000h No special characteristics - 00000001h Card accept mechanism 2 - 00000002h Card ejection mechanism 2 - 00000004h Card capture mechanism 2 - 00000008h Card lock/unlock mechanism.
 dwProtocols unsigned long
RRRR –Upper Word- is RFU = 0000h PPPP –Lower Word- Encodes the supported protocol types.
 dwSynchProtocols unsigned long
  • RRRR-Upper Word- is RFU = 0000h - PPPP-Lower Word- encodes the supported protocol types.
 header CDCHeaderDescriptor
CDC header functional descriptor.
 hid HIDDescriptor
HID descriptor.
 iConfiguration unsigned char
Index of the configuration string descriptor.
 idProduct unsigned short
Product ID.
 idVendor unsigned short
Vendor ID.
 iInterface unsigned char
Index of the interface string descriptor.
 iManufacturer unsigned char
Index of the manufacturer string descriptor.
 interface USBInterfaceDescriptor
Mass storage interface descriptor.
 interruptIn USBEndpointDescriptor
Interrupt IN endpoint descriptor.
 interruptOut USBEndpointDescriptor
Interrupt OUT endpoint descriptor.
 iProduct unsigned char
Index of the product string descriptor.
 is3PC unsigned char
Third-party copy supported ?
 isACC unsigned char
Access control coordinator ?
 isARRE unsigned char
Automatic read reallocation enabled bit.
 isAWRE unsigned char
Automatic write reallocation enabled bit.
 isCmdQue unsigned char
Task management model supported ?
 isDBD unsigned char
Disable block descriptors bit.
 isDCR unsigned char
Disable correction bit.
 isDExcpt unsigned char
Disable exception control bit.
 isDPO unsigned char
Cache control bit.
 isDPOFUA unsigned char
DPO/FUA bits supported ?
 isDTE unsigned char
Data terminate on error bit.
 isEBackErr unsigned char
Enable background error bit.
 isEBF unsigned char
Enable background function bit.
 isEER unsigned char
Enable early recovery bit.
 isEncServ unsigned char
Embedded enclosure service comp?
 iSerialNumber unsigned char
Index of the serial number string descriptor.
 isEVPD unsigned char
Type of requested data.
 isEWasc unsigned char
Report warnings ?
 isFUA unsigned char
Cache control bit.
 isFUA_NV unsigned char
Cache control bit.
 isHIGHSUP unsigned char
Hierarchical addressing used ?
 isLogErr unsigned char
Should informational exceptions be logged ?
 isMultiP unsigned char
Multi-port device ?
 isNORMACA unsigned char
ACA attribute supported ?
 isPER unsigned char
Post error bit.
 isPerf unsigned char
Delay acceptable when treating exceptions ?
 isProtect unsigned char
Protection info supported ?
 isPS unsigned char
Parameters saveable ?
 isRC unsigned char
Read continuous bit.
 isRMB unsigned char
Is media removable ?
 isSCCS unsigned char
Embedded SCC ?
 isSPF unsigned char
Page or subpage data format
 isTB unsigned char
Transfer block bit.
 isTest unsigned char
Create a device test failure ?
 isVS unsigned char
???
 isVS2 unsigned char
???
 isWP unsigned char
Is medium write-protected ?
 notification USBEndpointDescriptor
Notification endpoint descriptor.
 padding unsigned char
State of the scroll lock LED.
 pAllocationLength unsigned char
Size of host buffer.
 pIntervalTimer unsigned char
Error reporting period.
 pLogicalBlockAddress unsigned char
Index of first block to read.
 pObsolete1 unsigned char
Obsolete bytes.
 pProductID unsigned char
Vendor-defined product ID.
 pProductRevisionLevel unsigned char
Vendor-defined product revision.
 pRecoveryTimeLimit unsigned char
Maximum time duration for error recovery.
 pReportCount unsigned char
Maximum number of time a report can be issued.
 pReserved1 unsigned char
Reserved bytes
 pReserved4 unsigned char
Reserved bytes.
 pressedKeys unsigned char
Key codes of pressed keys.
 pTransferLength unsigned char
Number of blocks to transmit.
 pVendorID unsigned char
T10 vendor identification.
 pVendorSpecific unsigned char
Vendor-specific data.
 pVersionDescriptors unsigned short
Standards the device complies to.
 scrollLockStatus unsigned char
State of the caps lock LED.
 union1 CDCUnionDescriptor
CDC union functional descriptor (with one slave interface).
 wDescriptorLength0 unsigned short
Size in bytes of the first subordinate descriptor.
 wLangId unsigned char
Language used to display the messages. The 16 bit
 wLcdLayout unsigned short
Number of lines and characters for the LCD display used to send messages for PIN entry.
 wLength unsigned long
Message-specific data length
 wMaxPacketSize unsigned short
Maximum packet size (in bytes) of the endpoint.
 wPINMaxExtraDigit unsigned char
XXYYh XX: Minimum PIN size in digit YY: Maximum PIN size in digit
 wTotalLength unsigned short
Length of all descriptors returned along with this configuration descriptor.
Description
Read/write error recovery mode page
Only the first three bits are relevant, the other 5 are used as padding bits.
See also
  • sbc3r07.pdf - Section 6.3.5 - Table 122
  •  
    Source
    The documentation for this Class was generated from the following files:
  • CDCAbstractControlManagementDescriptor.h
  • CDCHeaderDescriptor.h
  • CDCUnionDescriptor.h
  • USBDeviceQualifierDescriptor.h
  • HIDDescriptor.h
  • cciddriver.c
  • cciddriver.h
  • HIDDKeyboardDriverDescriptors.c
  • HIDDKeyboardInputReport.h
  • HIDDKeyboardOutputReport.h
  • HIDDMouseDriverDescriptors.c
  • HIDDMouseInputReport.h
  • HIDDTransferDriverDesc.c
  • SBC.h