/[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 2090 - (show annotations) (download)
Mon Jul 3 13:56:42 2006 UTC (6 years, 10 months ago) by rousseau
File MIME type: text/plain
File size: 2320 byte(s)
CCID_Receive() has a new parameter: chain_parameter
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
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 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 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, unsigned int *rx_length,
57 unsigned char rx_buffer[], unsigned char *chain_parameter);
58
59 RESPONSECODE SetParameters(unsigned int reader_index, char protocol,
60 unsigned int length, unsigned char buffer[]);
61
62 int isCharLevel(int reader_index);
63

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5