| Electronic Components Datasheet Search |
|
AN4430 Datasheet(PDF) 34 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4430 Datasheet(HTML) 34 Page - STMicroelectronics |
|
34 / 42 page ![]() How to use ST NFC package to implement HW enhanced features AN4430 34/42 DocID025722 Rev 1 private static final byte[] CCReadLength = new byte [] {(byte) 0x00, (byte) 0xB0, (byte) 0x00, (byte) 0x00, (byte) 0x02}; public int requestCCReadLength() { byte[] transcieveAnswer = new byte[] { (byte) 0x01 }; if (isoDepCurrentTag == null) isoDepCurrentTag = IsoDep.get(this.currentTag); int cpt = 0; int CCLength = 0; while (( transcieveAnswer[0] == 1 || transcieveAnswer[0] == (byte)0xAA) && cpt <= 1) { try { if (!isoDepCurrentTag.isConnected()) { isoDepCurrentTag.connect(); isoDepCurrentTag.setTimeout(20); } transcieveAnswer = isoDepCurrentTag.transceive(CCReadLength); if (transcieveAnswer[2] == (byte) 0x90 && transcieveAnswer[3] == (byte) 0x00) { CCLength = (int)((transcieveAnswer[0] & 0xFF)<<8) + (int)(transcieveAnswer[1]&0xFF); return CCLength; } else { cpt++; return 0; } } catch (IOException e) { // TODO Auto‐generated catch block e.printStackTrace(); throw new RuntimeException("fail", e); } } return 0; } // End of CCReadLength request |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |