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

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

?? m500a.h

?? MRF500源碼,讀寫射頻卡!快點下!!絕對精彩
?? H
?? 第 1 頁 / 共 3 頁
字號:
//            addressed with key_addr. After sending the command to the card the 
//            function waits for the card's answer.
//            This function is calling compatible (exept the serial number) with
//            older authentication functions. The keys are stored by the 
//            microcontroller, which is capable for the key management.
//
char M500PiccAuth(unsigned char auth_mode, 
                      unsigned char *snr,
                      unsigned char key_sector, 
                      unsigned char block);   
               
// _____________________________________________________________________________
//
//  FUNCTION: M500PiccAuthE2
//        IN: auth_mode PICC_AUTHENT1A or PICC_AUTHENT1B 
//                            selects master key A or master key B 
//            *snr       4 byte serial number of the card, which should be 
//                       authenticated
//            key_sector spec. the key E2PROM key number from which the data 
//                       should be taken (0..15)
//            sector    addresses the sector number on the card, which shall be
//                      authenticated. For MIFARE standard cards, addr can take 
//                      a value from 0 to 15, for other card types please refer
//                      to the according product description.
//       OUT: -
//    RETURN: 
//   COMMENT: This function authenticates one card's sector using the specified 
//            mode. After sending the command to the card the 
//            function waits for the card's answer.
//            The keys for authentication have to be stored in E2PROM in 
//            advance.
char M500PiccAuthE2( unsigned char auth_mode, 
                         unsigned char *snr,      
                         unsigned char key_sector,
                         unsigned char sector); 
                     
// _____________________________________________________________________________
//
//  FUNCTION: M500HostCodeKey
//        IN: uncoded   6 bytes master key for card authentication
//       OUT: coded     12 bytes master key for card authentication
//    RETURN: 
//   COMMENT: In order to authenticate a memory sector of a card, a 6 
//            bytes master key is necessary. This master key has to be passed
//            to the reader modul coded. The conversion between uncoded and 
//         	  coded keys is made by this function.
//                     
char M500HostCodeKey(unsigned char *uncoded, 
                         unsigned char *coded); 

// _____________________________________________________________________________
//
//  FUNCTION: M500PiccAuthKey
//        IN: auth_mode PICC_AUTHENT1A or PICC_AUTHENT1B 
//                            selects master key A or master key B 
//            *snr       4 byte serial number of the card, which should be 
//                       authenticated
//            *keys      12 bytes master key coded
//            sector    addresses the sector number on the card, which shall be
//                      authenticated. For MIFARE standard cards, addr can take 
//                      a value from 0 to 15, for other card types please refer
//                      to the according product description.
//       OUT: -
//    RETURN: 
//   COMMENT: The keys are first loaded to the reader module and used for
//            authentication of the secified sector. In order to get the 
//            required keys coded, the function M500HostCodeKey can be used.
//                     
char M500PiccAuthKey(unsigned char auth_mode,
                         unsigned char *snr,   
                         unsigned char *keys,  
                         unsigned char sector);   
                     
                        
// _____________________________________________________________________________
//
//  FUNCTION: M500PiccRead
//        IN: addr    addresses -  the block on the card from which data shall 
//                    be read. For MIFARE standard cards, addr can take a value
//                    from 0 to 63 (255 for Mifare Pro), for other card types 
//                    please refer to the according product description.
//       OUT: data    is a pointer to the 16 byte data block read from the card.
//       OUT: 
//    RETURN: 
//   COMMENT: This function reads a 16 byte block from the specified card's block 
//            address addr. After sending the command to the card the function 
//            waits for the card's answer.
//                        
char M500PiccRead(unsigned char addr,  
                  unsigned char *_data);
                 
