From 3ddf7a0ce550f7d26b0405e65eb0d4d8c11988df Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 20 Dec 2019 11:23:27 +0100 Subject: [PATCH] iso15 - add some annotation for write mulit --- client/cmdhflist.c | 3 +++ include/protocols.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/client/cmdhflist.c b/client/cmdhflist.c index 9f1d9ce23..7a46b5deb 100644 --- a/client/cmdhflist.c +++ b/client/cmdhflist.c @@ -404,6 +404,9 @@ void annotateIso15693(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize) { case ISO15693_READ_MULTI_BLOCK: snprintf(exp, size, "READ_MULTI_BLOCK"); return; + case ISO15693_WRITE_MULTI_BLOCK: + snprintf(exp, size, "WRITE_MULTI_BLOCK"); + return; case ISO15693_SELECT: snprintf(exp, size, "SELECT"); return; diff --git a/include/protocols.h b/include/protocols.h index 8018ae62e..691d2757e 100644 --- a/include/protocols.h +++ b/include/protocols.h @@ -56,6 +56,7 @@ ISO15693 21 = Write Block (usage: 0221+1byte block number+4bytes data+2bytes ISO15693-CRC - answer: 4bytes) 22 = Lock Block 23 = Read Multiple Blocks (usage: 0223+1byte 1st block to read+1byte last block to read+2bytes ISO15693-CRC) + 24 = Write Multiple Blocks 25 = Select 26 = Reset to Ready 27 = Write AFI @@ -243,6 +244,7 @@ ISO 7816-4 Basic interindustry commands. For command APDU's. #define ISO15693_WRITEBLOCK 0x21 #define ISO15693_LOCKBLOCK 0x22 #define ISO15693_READ_MULTI_BLOCK 0x23 +#define ISO15693_WRITE_MULTI_BLOCK 0x24 #define ISO15693_SELECT 0x25 #define ISO15693_RESET_TO_READY 0x26 #define ISO15693_WRITE_AFI 0x27