1 //-----------------------------------------------------------------------------
2 // Jonathan Westhues, Aug 2005
3 // Gerhard de Koning Gans, April 2008, May 2011
5 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
6 // at your option, any later version. See the LICENSE.txt file for the text of
8 //-----------------------------------------------------------------------------
9 // Definitions internal to the app source.
10 //-----------------------------------------------------------------------------
11 #ifndef __MIFAREDESFIRE_H
12 #define __MIFAREDESFIRE_H
16 bool InitDesfireCard(void);
17 void MifareSendCommand(uint8_t *datain
);
18 void MifareDesfireGetInformation(void);
19 void MifareDES_Auth1(uint8_t *datain
);
20 void ReaderMifareDES(uint32_t param
, uint32_t param2
, uint8_t *datain
);
21 int DesfireAPDU(uint8_t *cmd
, size_t cmd_len
, uint8_t *dataout
);
22 size_t CreateAPDU(uint8_t *datain
, size_t len
, uint8_t *dataout
);
24 void OnError(uint8_t reason
);
25 void OnErrorNG(uint16_t cmd
, uint8_t reason
);