Embedded SDK
Embedded SDK
lib_stusb_impl
usbd_ccid_impl.h
Go to the documentation of this file.
1
2
/*******************************************************************************
3
* Ledger Nano S - Secure firmware
4
* (c) 2022 Ledger
5
*
6
* Licensed under the Apache License, Version 2.0 (the "License");
7
* you may not use this file except in compliance with the License.
8
* You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS,
14
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
* See the License for the specific language governing permissions and
16
* limitations under the License.
17
********************************************************************************/
18
19
#ifndef USBD_CCID_IMPL_H
20
#define USBD_CCID_IMPL_H
21
22
#ifdef HAVE_USB_CLASS_CCID
23
24
// ================================================
25
// CCID
26
27
#define TPDU_EXCHANGE 0x01
28
#define SHORT_APDU_EXCHANGE 0x02
29
#define EXTENDED_APDU_EXCHANGE 0x04
30
#define CHARACTER_EXCHANGE 0x00
31
32
#define EXCHANGE_LEVEL_FEATURE SHORT_APDU_EXCHANGE
33
34
#define CCID_INTF 2
35
#define CCID_BULK_IN_EP 0x83
36
#define CCID_BULK_EPIN_SIZE 64
37
#define CCID_BULK_OUT_EP 0x03
38
#define CCID_BULK_EPOUT_SIZE 64
39
40
#ifdef HAVE_CCID_INTERRUPT
41
#define CCID_INTR_IN_EP 0x84
42
#define CCID_INTR_EPIN_SIZE 16
43
#endif
// HAVE_CCID_INTERRUPT
44
45
#define IO_CCID_DATA_BUFFER_SIZE IO_APDU_BUFFER_SIZE
46
#define G_io_ccid_data_buffer G_io_apdu_buffer
47
48
#endif
// HAVE_USB_CLASS_CCID
49
50
#endif
// USBD_CCID_IMPL_H
Generated by
1.9.1