| Electronic Components Datasheet Search |
|
AN4430 Datasheet(PDF) 40 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4430 Datasheet(HTML) 40 Page - STMicroelectronics |
|
40 / 42 page ![]() How to use ST NFC package to implement HW enhanced features AN4430 40/42 DocID025722 Rev 1 Write Example //***********************************************************************/ //* the function send an WriteSingle command (0x0A 0x21) || (0x02 0x21) //* the argument myTag is the intent triggered with the TAG_DISCOVERED //* example : StartAddress {0x00, 0x02} DataToWrite : {0x04 0x14 0xFF 0xB2} //* the function will write {0x04 0x14 0xFF 0xB2} at the address 0002 //***********************************************************************/ public static byte[] SendWriteSingleBlockCommand (Tag myTag, byte[] StartAddress, byte[] DataToWrite, DataDevice ma) { byte[] response = new byte[] {(byte) 0xFF}; byte[] WriteSingleBlockFrame; WriteSingleBlockFrame = new byte[]{(byte) 0x02, (byte) 0x21, StartAddress[1], DataToWrite[0], DataToWrite[1], DataToWrite[2], DataToWrite[3]}; int errorOccured = 1; while(errorOccured != 0) { try { NfcV nfcvTag = NfcV.get(myTag); nfcvTag.close(); nfcvTag.connect(); response = nfcvTag.transceive(WriteSingleBlockFrame); if(response[0] == (byte) 0x00 || response[0] == (byte) 0x01) errorOccured = 0; } catch(Exception e) {… } return response; } } |
|
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 |