mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-10 09:18:26 +02:00
Depending on compiling flags, HID and/or CCID may be enabled independently and run simultaneously. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
47 lines
1.4 KiB
C
47 lines
1.4 KiB
C
/*
|
|
* This file is part of the Pico HSM SDK distribution (https://github.com/polhenarejos/pico-hsm-sdk).
|
|
* Copyright (c) 2022 Pol Henarejos.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, version 3.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef USB_DESCRIPTORS_H_
|
|
#define USB_DESCRIPTORS_H_
|
|
|
|
struct ccid_class_descriptor {
|
|
uint8_t bLength;
|
|
uint8_t bDescriptorType;
|
|
uint16_t bcdCCID;
|
|
uint8_t bMaxSlotIndex;
|
|
uint8_t bVoltageSupport;
|
|
uint32_t dwProtocols;
|
|
uint32_t dwDefaultClock;
|
|
uint32_t dwMaximumClock;
|
|
uint8_t bNumClockSupport;
|
|
uint32_t dwDataRate;
|
|
uint32_t dwMaxDataRate;
|
|
uint8_t bNumDataRatesSupported;
|
|
uint32_t dwMaxIFSD;
|
|
uint32_t dwSynchProtocols;
|
|
uint32_t dwMechanical;
|
|
uint32_t dwFeatures;
|
|
uint32_t dwMaxCCIDMessageLength;
|
|
uint8_t bClassGetResponse;
|
|
uint8_t bclassEnvelope;
|
|
uint16_t wLcdLayout;
|
|
uint8_t bPINSupport;
|
|
uint8_t bMaxCCIDBusySlots;
|
|
} __attribute__ ((__packed__));
|
|
|
|
#endif /* USB_DESCRIPTORS_H_ */
|