| Electronic Components Datasheet Search |
|
AN4430 Datasheet(PDF) 35 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4430 Datasheet(HTML) 35 Page - STMicroelectronics |
|
35 / 42 page ![]() DocID025722 Rev 1 35/42 AN4430 How to use ST NFC package to implement HW enhanced features 41 At this stage, the whole CC file is stored in the buffer set in requestReadBinary’s parameter. Current activity may then parse the buffer to fill a CCFile structured object: private static final byte[] readBinary = new byte [] {(byte) 0x00, (byte) 0xB0, (byte) 0x00, (byte) 0x00, (byte) 0x00}; private int requestReadBinary(int size, byte [] buffer) { byte[] transcieveAnswer = new byte[] { (byte) 0x00 }; if (isoDepCurrentTag == null) isoDepCurrentTag = IsoDep.get(this.currentTag); int cpt = 0; byte[] readcmd = new byte[readBinary.length]; System.arraycopy(readBinary, 0, readcmd, 0, readBinary.length); readcmd[4] = (byte) (size & 0xFF); try { if (!isoDepCurrentTag.isConnected()) { isoDepCurrentTag.connect(); isoDepCurrentTag.setTimeout(20); } transcieveAnswer = isoDepCurrentTag.transceive(readcmd); if (transcieveAnswer[size] == (byte) 0x90 && transcieveAnswer[size+1] == (byte) 0x00) { System.arraycopy(transcieveAnswer, 0, buffer, 0, size); return 1; } else { cpt++; return 0; } } catch (IOException e) { // TODO Auto‐generated catch block e.printStackTrace(); throw new RuntimeException("fail", e); } } _CCHandler = new stnfccchandler(CCBinary); |
|
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 |