// _____________________________________________________________________________
//
//  FUNCTION: M500PiccWrite
//        IN: addr     address -  the block on the card from which data shall 
//                     be read. For MIFARE standard cards, addr can take a 
//                     value from 0 to 63 (255 for Mifare Pro), for other card 
//                     types please refer to the according product description.
//            data     is a pointer to the 16 byte data block that shall be 
//                     written to the card.
//       OUT: -
//    RETURN: 
//   COMMENT: This function writes a 16 byte block to the specified card's block 
//            address addr. After sending the command to the card the function
//            waits for the card's answer.
//                  
char M500PiccWrite(unsigned char addr,
                       unsigned char *_data);
                  

// _____________________________________________________________________________
//
// FUNCTION: M500PiccValue
//	 IN: dd_mode	INCREMENT, DECREMENT or RESTORE
//	     addr	Block address for the command to be perform 0-63
//	     *value	4 bytes value, LSB first
//	     trans_addr Destination block address to be tranfer	
//	OUT: -
//  COMMENT:
// This function performs the INCREMENT, DECREMENT and RESTORE command. Precondition 
// for success is, that the data block is formatted as value block. 
//
// For INCREMENT and DECREMENT, the command doesn't write back the value to the memory 
// location directly, but loads the transfer buffer with the increased value,
// which could be transferred to any authenticated block by the TRANFER command.
//
// The RESTORE command loads the transfer buffer with the value stored at datablock 
// address, while the 
// given value is only a dummy value, which only have to be in valid range. 
// With a subsquent TRANSFER command a backup management for Value Blocks is 
// established.
//
// After sending the command to the card the function waits for the 
// card's answer. In case of an error <em>Mf500PiccValue()</em>
// generates a return code according to the MF RC's error flags, otherwise 
// the value is sent to the card and then it waits for a NACK. As an exception 
// in this protocol step 
// only a NACK is sent by the card in case of an error. Thus, the function 
// is successful, if a time out occurs. 
//
// After the calculation is done,  a TRANSFER is automatically
// performed to the block address trans_addr. After sending the command to
// the card the function waits for the card's answer 
// and generates a return code according to the MF RC's error flags. 
// A TRAN command is only possible directly after a RESTORE, INCREMENT or 
// DECREMENT command.
//
// The value inside a Value Block is four bytes wide and stored two times
// in normal and one time in bit-inverted manner for data security issues. 
// Additionally the initial address of the Value Block is stored two times 
// normal and two times bit-inverted. In case of a backup of a Value Block, 
// this addres contains the original address of the Value Block.
// Note: Only positive numbers are alowed for the parameter <em>value</em>.
//
char M500PiccValue(unsigned char dd_mode, 
                   unsigned char addr, 
                   unsigned char *value,
                   unsigned char trans_addr);

// _____________________________________________________________________________
//
// FUNCTION: M500PiccValueDebit
//	 IN: dd_mode	INCREMENT, DECREMENT or RESTORE
//	     addr	Block address for the command to be perform 0-63
//	     *value	4 bytes value, LSB first
//	OUT: -
//  COMMENT:
// This function executes calculations on value debit blocks with cards, that 
// support automatic transfer (MIFARE light, MIFARE PLUS, MIFARE PRO,
// MIFARE PROX, ...). 
//
// After sending the command 
// to the card the function waits for the card's answer. In case of an error 
// it generates a return code according 
// to the MF RC's error flags. 
//
char M500PiccValueDebit(unsigned char dd_mode, 
                        unsigned char addr, 
                        unsigned char *value);

// _____________________________________________________________________________
//
// FUNCTION: M500PiccExchangeBlock
//	 IN: *send_data	
//	     send_bytelen       Lenght include 2bytes CRC
//	     append_crc		1->append, 0->not append
//	     timeout		Set duration of timeout timer
//				1-> 1s
//				2-> 1.5s
//				3-> 6s
//				4-> 9.6s
//	OUT: *rec_data
//	     *rec_bytelen
//  COMMENT:
// This function exchanges data blocks between the <b>PCD</b> and <b>PICC</b>. 
//
// ATTENTION: if <em>append_crc</em> is enabled, two CRC bytes are included in 
// <em>send_bytelen</em> and <em>rec_bytelen</em>. The received CRC bytes in the
// receive buffer are always set to zero. 
//
char M500PiccExchangeBlock(unsigned char *send_data,
                           unsigned char send_bytelen,
                           unsigned char *rec_data,  
                           unsigned char *rec_bytelen,
                           unsigned char append_crc, 
                           unsigned char timeout);                  

