2014-09-12 05:23:46 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
2017-01-26 21:23:05 +08:00
|
|
|
// Iceman, 2014
|
2014-09-12 05:23:46 +08:00
|
|
|
//
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// High frequency MIFARE Desfire commands
|
|
|
|
//-----------------------------------------------------------------------------
|
2017-01-26 21:23:05 +08:00
|
|
|
#ifndef __MFDESFIRE_H
|
|
|
|
#define __MFDESFIRE_H
|
2014-09-12 05:23:46 +08:00
|
|
|
|
2019-08-08 22:57:33 +08:00
|
|
|
#include "common.h"
|
2019-04-08 18:58:26 +08:00
|
|
|
|
2014-09-12 05:23:46 +08:00
|
|
|
int CmdHFMFDes(const char *Cmd);
|
2014-11-26 20:52:39 +08:00
|
|
|
|
2020-04-10 16:31:18 +08:00
|
|
|
/*
|
2019-04-13 00:41:14 +08:00
|
|
|
char *getCardSizeStr(uint8_t fsize);
|
|
|
|
char *getVersionStr(uint8_t major, uint8_t minor);
|
2020-04-09 23:15:45 +08:00
|
|
|
int getKeySettings(uint8_t *aid);
|
2020-04-10 16:31:18 +08:00
|
|
|
*/
|
2014-09-18 18:38:31 +08:00
|
|
|
|
2020-04-08 11:02:41 +08:00
|
|
|
// Ev1 card limits
|
2019-03-10 06:35:06 +08:00
|
|
|
#define MAX_NUM_KEYS 0x0F
|
|
|
|
#define MAX_APPLICATION_COUNT 28
|
|
|
|
#define MAX_FILE_COUNT 32
|
|
|
|
#define MAX_FRAME_SIZE 60
|
|
|
|
#define FRAME_PAYLOAD_SIZE (MAX_FRAME_SIZE - 5)
|
2016-08-14 23:38:54 +08:00
|
|
|
|
2020-04-10 16:31:18 +08:00
|
|
|
// Ev2 card limits
|
|
|
|
|
|
|
|
// Ev3 card limits
|
|
|
|
|
|
|
|
// Light card limits
|
|
|
|
|
|
|
|
// Light Ev1 card limits
|
|
|
|
|
2020-04-08 11:02:41 +08:00
|
|
|
#define NOT_YET_AUTHENTICATED 0xFF
|
2016-08-14 23:38:54 +08:00
|
|
|
|
2020-04-09 23:15:45 +08:00
|
|
|
|
2017-01-26 21:23:05 +08:00
|
|
|
|
2019-03-10 06:35:06 +08:00
|
|
|
#endif
|