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

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

?? m500a.h

?? RC500的mifare卡開發(fā)備用程序及電路
?? 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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美网站大全在线观看| 日韩成人一级大片| av福利精品导航| 日韩美女精品在线| 91久久线看在观草草青青| 亚洲影院在线观看| 欧美日韩精品三区| 另类调教123区| 国产蜜臀av在线一区二区三区| 国产91清纯白嫩初高中在线观看| 国产精品久久久久久妇女6080 | 欧美国产国产综合| 色婷婷av一区二区三区大白胸| 亚洲图片自拍偷拍| 精品国产一区二区三区av性色| 国内一区二区视频| 亚洲乱码国产乱码精品精的特点 | 久久新电视剧免费观看| thepron国产精品| 亚洲人妖av一区二区| 欧美日韩一级黄| 国产一区二区调教| 亚洲欧美日韩久久精品| 欧美一级高清大全免费观看| 国产成人av电影在线| 亚洲一区二区三区四区的| 精品欧美乱码久久久久久| 成人免费观看视频| 污片在线观看一区二区| 国产亚洲综合av| 日本精品一级二级| 久久精品国产99| 亚洲欧美日韩国产综合在线| 欧美另类videos死尸| 成年人网站91| 免费人成在线不卡| 亚洲午夜久久久久久久久电影网 | 亚洲国产精品久久不卡毛片 | 日韩不卡免费视频| 国产精品剧情在线亚洲| 日韩女优av电影| 欧美伊人久久久久久久久影院| 国产精品99久久久久久宅男| 日韩黄色免费电影| 亚洲欧美日韩在线不卡| 国产亚洲精品7777| 欧美电影免费提供在线观看| 91玉足脚交白嫩脚丫在线播放| 婷婷开心久久网| jizz一区二区| 91麻豆精品国产自产在线| 色综合天天视频在线观看 | 亚洲精品亚洲人成人网 | 欧美三级韩国三级日本三斤| 日本va欧美va瓶| 国产精品人成在线观看免费| 久久久精品黄色| 成人国产精品免费| 日本在线播放一区二区三区| 国产欧美日韩三区| 91美女片黄在线观看| 蜜桃av一区二区在线观看| 国产亚洲一本大道中文在线| 欧美日韩成人高清| 欧美日韩在线播| 国产一区二区三区不卡在线观看| 亚洲最快最全在线视频| 4438x成人网最大色成网站| 国产成人精品午夜视频免费 | 精品少妇一区二区三区免费观看| 成人污污视频在线观看| 午夜精品久久一牛影视| 亚洲1区2区3区视频| 久久久不卡网国产精品二区 | 国产精品18久久久久久久久| 欧美xxxxx牲另类人与| 精品国产a毛片| 欧美性受xxxx黑人xyx性爽| 国产精品影视在线观看| 午夜精品一区二区三区免费视频| 日韩精品一卡二卡三卡四卡无卡| 日本一区二区三区视频视频| 777色狠狠一区二区三区| 91一区二区三区在线播放| 欧美激情资源网| 国产精品国产精品国产专区不片| 日韩一区二区在线播放| 欧美性猛交xxxxxx富婆| 91同城在线观看| 成人在线视频一区二区| 精品一区二区免费| 日韩电影免费一区| 国产黄人亚洲片| 国产在线播放一区| 免费在线看一区| 中文字幕欧美三区| 亚洲图片有声小说| 一区二区三区在线免费视频| 成人欧美一区二区三区黑人麻豆 | 国产成人鲁色资源国产91色综| 日本不卡中文字幕| 欧美男女性生活在线直播观看| 欧美一区二区三区在| 欧美性高清videossexo| 在线亚洲高清视频| 高清beeg欧美| 欧美日韩aaa| 91精品国产综合久久精品图片| 欧美三级一区二区| 日韩精品一区第一页| 国产专区欧美精品| 精品亚洲国内自在自线福利| 一区二区三区四区不卡在线| 国产精品看片你懂得| 国产欧美视频一区二区| 天天综合网天天综合色| 丝袜a∨在线一区二区三区不卡| 一区二区三区成人在线视频| 自拍偷自拍亚洲精品播放| 日韩国产欧美在线播放| 美女视频网站久久| 欧美96一区二区免费视频| 亚洲欧美激情视频在线观看一区二区三区 | 日韩欧美一区二区三区在线| 日韩视频在线永久播放| 欧美精品xxxxbbbb| 国产精品福利一区| 亚洲啪啪综合av一区二区三区| 亚洲福利视频一区| 一区二区欧美在线观看| 国产福利一区在线观看| 高清成人免费视频| 91福利精品第一导航| 色综合天天综合网天天看片| 久久综合精品国产一区二区三区| 国产亚洲精品免费| 亚洲精品一二三| 成人av资源网站| 91精品国产全国免费观看| 欧美不卡一二三| 亚洲欧美日韩国产中文在线| 成人小视频免费观看| 色老头久久综合| 欧美片网站yy| 久久综合色综合88| 久久精品免费观看| 波多野洁衣一区| 欧美系列在线观看| 欧美精品在线观看播放| 日韩精品一区二区三区在线 | 欧美日韩久久不卡| 国产三级欧美三级日产三级99| 老色鬼精品视频在线观看播放| 成人蜜臀av电影| 777久久久精品| 国产欧美一区在线| 国产在线播放一区二区三区| 欧美日韩在线播放一区| 国产欧美一区二区精品仙草咪| 欧美一区二区美女| 中文字幕一区av| 亚洲天堂成人网| 国内成人精品2018免费看| 欧美日韩一区二区在线观看视频| 久久亚洲精精品中文字幕早川悠里| 久久99久久99小草精品免视看| 色综合天天综合在线视频| 精品国产伦一区二区三区免费| 欧美一区二区日韩| 激情综合色丁香一区二区| 欧美三区免费完整视频在线观看| 国产欧美日韩精品一区| 波多野结衣中文字幕一区二区三区 | 福利一区在线观看| 91丨porny丨蝌蚪视频| 亚洲自拍另类综合| 国产suv精品一区二区6| 欧美一区二区久久久| 国产一区二区在线观看免费| 欧美日韩另类一区| 一区二区三区四区国产精品| 黄色成人免费在线| 国产精品毛片a∨一区二区三区| 麻豆传媒一区二区三区| 91福利国产精品| 捆绑调教一区二区三区| 欧美日韩国产欧美日美国产精品| 成人欧美一区二区三区1314 | 国产日韩综合av| 亚洲国产裸拍裸体视频在线观看乱了| 欧美精品久久99久久在免费线 | 日韩一区二区三区四区五区六区| 国产精品丝袜一区| 国产宾馆实践打屁股91| 6080国产精品一区二区| 亚洲成人午夜电影| 在线观看日韩精品| 国产一区二区三区四区五区入口| 欧美精选一区二区| 日本亚洲欧美天堂免费|