// _____________________________________________________________________________
//
//  FUNCTION: M500PiccHalt
//        IN: -
//       OUT: -
//    RETURN: -
//   COMMENT: This function sets the MIFARE card into the halt state. After 
//            sending the command to the card the function waits for a cards 
//            response. As an exception, in this protocol step no ACK is sent by
//            the card, but only a NACK in case of an error. Thus, the function 
//            is successful, if a time out occurs.
//                  
char M500PiccHalt(void);

// _____________________________________________________________________________
//
//  FUNCTION: MfPcdRfReset
//        IN: msec     Duration of RF-field off in mseconds.
//                     If parameter msec is 0 => RF OFF forever
//       OUT: -
//    GLOBAL: -
//    RETURN: 
//   COMMENT: Turns off RF-field for a certain time in mseconds. The period
//            is specified in variable 'msec'. Subsequently RF-field is
//            turned on again (after about 1 msec). If value 0 is chosen, 
//            the RF-field is simply turned off. 
//
char M500PcdRfReset(unsigned char ms);                  

void idle_request(void);

#ifdef __cplusplus
}
#endif

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
夜夜精品视频一区二区| 成人激情小说网站| 精品99一区二区| www.日韩大片| 狠狠狠色丁香婷婷综合激情| 亚洲欧洲一区二区在线播放| 91精品国产入口在线| 99久久久久久99| 国产精品99久久久久| 亚洲国产精品一区二区www| 国产免费久久精品| 在线播放欧美女士性生活| 国产激情一区二区三区| 亚洲国产日产av| 国产精品久久久久一区| 欧美一卡二卡在线观看| 色8久久人人97超碰香蕉987| 国产精品资源网站| 蜜臀av国产精品久久久久 | 91麻豆免费在线观看| 久久精品国产一区二区| 亚洲一二三四久久| 国产精品美女久久久久久久| 欧美性生活一区| 天天亚洲美女在线视频| 亚洲视频在线一区观看| 国产精品午夜电影| 久久久久久电影| 成人a区在线观看| 亚洲日本免费电影| 国产亚洲女人久久久久毛片| 日韩欧美精品三级| 91精品国产91久久久久久最新毛片| 在线免费不卡电影| 日本国产一区二区| 色综合久久中文综合久久牛| 国产精品996| 国产麻豆精品视频| 国产一区二区三区免费观看| 蜜桃精品视频在线观看| 蜜桃精品视频在线| 久久99国产精品免费网站| 99精品国产热久久91蜜凸| 国产一区二区按摩在线观看| 麻豆成人综合网| 国产精品每日更新在线播放网址| 久久久午夜精品理论片中文字幕| 精品国产一区二区三区久久久蜜月 | 成人免费看视频| 国产一区二区精品在线观看| 国产精品免费丝袜| 1区2区3区欧美| 一区二区三区四区激情| 亚洲午夜久久久久久久久电影院| 一区二区欧美在线观看| 亚洲欧美偷拍三级| 亚洲韩国精品一区| 日韩精品1区2区3区| 免费精品视频最新在线| 国内欧美视频一区二区| 亚洲一区二区欧美日韩| 成人综合婷婷国产精品久久 | 欧美精品久久天天躁| 国产性做久久久久久| 亚洲精品一区二区三区四区高清| 欧美视频完全免费看| 欧美久久一二区| 精品动漫一区二区三区在线观看| 国产视频一区二区在线| 欧美日韩你懂得| 日韩欧美一级在线播放| 久久色视频免费观看| 自拍偷拍亚洲综合| 亚洲午夜激情av| 国产一区二区三区综合| 成人福利视频在线| 欧美一区二区三区不卡| 欧美精品在线视频| 欧美性色欧美a在线播放| 欧美日韩国产首页| 久久久亚洲精品一区二区三区| 国产精品美女久久久久久2018| 亚洲一区二区综合| 欧美日韩国产另类一区| 亚洲高清一区二区三区| 亚洲免费观看高清完整版在线观看 | 日韩电影在线免费观看| 九九国产精品视频| 久久婷婷成人综合色| 国产精品久久久久久亚洲伦 | 99久久精品情趣| 国内精品久久久久影院色| 看电影不卡的网站| eeuss影院一区二区三区| 欧美日韩亚洲综合在线| 日韩视频在线一区二区| 国产尤物一区二区| 日本韩国欧美一区二区三区| 一本到三区不卡视频| 欧美国产精品一区二区| 日韩一级黄色大片| 国产精品毛片久久久久久久| 亚洲欧美成aⅴ人在线观看| 成人黄色在线网站| 日韩天堂在线观看| 亚洲高清三级视频| 91精品在线观看入口| 偷拍一区二区三区四区| 欧美一级片免费看| 国产综合色产在线精品| 久久精品无码一区二区三区| 高清不卡一二三区| 一区二区三区欧美在线观看| 欧美妇女性影城| 国产成人午夜精品影院观看视频 | 欧美性猛片aaaaaaa做受| 日本网站在线观看一区二区三区 | 国产欧美日韩视频在线观看| eeuss鲁片一区二区三区| 中文字幕在线一区| 欧美一二三在线| 99久久精品国产网站| 国产麻豆成人传媒免费观看| 欧美午夜免费电影| 人人超碰91尤物精品国产| 亚洲婷婷综合色高清在线| 国产欧美一区二区三区鸳鸯浴 | 日韩视频一区二区在线观看| 色综合久久中文综合久久牛| 成人午夜免费视频| 69久久99精品久久久久婷婷| 综合亚洲深深色噜噜狠狠网站| 久久 天天综合| 91精品国产一区二区三区| 日本女人一区二区三区| 中文字幕精品在线不卡| 精品一区二区三区不卡| 亚洲四区在线观看| 91精品国产综合久久精品| 欧美一区二区三区日韩视频| 国产高清不卡一区| 一区二区在线看| 精品成a人在线观看| 美女诱惑一区二区| 日韩限制级电影在线观看| 国产成人免费视频网站| 亚洲日本欧美天堂| 欧美激情综合五月色丁香| 日韩欧美国产不卡| 色视频一区二区| 中文字幕第一区二区| 国产一本一道久久香蕉| 亚洲一级不卡视频| 国产精品日日摸夜夜摸av| 欧美一区二区三区日韩视频| 在线视频欧美精品| 欧美偷拍一区二区| 亚洲成人av中文| 日韩精品综合一本久道在线视频| 久久精品二区亚洲w码| 国产欧美日韩精品一区| 99久久精品国产麻豆演员表| 一区二区三区视频在线看| 欧美美女直播网站| 国产欧美一区二区精品秋霞影院| 高清不卡在线观看| 亚洲精品国产成人久久av盗摄| 欧美在线播放高清精品| 人人精品人人爱| 国产视频在线观看一区二区三区| 91麻豆123| 青青草国产精品97视觉盛宴| 久久久www成人免费无遮挡大片| 99久久免费国产| 日韩不卡免费视频| 中文欧美字幕免费| 欧美日韩国产a| 国产成人丝袜美腿| 亚洲乱码国产乱码精品精98午夜 | 日韩欧美在线123| 国产成人免费高清| 亚洲图片欧美视频| 久久久精品综合| 欧美性猛交xxxx乱大交退制版 | 欧美视频一区二区三区| 九色综合狠狠综合久久| 亚洲桃色在线一区| 制服丝袜av成人在线看| 不卡的看片网站| 日本亚洲一区二区| 国产女人aaa级久久久级| 在线电影院国产精品| 成人av动漫网站| 另类中文字幕网| 亚洲制服欧美中文字幕中文字幕| 亚洲精品在线免费观看视频| 在线中文字幕一区二区| 韩国av一区二区| 秋霞av亚洲一区二区三| 亚洲免费看黄网站|