<td id="n3ws3"></td>
          <th id="n3ws3"></th>
            <b id="n3ws3"><menuitem id="n3ws3"></menuitem></b>
            <del id="n3ws3"><form id="n3ws3"></form></del>
            <b id="n3ws3"><menuitem id="n3ws3"></menuitem></b>
          1. <dd id="n3ws3"><dl id="n3ws3"></dl></dd>
            RFID讀寫器函數JAVA調用示例

            北京友我科技RFID讀寫器 轉載請注明出處,本篇地址:http://www.gdfkthg.cn/ywdn/NoteDetails.asp?id=15

            RFID讀寫器函數中java聲明中有很多Pointer類型的參數,對于此類參數的調用方法示例如下:

            if(NFCReader.YW_SearchCardModeEx(ReaderID, NFCReader.SEARCHMODE_14443A,0)<0)return;

            //按照參數的實際大小,聲明一個與之對應的大小的Pointer類型 

            Pointer pCardType = new Pointer(MemoryBlockFactory.createMemoryBlock(2));

            if(NFCReader.YW_RequestCard(ReaderID, NFCReader.REQUESTMODE_ALL, pCardType)<0)return;

            //CardType 作為short類型,從類型Pointer中取出的辦法

            CardType = pCardType.getAsShort(0);

            Pointer pCardMem = new Pointer(MemoryBlockFactory.createMemoryBlock(1));

            Pointer pLengthUID = new Pointer(MemoryBlockFactory.createMemoryBlock(1));

            Pointer pUID = new Pointer(MemoryBlockFactory.createMemoryBlock(20));

                           if(NFCReader.YW_AntiCollideAndSelect(ReaderID,Mode,pCardMem,pLengthUID,pUID)<0)return;

            CardMem = pCardMem.getAsByte(0);

            LengthUID = pLengthUID.getAsByte(0);

            //UID數組從Pointer中取出的辦法

            UID=pUID.getMemory();

            edtS50UID.setText(HexToStr(UID, LengthUID));


            支持的RFID讀寫器:

              <td id="n3ws3"></td>
                    <th id="n3ws3"></th>
                      <b id="n3ws3"><menuitem id="n3ws3"></menuitem></b>
                      <del id="n3ws3"><form id="n3ws3"></form></del>
                      <b id="n3ws3"><menuitem id="n3ws3"></menuitem></b>
                    1. <dd id="n3ws3"><dl id="n3ws3"></dl></dd>
                      翔田千里二区二区二区 | 99久久夜色精品国产亚洲 | 国产婷婷激情综合 | 午夜精品久久久久久久99老熟妇 | 夜夜爽妓女8888视频免费观看 |