亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? m500a.h

?? RC500的mifare卡開發(fā)備用程序及電路
?? H
?? 第 1 頁 / 共 3 頁
字號:
///////////////////////////////////////////////////////////////////////////////
//    Copyright (c), Philips Semiconductors Gratkorn
//
//                     (C)PHILIPS Electronics N.V. 2000
//       All rights are reserved. Reproduction in whole or in part is 
//      prohibited without the written consent of the copyright owner.
//  Philips reserves the right to make changes without notice at any time.
// Philips makes no warranty, expressed, implied or statutory, including but
// not limited to any implied warranty of merchantibility or fitness for any
//particular purpose, or that the use will not infringe any third party patent,
// copyright or trademark. Philips must not be liable for any loss or damage
//                          arising from its use.
///////////////////////////////////////////////////////////////////////////////
//
// Projekt         : M500
// Files           : M500A.h M500A.c
// Created         : 01.04.00
//
// COMMENT: 
//	         This header file can be used either for a uC environment or for 
//           Win32 DLL. Therefore the header MfOsDefs.h is included. Depending 
//           on the environment different definitions are used for "FCT_PREF". 
//           For the microcontroller system, all functions have the return type
//          "char". For the Win32 DLL the return types are changed to "long". 
//           Further more the DLL functions need to be exported, so the 
//           corresponding declarations are made. 
// MODIFICATIONS:
// 01.04.00  HB  first issue
///////////////////////////////////////////////////////////////////////////////
#ifndef M500A_H
#define M500A_H

