<sub id="zeco9"></sub>
<sub id="zeco9"></sub>

  • <wbr id="zeco9"><source id="zeco9"></source></wbr>
    <wbr id="zeco9"></wbr>
    <big id="zeco9"></big>
  • <nav id="zeco9"></nav>
      <tr id="zeco9"><p id="zeco9"></p></tr>
      <tr id="zeco9"></tr>

      1. <sub id="zeco9"><table id="zeco9"><small id="zeco9"></small></table></sub>

        RFID读写器函数JAVA调用示例

        北京友我科技RFID读写器 转载请注明出处,本篇地址:http://www.bebaspikiran.com/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读写器:

        18禁亚洲深夜福利入口GIF