/[pcsclite]/trunk/Drivers/ccid/src/commands.h
ViewVC logotype

Contents of /trunk/Drivers/ccid/src/commands.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3270 - (show annotations) (download)
Mon Jan 5 14:46:36 2009 UTC (4 years, 4 months ago) by rousseau
File MIME type: text/plain
File size: 2357 byte(s)
tag output parameters with /*@out@*/
1 /*
2 commands.h: Commands sent to the card
3 Copyright (C) 2003 Ludovic Rousseau
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with this library; if not, write to the Free Software Foundation,
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 /*
21 * $Id$
22 */
23
24 #define SIZE_GET_SLOT_STATUS 10
25 #define STATUS_OFFSET 7
26 #define ERROR_OFFSET 8
27 #define CHAIN_PARAMETER_OFFSET 9
28
29 RESPONSECODE CmdPowerOn(unsigned int reader_index, unsigned int * nlength,
30 /*@out@*/ unsigned char buffer[], int voltage);
31
32 RESPONSECODE SecurePINVerify(unsigned int reader_index,
33 unsigned char TxBuffer[], unsigned int TxLength,
34 unsigned char RxBuffer[], unsigned int *RxLength);
35
36 RESPONSECODE SecurePINModify(unsigned int reader_index,
37 unsigned char TxBuffer[], unsigned int TxLength,
38 unsigned char RxBuffer[], unsigned int *RxLength);
39
40 RESPONSECODE CmdEscape(unsigned int reader_index,
41 const unsigned char TxBuffer[], unsigned int TxLength,
42 unsigned char RxBuffer[], unsigned int *RxLength);
43
44 RESPONSECODE CmdPowerOff(unsigned int reader_index);
45
46 RESPONSECODE CmdGetSlotStatus(unsigned int reader_index,
47 /*@out@*/ unsigned char buffer[]);
48
49 RESPONSECODE CmdXfrBlock(unsigned int reader_index, unsigned int tx_length,
50 unsigned char tx_buffer[], unsigned int *rx_length,
51 unsigned char rx_buffer[], int protoccol);
52
53 RESPONSECODE CCID_Transmit(unsigned int reader_index, unsigned int tx_length,
54 const unsigned char tx_buffer[], unsigned short rx_length, unsigned char bBWI);
55
56 RESPONSECODE CCID_Receive(unsigned int reader_index,
57 /*@out@*/ unsigned int *rx_length,
58 /*@out@*/ unsigned char rx_buffer[], unsigned char *chain_parameter);
59
60 RESPONSECODE SetParameters(unsigned int reader_index, char protocol,
61 unsigned int length, unsigned char buffer[]);
62
63 int isCharLevel(int reader_index);
64

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5