#ifdef __cplusplus
extern "C"
{
#endif

// General Include File for serveral defines concerning conditional library
// compilation and microcontroller usage
//#include <MfOsDefs.h>


// PICC - COMMANDS
// commands which are handled by the tag
// Each tag command is written to the reader IC and transfered via RF
#define PICC_REQSTD        0x26			// request idle
#define PICC_REQALL        0x52			// request all
#define PICC_ANTICOLL1     0x93			// anticollision level 1
#define PICC_ANTICOLL2     0x95			// anticollision level 2
#define PICC_ANTICOLL3     0x97			// anticollision level 3
#define PICC_AUTHENT1A     0x60			// authentication step 1
#define PICC_AUTHENT1B     0x61			// authentication step 2
#define PICC_READ          0x30			// read block
#define PICC_WRITE         0xA0			// write block
#define PICC_DECREMENT     0xC0         	// decrement value
#define PICC_INCREMENT     0xC1         	// increment value
#define PICC_RESTORE       0xC2         	// restore command code
#define PICC_TRANSFER      0xB0         	// transfer command code
#define PICC_HALT          0x50			// halt

// Mifare Error Codes
// Each function returns a status value, which corresponds to the
// mifare error codes. 
#define MI_OK                           0
#define MI_CHK_OK                       0
#define MI_CRC_ZERO                     0

#define MI_CRC_NOTZERO                  1

#define MI_NOTAGERR                     (-1)
#define MI_CHK_FAILED                   (-1)
#define MI_CRCERR                       (-2)
#define MI_CHK_COMPERR                  (-2)
#define MI_EMPTY                        (-3)
#define MI_AUTHERR                      (-4)
#define MI_PARITYERR                    (-5)
#define MI_CODEERR                      (-6)

#define MI_SERNRERR                     (-8)
#define MI_KEYERR                       (-9)
#define MI_NOTAUTHERR                   (-10)
#define MI_BITCOUNTERR                  (-11)
#define MI_BYTECOUNTERR                 (-12)
#define MI_IDLE                         (-13)
#define MI_TRANSERR                     (-14)
#define MI_WRITEERR                     (-15)
#define MI_INCRERR                      (-16)
#define MI_DECRERR                      (-17)
#define MI_READERR                      (-18)
#define MI_OVFLERR                      (-19)
#define MI_POLLING                      (-20)
#define MI_FRAMINGERR                   (-21)
#define MI_ACCESSERR                    (-22)
#define MI_UNKNOWN_COMMAND              (-23)
#define MI_COLLERR                      (-24)
#define MI_RESETERR                     (-25)
#define MI_INITERR                      (-25)
#define MI_INTERFACEERR                 (-26)
#define MI_ACCESSTIMEOUT                (-27)
#define MI_NOBITWISEANTICOLL            (-28)
#define MI_QUIT                         (-30)

#define MI_RECBUF_OVERFLOW              (-50) 
#define MI_SENDBYTENR                   (-51)
	
#define MI_SENDBUF_OVERFLOW             (-53)
#define MI_BAUDRATE_NOT_SUPPORTED       (-54)
#define MI_SAME_BAUDRATE_REQUIRED       (-55)

#define MI_WRONG_PARAMETER_VALUE        (-60)

#define MI_BREAK                        (-99)
#define MI_NY_IMPLEMENTED               (-100)
#define MI_NO_MFRC                      (-101)
#define MI_MFRC_NOTAUTH                 (-102)
#define MI_WRONG_DES_MODE               (-103)
#define MI_HOST_AUTH_FAILED             (-104)

#define MI_WRONG_LOAD_MODE              (-106)
#define MI_WRONG_DESKEY                 (-107)
#define MI_MKLOAD_FAILED                (-108)
#define MI_FIFOERR                      (-109)
#define MI_WRONG_ADDR                   (-110)
#define MI_DESKEYLOAD_FAILED            (-111)

#define MI_WRONG_SEL_CNT                (-114)

#define MI_WRONG_TEST_MODE              (-117)
#define MI_TEST_FAILED                  (-118)
#define MI_TOC_ERROR                    (-119)
#define MI_COMM_ABORT                   (-120)
#define MI_INVALID_BASE                 (-121)
#define MI_MFRC_RESET                   (-122)
#define MI_WRONG_VALUE                  (-123)
#define MI_VALERR                       (-124)

// _____________________________________________________________________________
//
//  FUNCTION: M500PcdReset
//        IN: -
//       OUT: -
//    RETURN: MI_OK
//            MI_RESETERR
//            MI_INTERFACEERR
//   COMMENT: This function initiates a reset of the reader IC. Note, that
//            the reset pin of the reader has to be connected to the 
//            expected port pin of the microcontroller.
//
char M500PcdReset(void);

// _____________________________________________________________________________
//
//  FUNCTION: M500PcdConfig
//        IN: -
//       OUT: -
//    RETURN: MI_OK
//            MI_RESETERR
//            MI_INTERFACEERR
//   COMMENT: Configuration of the reader IC. This function has to be called
//            before the first data is written to the reader. A reset 
//            is initiated and several registers are set.
//
char M500PcdConfig(void);

// _____________________________________________________________________________
//
//  FUNCTION: M500PcdInOutSlaveConfig
//        IN: -
//       OUT: -
//    RETURN: MI_OK
//            MI_UNKNOWN_COMMAND
//            MI_ACCESSTIMEOUT
//   COMMENT: The reader IC is able to communicate with another reader IC
//            via the digital "mifare in" and "mifare out" interface. Therefore
//            one reader acts as a master and sends commands via "mifare out".
//            The other reader ic acts as a slave and receives data via
//            "mifare in" interface. The slave module can not be initialised
//            by the microcontroller because only the "mifare in/out"
//            interface is connected.For this reason, the slave module has 
//            to be initialised once. For that the appropriate parameter 
//            settings are written to 
//            the E2PROM. After POR (power on reset) the IC reads these settings
//            and initialises automatically as slave.
//
char M500PcdInOutSlaveConfig(void);

// _____________________________________________________________________________
//
//  FUNCTION: M500PcdInOutMasterConfig
//        IN: -
//       OUT: -
//    RETURN: MI_OK
//   COMMENT: Corresponding to the slave configuration routine. This function
//            initialises the master reader IC. The function is additional
//            to the standard configuration "M500PcdConfig".
//
char M500PcdInOutMasterConfig(void);

// _____________________________________________________________________________
//
//  FUNCTION: MfPcdLoadMk
//        IN: kl_mode     PICC_AUTHENT1A or PICC_AUTHENT1B 
//                              selects master key A or master key B 
//                        KS0, KS1, KS2 selects one of the three master key sets.
//            key_addr    spec. the key RAM address to which the data shall be 
//                        written (0..15)
//            mk          pointer to a 6 byte authentication key
//       OUT: -
//    RETURN: MI_OK
//   COMMENT: In order to be "calling compatibel" to former libraries, this 
//            function enables to store all keys in the microcontroller.
//            When calling the authentication function "M500PiccAuth", 
//            these keys can be used.
//            Note: This concept supports backward compatibility for the 
//            application software, but does not fulfill the same security 
//            level because keys are in this case stored autside the secure key 
//            memory of the MF RC500.
//
char M500PcdLoadMk(unsigned char  kl_mode, 
                   unsigned char  key_addr, 
                   unsigned char  *mk);
 
// _____________________________________________________________________________
//
//  FUNCTION: M500PcdLoadKeyE2
//        IN: key_type      PICC_AUTHENT1A or PICC_AUTHENT1B 
//            sector        key sector number, on which the key should be stored
//                          values from 0 to 15 are valid
//            uncoded_keys  6 bytes key 
//       OUT: -
//    RETURN: 
//   COMMENT: This function stores the keys in the reader internal E2PROM.
//            These keys are available for the function M500PiccAuthE2.
//                     
char M500PcdLoadKeyE2(unsigned char key_type,
                      unsigned char sector,
                      unsigned char *uncoded_keys); 

// _____________________________________________________________________________
//
//  FUNCTION: PcdReadE2
//        IN: startaddr     2 bytes of starting address of the E2PROM 
//            length        number of byte of data to be read
//       OUT: *_data        buffer for the read bytes 
//    RETURN: 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品免费在线| 亚洲高清在线精品| 17c精品麻豆一区二区免费| 亚洲超碰97人人做人人爱| 极品少妇xxxx精品少妇偷拍| 91国模大尺度私拍在线视频| 日韩一区二区麻豆国产| 亚洲福利一二三区| 欧美精品777| 亚洲免费在线看| 国产99久久精品| 精品国产乱码久久久久久1区2区| 亚洲一区二区三区四区在线 | 大尺度一区二区| 日韩欧美一二三区| 日韩在线a电影| 欧美在线观看禁18| 亚洲欧美激情一区二区| 欧美精品电影在线播放| 国模冰冰炮一区二区| 欧美大肚乱孕交hd孕妇| 成人听书哪个软件好| 一区二区三区四区激情| 色婷婷精品大在线视频| 亚洲色图一区二区三区| 成人av免费在线观看| 中文字幕一区二区三区不卡| 欧美体内she精高潮| 亚洲综合无码一区二区| 欧美一区二区成人6969| 日本aⅴ亚洲精品中文乱码| 欧美日韩一区二区在线观看视频 | 久久狠狠亚洲综合| 欧美一级片在线看| 成人永久免费视频| 秋霞成人午夜伦在线观看| 国产精品色噜噜| 色噜噜狠狠色综合欧洲selulu| 免费成人av资源网| 亚洲免费av在线| 精品乱人伦一区二区三区| 国产精品996| 国产精品免费网站在线观看| 欧美日高清视频| 美女视频一区二区三区| 久久这里只精品最新地址| 国产一区视频在线看| 日本一区二区三区国色天香| av中文字幕亚洲| 亚洲成av人片| 亚洲欧美综合在线精品| 久久久久久99久久久精品网站| 成人黄色国产精品网站大全在线免费观看 | 2024国产精品视频| 欧美三级视频在线播放| 播五月开心婷婷综合| 狠狠色丁香久久婷婷综合_中 | 成人国产在线观看| 美女视频免费一区| 日韩二区三区四区| 久久精品一区二区三区四区| av动漫一区二区| 狠狠色丁香九九婷婷综合五月| 免费在线观看视频一区| 天天综合天天综合色| 亚洲高清免费视频| 亚洲黄色性网站| 精品国产亚洲在线| 日韩手机在线导航| 欧美一级爆毛片| 日韩一二三四区| 欧美一卡二卡三卡| 精品毛片乱码1区2区3区| 精品少妇一区二区三区视频免付费 | 从欧美一区二区三区| 激情综合网天天干| 久久国产夜色精品鲁鲁99| 日本不卡视频在线| 黑人巨大精品欧美黑白配亚洲| 老司机午夜精品99久久| 精品一区二区成人精品| 国产在线播放一区三区四| 国产精品99久久久久久有的能看 | 蜜桃视频第一区免费观看| 日本伊人色综合网| 久久精品国产亚洲a| 激情伊人五月天久久综合| 国产高清久久久| 天天综合网 天天综合色| 日本欧美肥老太交大片| 蜜臀av一区二区三区| 美日韩一区二区| 国产一区二区精品久久99| 高清不卡在线观看av| 97久久人人超碰| 国产成人午夜精品5599| 成人免费三级在线| 日本高清不卡aⅴ免费网站| 一本大道久久a久久精品综合| 欧美网站大全在线观看| 日韩一区二区三区免费观看| 国产亚洲一区字幕| 亚洲色图视频网站| 午夜电影久久久| 精品一区二区在线视频| 成人av综合在线| 欧美日韩亚洲国产综合| 久久综合九色综合97婷婷女人| 亚洲欧洲一区二区三区| 午夜精品一区二区三区电影天堂| 麻豆91精品91久久久的内涵| 成人高清视频免费观看| 欧美午夜免费电影| 久久久亚洲综合| 亚洲无线码一区二区三区| 黑人巨大精品欧美一区| 在线国产电影不卡| 欧美变态口味重另类| 日韩一区欧美小说| 免费在线观看视频一区| 91麻豆国产在线观看| 91丨九色丨蝌蚪富婆spa| 日韩一区二区影院| 亚洲欧洲99久久| 国模大尺度一区二区三区| 欧洲激情一区二区| 国产精品久久三区| 伊人色综合久久天天| 久久国产精品99久久人人澡| 色婷婷一区二区三区四区| 精品国产乱码久久久久久久久| 亚洲一区二区三区四区在线免费观看 | 丁香亚洲综合激情啪啪综合| 欧美日韩高清在线播放| 国产精品午夜电影| 精久久久久久久久久久| 欧美性大战xxxxx久久久| 国产女人水真多18毛片18精品视频| 天天操天天干天天综合网| eeuss影院一区二区三区| 精品精品国产高清a毛片牛牛| 亚洲电影一级黄| 91日韩在线专区| 国产精品第13页| 国产精品69毛片高清亚洲| 欧美一区二区三区免费视频| 夜夜嗨av一区二区三区中文字幕| 国产精品一区二区无线| 欧美大片在线观看一区二区| 亚洲成人精品一区二区| 色婷婷国产精品| 欧美极品aⅴ影院| 亚洲综合成人在线视频| 成人app在线观看| 国产亚洲福利社区一区| 精品综合久久久久久8888| 7777精品伊人久久久大香线蕉经典版下载 | 日韩欧美中文一区二区| 亚洲电影中文字幕在线观看| 91在线一区二区| 国产精品久久久久久久午夜片| 国产精品一品二品| 日本一区二区综合亚洲| 国产精品888| 欧美经典一区二区| 高清在线观看日韩| 中文字幕免费不卡| 成人av在线资源| 亚洲天堂a在线| 91在线云播放| 亚洲尤物在线视频观看| 在线中文字幕一区| 亚洲综合成人在线| 欧美丰满嫩嫩电影| 久久99国产精品久久99果冻传媒| 精品免费视频.| 国产精品一二三区在线| 国产精品婷婷午夜在线观看| 99久久99久久精品免费观看| 亚洲色大成网站www久久九九| 欧美综合一区二区三区| 午夜免费久久看| 日韩欧美在线综合网| 国产黄色精品网站| 国产精品久久久久久久久免费桃花| 99久久精品国产导航| 亚洲黄色av一区| 欧美一区二区三区色| 激情综合网激情| 中文字幕一区免费在线观看| 夫妻av一区二区| 91美女福利视频| 日韩中文字幕亚洲一区二区va在线| 色噜噜夜夜夜综合网| 伊人色综合久久天天人手人婷| 日韩av一区二区在线影视| 波多野结衣精品在线| 欧美一二区视频| 一区二区三区中文字幕电影| 日韩精品久久久久久|