?? rc632cmd.h
字號(hào):
/****************************************************************************
*
* File: RC500CMD.H(HEADER for RC500 SYSTEM COMMAND AND ADDED ROUTINE)
*
* Created: 2002.12.25
*
* Editor JOHN CHENG
*
* Compiler: KEIL C51 V7.00
*
* Description:
*
*****************************************************************************
*
* Version | Date | PCB | Description
* --------+----------+-------+------------------------------------------------
* V100 | 25/12/02 | | Initial version,TypeA and TypeB
* V110 | 15/01/03 | | reset pin control by FIFO out pins.Adding two new command
* | | | (READ EEPROM C6 and WRITE EEPROM C7).
* | | | delay using a fixed time,not "for loop".
* | | | New routine funtions is generated in main funtion.
* V120 | 20/01/03 | | Modify reader.h,adding rc500cmd.h
* V130 | 08/02/03 | | Adding some funtions about SAM
* | | |
****************************************************************************/
//Below define is ISO14443 TYPEA command code(0x30-0x3F)
#define CMD_MF_Request 0x30 //MRC500 request
#define CMD_MF_Anticoll 0x31 //MRC500 anticol
#define CMD_MF_Select 0x32 //MRC500 select
#define CMD_MF_Halt 0x33 //MRC500 halt
#define CMD_SLE_Gen 0x34 //Send generic command to tag card
#define CMD_MF_PowerDown 0x35 //MRC500 PowerDown
#define CMD_MF_PowerWake 0x36 //MRC500 Wake PowerDown
#define CMD_MF_Anticoll2 0x38 //MRC500 anticol2
#define CMD_MF_Select2 0x39 //MRC500 select2
#define CMD_MF_Anticoll3 0x3a //MRC500 anticol3
#define CMD_MF_Select3 0x3b //MRC500 select3
//---------------------------------------------------------------------------------------------------------
//Below define is Mifare chip command code(0x40-0x4F)
#define CMD_MF_Authentication 0x40 //MRC500 authentication
#define CMD_MF_Read 0x41 //MRC500 read a block
#define CMD_MF_Write 0x42 //MRC500 write a block
#define CMD_MF_Transfer 0x43 //MRC500 transfer
#define CMD_MF_Value 0x44 //Value block operation:increment,decrement,restore
#define CMD_MF_LOADKEY 0x45 //load provided keys
#define CMD_MF_LOADEEKEY 0x46 //load key from MRC500 EEPROM
#define CMD_MF_LOADKEY2EE 0x47 //load key to MRC500 EEPROM
//---------------------------------------------------------------------------------------------------------
//Below define is ISO14443-B command code(0x60-0x6F)
#define CMD_RequestB 0x60
#define CMD_AnticollB 0x61
#define CMD_Attrib 0x62
#define CMD_HaltB 0x63
#define CMD_SetTYPEB 0x64
#define CMD_Generic_B 0x65
#define CMD_FoundCards 0x66
//---------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------
//Below define is ISO15693 command code(0x70-0x7F)
//-------------------------------------------------------------------------------------------------
#define CMD_ISO15693_Inventory 0x70
#define CMD_ISO15693_Stay_Quiet 0x71 //MRC632 15693 make the tag quiet state
#define CMD_ISO15693_Read 0x72 //MRC632 15693 read single block
#define CMD_ISO15693_Write 0x73 //MRC632 15693 write single block
#define CMD_ISO15693_Lock_Block 0x74 //MRC632 15693 lock block
#define CMD_ISO15693_Select 0x75
#define CMD_ISO15693_Reset_To_Ready 0x76
#define CMD_ISO15693_Write_AFI 0x77
#define CMD_ISO15693_Lock_AFI 0x78
#define CMD_ISO15693_Write_DSFID 0x79
#define CMD_ISO15693_Lock_DSFID 0x7A
#define CMD_ISO15693_Get_System_Information 0x7B //MRC632 Get the card's information
#define CMD_ISO15693_Get_Multiple_Block_Security 0x7C //MRC632 Get the card's Multiple block information
#define CMD_ISO15693_Generic 0x7D
#define CMD_DES_get_uid 0x80
#define CMD_DES_read 0x81
#define CMD_DES_savekey 0x86
#define CMD_DES_setpara 0x87
#define CMD_DES_selkey 0x88
#define CMD_DES_getkey 0x89
//-----------------------------------------------------------------------------------------------------
//Below define is High Level MIFARE command code(0x90-0x9F)
//----- Customer Command - High Level MIFARE CMDs Testing Purpose Only ------------------
#define CMD_MF_HLRead 0x90
#define CMD_MF_HLWrite 0x91
#define CMD_MF_HLInitVal 0x92
#define CMD_MF_HLDecrement 0x93
#define CMD_MF_HLIncrement 0x94
#define CMD_HL_Request 0x98
//---------------------------------------------------------------------------------------------------------
//Below define is Miscellaneous command code(0xC0-0xCF)
#define CMD_RF 0xC0 //Control RF field
#define CMD_MF_RF_ExInternal 0xC1 //Select RF external or internal
#define CMD_MF_RW_ConfigReg 0xC2 //for debug MRC500 configer register
#define CMD_MF_VerifiedWrite 0xC3
#define CMD_Authentication 0xC4 //Authentication of reader and card
//#define CMD_Antenna 0xC5 //Selected Antenna 1 or 2 and read current antenna status
#define CMD_ReadE2 0xC6 //READ RC500 EEPROM
#define CMD_WriteE2 0xC7 //WRITE RC500 EEPROM
//--------------------------------------------------------------------------------------------------------
/**********************************************************************************************************
// COMMAND SET
/*********************************************************************************************************/
//Below define is System command code(0x00-0x1F)
#define CMD_SetAddress 0x06 //Set reader address
#define CMD_SetBaudrate 0x07 //Set reader baudrate
#define CMD_SetSerialNum 0x08 //Set reader serial number
#define CMD_GetSerialNum 0x09 //Get reader serial number
#define CMD_GetVersionNum 0x0A //Get reader version number
#define CMD_Set_User_Info 0x0B //Set User Information
#define CMD_Get_User_Info 0x0c //Get User Information
#define CMD_LoadProgram 0x11 //for download program
#define CMD_Weigand 0x12 //start Weigand26
#define CMD_WeigandActive 0x13 // active Wiegand mode
#define CMD_Lcd_Display 0x14 // LCD顯示命令
#define CMD_Lcd_Manufacturer 0x16 //第一行廠商信息
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -