CCID类描述符:
BYTE ccid_descr[0x36] = {
0x36, // bLength: CCID Descriptor size
0x21, // bDescriptorType: HID To be updated with CCID specific number
0x00,0x01,// bcdCCID 0x0110
0x00, // bMaxSlotIndex
0x07, // bVoltageSupport: 5v, 3v and 1.8v
0x01,0x00,0x00,0x00, // dwProtocols: supports T=0 and T=1
0xA0,0x0F,0x00,0x00, // dwDefaultClock: 4 Mhz (0x00000FA0)
0xA0,0x0F,0x00,0x00, // dwMaximumClock: 4 Mhz (0x00000FA0)
0x00, // bNumClockSupported => no manual setting
0x80,0x25,0x00,0x00, // dwDataRate: 9600 bps (0x00002A00)
0x80,0x25,0x00,0x00, // dwMaxDataRate: 9600 bps (0x0001F808)
0x00, // bNumDataRatesSupported => no manual setting
0xfe,0x00,0x00,0x00, /* dwMaxIFSD: 0 (T=0 only) */
0x00,0x00,0x00,0x00, /* dwSynchProtocols */
0x00,0x00,0x00,0x00, /* dwMechanical: no special characteristics */
0x30,0x00,0x01,0x00, // dwFeatures: clk, baud rate, voltage : automatic CCID can set ICC in clock stop mode.
0x0f,0x01,0x00,0x00, /* dwMaxCCIDMessageLength : Maximun block size + header*/ /* 261 + 10 */
0x00, /* bClassGetResponse*/
0x00, /* bClassEnvelope */
0x00,0x00, /* wLcdLayout */
0x00, /* bPINSupport : no PIN verif and modif */
0x01 // bMaxCCIDBusySlot
};
|