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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? m500a.h

?? MRF500源碼,讀寫射頻卡!快點下!!絕對精彩
?? 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>


// P I C C - C O M M A N D S
// 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一区二区三区免费野_久草精品视频
国产精一区二区三区| 这里只有精品免费| 欧美午夜免费电影| 国产欧美日韩在线看| 亚洲亚洲精品在线观看| 国产99久久精品| 欧美一区二区三区白人| 樱花草国产18久久久久| 粉嫩一区二区三区性色av| 在线不卡一区二区| 国产精品久99| 国产麻豆视频精品| 91精品国产欧美一区二区18| 亚洲永久免费av| 成人av免费网站| 久久久久久免费毛片精品| 欧美bbbbb| 欧美精品久久久久久久多人混战| 亚洲精品成人在线| 99国产精品99久久久久久| 欧美韩国一区二区| 黄网站免费久久| 宅男噜噜噜66一区二区66| 国产精品美女视频| 粉嫩蜜臀av国产精品网站| 2021久久国产精品不只是精品| 日韩极品在线观看| 欧美日韩国产高清一区二区 | 国产日韩精品视频一区| 亚洲国产成人精品视频| 色婷婷久久99综合精品jk白丝 | 久久婷婷久久一区二区三区| 免费观看在线色综合| 欧美一卡二卡在线| 欧美aaa在线| 欧美成人vps| 国产剧情在线观看一区二区| 精品国产凹凸成av人导航| 精品一区二区国语对白| 精品福利av导航| 成人毛片老司机大片| 最好看的中文字幕久久| 91麻豆国产精品久久| 亚洲另类在线一区| 欧美中文字幕一二三区视频| 午夜在线成人av| 日韩一本二本av| 国产精品一品视频| 最新国产成人在线观看| 色天天综合色天天久久| 亚洲自拍偷拍av| 欧美日韩亚洲综合一区二区三区| 爽爽淫人综合网网站 | 精品视频资源站| 日韩和欧美一区二区| 精品sm捆绑视频| 成人黄色小视频| 偷拍一区二区三区四区| 777奇米四色成人影色区| 蜜桃免费网站一区二区三区| 久久久久久亚洲综合影院红桃 | 国产亚洲精品福利| 色综合久久久久网| 蜜桃视频在线一区| 亚洲欧美在线aaa| 欧美一二三区在线| 国产一区二区电影| 亚洲第一久久影院| 中文字幕欧美日韩一区| 欧美精品色综合| 国产精品影视在线| 天天亚洲美女在线视频| 中文字幕免费一区| 日韩视频一区二区三区在线播放| 极品瑜伽女神91| 亚洲美女区一区| 精品国产凹凸成av人导航| 色噜噜久久综合| 国产精品一区二区在线观看不卡| 亚洲综合区在线| 久久久久久久电影| 欧美日韩中文字幕精品| 不卡电影免费在线播放一区| 蜜臀av性久久久久蜜臀av麻豆| 一区二区三区中文字幕精品精品| 日韩三区在线观看| 色综合久久综合网欧美综合网| 国内精品伊人久久久久av一坑| 亚洲国产美女搞黄色| 国产精品久久久久久久久免费桃花 | 麻豆91在线播放| 一区二区三区毛片| 久久久青草青青国产亚洲免观| 色狠狠综合天天综合综合| 成人高清视频在线观看| 激情欧美一区二区三区在线观看| 午夜视频在线观看一区二区| 国产精品美女久久久久久2018| 久久免费电影网| www日韩大片| 欧美tickling挠脚心丨vk| 欧美一区三区四区| 欧美片在线播放| 日韩经典中文字幕一区| 精品在线视频一区| 日韩毛片一二三区| 日韩免费视频一区二区| 日本丰满少妇一区二区三区| 成人性生交大片免费看在线播放 | 中文字幕亚洲综合久久菠萝蜜| 欧美成人精品高清在线播放| 欧美一区二区三区在线视频| 欧美午夜精品免费| 欧美伊人精品成人久久综合97| 91福利视频网站| 在线一区二区观看| 有码一区二区三区| 91传媒视频在线播放| 91亚洲大成网污www| 成人av资源网站| 91小宝寻花一区二区三区| 99精品视频免费在线观看| av一本久道久久综合久久鬼色| 成人激情免费视频| 丁香婷婷综合网| 国产精品夜夜爽| 99精品视频一区| 欧美三区在线视频| 制服丝袜一区二区三区| 日韩欧美一级片| 精品毛片乱码1区2区3区| 337p日本欧洲亚洲大胆色噜噜| 国产日本一区二区| 亚洲欧洲性图库| 亚洲一区二区在线观看视频| 亚洲成人动漫在线观看| 免费xxxx性欧美18vr| 国产伦精品一区二区三区视频青涩 | 亚洲国产精品99久久久久久久久 | 国产精品不卡一区| 一区在线播放视频| 亚洲综合成人在线视频| 蜜臀av性久久久久av蜜臀妖精| 日韩成人午夜电影| 东方欧美亚洲色图在线| 色综合一个色综合亚洲| 日韩精品中文字幕在线一区| 国产日本欧洲亚洲| 日韩影院精彩在线| 国产精品99久久久久久宅男| 成人蜜臀av电影| 欧美亚洲尤物久久| 久久伊人蜜桃av一区二区| 成人欧美一区二区三区黑人麻豆 | 国产一区二区三区av电影| 不卡一区中文字幕| 制服视频三区第一页精品| 日本一区二区三区高清不卡| 一区二区三区四区精品在线视频| 午夜在线电影亚洲一区| 国产成人精品网址| 日韩欧美一区二区视频| 中文无字幕一区二区三区| 亚洲成人精品在线观看| 国产精品一二三| 91精品国产欧美一区二区18 | 美女看a上一区| 91在线免费播放| 精品伦理精品一区| 亚洲影视资源网| 国产精品一区二区免费不卡| 欧美三片在线视频观看| 欧美激情一区二区三区四区| 亚洲国产一二三| av一二三不卡影片| 久久综合av免费| 水蜜桃久久夜色精品一区的特点 | 欧美大尺度电影在线| 中文字幕日韩精品一区| 国产麻豆成人传媒免费观看| 51精品秘密在线观看| 亚洲一区二区三区影院| bt7086福利一区国产| 久久蜜桃香蕉精品一区二区三区| 午夜不卡av免费| 91天堂素人约啪| 中文字幕一区二区三区不卡在线| 黄色精品一二区| 精品三级在线观看| 久久国产夜色精品鲁鲁99| 欧美二区三区的天堂| 亚洲小少妇裸体bbw| 欧美无人高清视频在线观看| 成人免费在线播放视频| 成人激情文学综合网| 久久精品亚洲一区二区三区浴池| 日本少妇一区二区| 91精品免费在线观看| 免费成人小视频| 日韩女优av电影在线观看|