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

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

?? m500a.h

?? 包括讀卡器源代碼
?? 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一区二区三区免费野_久草精品视频
国产精品久久久久久久久图文区| 洋洋av久久久久久久一区| 午夜国产精品一区| 欧美日韩高清影院| 亚洲高清免费在线| 日韩欧美色综合网站| 久久国产综合精品| 久久亚洲捆绑美女| av在线播放不卡| 亚洲最色的网站| 欧美一区二区国产| 国产老女人精品毛片久久| 国产精品蜜臀在线观看| 最新不卡av在线| 色哟哟欧美精品| 午夜精品免费在线| 久久婷婷色综合| 亚洲午夜三级在线| 欧美刺激午夜性久久久久久久 | 夜夜爽夜夜爽精品视频| 欧美精品一区二| 粗大黑人巨茎大战欧美成人| 亚洲色图制服丝袜| 日韩午夜激情电影| 国产91露脸合集magnet| 亚洲综合色丁香婷婷六月图片| 91精品在线一区二区| 丁香天五香天堂综合| 亚洲一区二区三区激情| 欧美一区二区三级| 国产电影一区二区三区| 洋洋av久久久久久久一区| 久久只精品国产| 色综合久久久久综合体桃花网| 午夜精品一区在线观看| 国产精品久久午夜| 欧美一级欧美三级| 色噜噜狠狠色综合欧洲selulu| 久久精品国产99久久6| 亚洲精品视频在线观看网站| 亚洲精品一线二线三线| 欧美三级蜜桃2在线观看| 国产乱码精品一区二区三区av | 亚洲欧美一区二区在线观看| 欧美日韩精品电影| 国产成人精品免费视频网站| 亚洲6080在线| 亚洲免费av网站| 久久亚洲精华国产精华液| 欧美色大人视频| 97成人超碰视| 国产一区福利在线| 日韩激情一区二区| 亚洲欧洲无码一区二区三区| 久久久天堂av| 欧美一二三四在线| 欧美视频一区二区| 99国产精品久久久久| 国产不卡免费视频| 国内精品国产三级国产a久久| 日本在线不卡一区| 亚洲一二三四区| 国产精品久久久久桃色tv| 久久精品一区蜜桃臀影院| 日韩美女在线视频| 日韩一区二区在线看| 欧美三级日韩在线| 99久久99久久精品免费看蜜桃| 国产乱子轮精品视频| 美美哒免费高清在线观看视频一区二区 | 久久久久久久久免费| 在线播放欧美女士性生活| 色综合久久中文字幕| 91香蕉视频黄| 色综合久久88色综合天天6| jizzjizzjizz欧美| 成a人片亚洲日本久久| 成人黄色av网站在线| 成人高清伦理免费影院在线观看| 国产成人8x视频一区二区| 国产成人精品综合在线观看| 国产精品123区| 成人一区二区三区| 99视频国产精品| 一本大道av一区二区在线播放| 成人av集中营| 99久久精品免费精品国产| 一本大道久久a久久精二百 | 亚洲一卡二卡三卡四卡| 亚洲成a人v欧美综合天堂| 五月天亚洲精品| 日韩成人av影视| 日本一区二区三区四区在线视频| 色综合 综合色| 欧美三级午夜理伦三级中视频| 884aa四虎影成人精品一区| 欧美一区二区视频网站| 日韩欧美一区二区在线视频| 久久人人爽爽爽人久久久| 国产精品视频看| 亚洲国产一区视频| 老司机免费视频一区二区三区| 国产成人精品免费在线| 一本一道久久a久久精品综合蜜臀| 日本久久精品电影| 6080yy午夜一二三区久久| 久久这里只精品最新地址| 亚洲欧洲日韩在线| 日韩国产一区二| 粉嫩av亚洲一区二区图片| 日本国产一区二区| 国产乱码精品1区2区3区| 视频一区在线播放| 国产不卡免费视频| 欧美日韩亚洲丝袜制服| 日韩一级大片在线| 亚洲欧洲另类国产综合| 日本强好片久久久久久aaa| 国产在线视频一区二区| 色久优优欧美色久优优| 精品少妇一区二区| 亚洲卡通动漫在线| 国产一区二区0| 美腿丝袜在线亚洲一区| 欧美日韩一区二区三区在线看| av在线播放成人| 日韩精品一区二区三区三区免费| 国产免费观看久久| 日本中文一区二区三区| 99视频超级精品| 久久久久久久精| 婷婷六月综合网| 91视频com| 国产欧美在线观看一区| 日本中文字幕一区二区视频| 国产aⅴ综合色| 日韩av成人高清| 91亚洲国产成人精品一区二区三| 国产一区二区美女诱惑| 欧美日韩一区小说| 日韩理论电影院| 国产一区二区视频在线| 欧美美女bb生活片| 亚洲欧洲精品成人久久奇米网| 精品一二线国产| 91精品国产一区二区| 一区二区三区在线观看国产| 成人国产电影网| 国产日韩一级二级三级| 美女尤物国产一区| 4hu四虎永久在线影院成人| 伊人一区二区三区| 午夜影院久久久| 欧美这里有精品| 亚洲人成精品久久久久久| 成人毛片视频在线观看| 久久亚洲免费视频| 国产精品一级黄| 久久综合色鬼综合色| 久久精品免费看| 日韩精品在线网站| 蜜桃一区二区三区四区| 91麻豆精品国产91久久久资源速度 | 婷婷中文字幕综合| 欧美日韩免费高清一区色橹橹| 亚洲视频一二三| av在线播放成人| 亚洲欧美日韩国产手机在线 | 丁香五精品蜜臀久久久久99网站| 精品国产一区二区三区久久久蜜月 | 美女诱惑一区二区| 欧美大片免费久久精品三p| 日本不卡免费在线视频| 欧美一区二区三区视频在线| 亚洲va欧美va人人爽| 欧美视频在线一区二区三区| 亚洲一卡二卡三卡四卡五卡| 欧美人动与zoxxxx乱| 亚洲123区在线观看| 美腿丝袜亚洲一区| 久久女同互慰一区二区三区| 高清成人在线观看| 中文字幕佐山爱一区二区免费| 色婷婷av一区二区三区gif| 亚洲精品视频观看| 欧美精品v日韩精品v韩国精品v| 午夜精品久久久久久久99樱桃| 欧美一级免费大片| 免费在线视频一区| 久久这里只有精品首页| av电影一区二区| 亚洲成人综合在线| 精品国产髙清在线看国产毛片| 国产精品一区二区在线播放 | 蜜桃av一区二区三区| 久久久久久久免费视频了| av一区二区三区黑人| 亚洲h在线观看| 日韩精品一区二区三区视频在线观看 | 青椒成人免费视频|