1 /* 2 acr38cmd.h: Emulated CCID reader commands for ACR38 non-CCID reader 3 Copyright (C) 2011-2012 Advanced Card Systems Ltd. 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 #ifndef ACR38CMD_H 21 #define ACR38CMD_H 22 23 RESPONSECODE ACR38_CmdPowerOn(unsigned int reader_index, unsigned int *nlength, 24 /*@out@*/ unsigned char buffer[], int voltage); 25 26 RESPONSECODE ACR38_CmdPowerOff(unsigned int reader_index); 27 28 RESPONSECODE ACR38_CmdGetSlotStatus(unsigned int reader_index, 29 /*@out@*/ unsigned char buffer[]); 30 31 RESPONSECODE ACR38_CmdXfrBlock(unsigned int reader_index, unsigned int tx_length, 32 unsigned char tx_buffer[], unsigned int *rx_length, 33 unsigned char rx_buffer[], int protoccol); 34 35 RESPONSECODE ACR38_TransmitT0(unsigned int reader_index, unsigned int tx_length, 36 const unsigned char tx_buffer[], unsigned short rx_length, unsigned char bBWI); 37 38 RESPONSECODE ACR38_TransmitT1(unsigned int reader_index, unsigned int tx_length, 39 const unsigned char tx_buffer[], unsigned short rx_length, unsigned char bBWI); 40 41 RESPONSECODE ACR38_TransmitPPS(unsigned int reader_index, unsigned int tx_length, 42 const unsigned char tx_buffer[], unsigned short rx_length, unsigned char bBWI); 43 44 RESPONSECODE ACR38_Receive(unsigned int reader_index, 45 /*@out@*/ unsigned int *rx_length, 46 /*@out@*/ unsigned char rx_buffer[], unsigned char *chain_parameter); 47 48 RESPONSECODE ACR38_SetParameters(unsigned int reader_index, char protocol, 49 unsigned int length, unsigned char buffer[]); 50 51 RESPONSECODE ACR38_SetCardVoltage(unsigned int reader_index, 52 unsigned char TxBuffer[], unsigned int TxLength, 53 unsigned char RxBuffer[], unsigned int *RxLength); 54 55 RESPONSECODE ACR38_SetCardType(unsigned int reader_index, 56 unsigned char TxBuffer[], unsigned int TxLength, 57 unsigned char RxBuffer[], unsigned int *RxLength); 58 59 RESPONSECODE ACR38_GetFirmwareVersion(unsigned int reader_index, 60 char firmwareVersion[]); 61 62 #endif 63