From bd50760a243ac1ce3492b92d6fa9ddb7e019c4ad Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 22 Dec 2019 11:20:39 +0100 Subject: [PATCH] LTO-CM commands defines --- include/protocols.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/protocols.h b/include/protocols.h index 691d2757e..d04173557 100644 --- a/include/protocols.h +++ b/include/protocols.h @@ -593,5 +593,23 @@ ISO 7816-4 Basic interindustry commands. For command APDU's. #define HITAG2_WRITE_PAGE 0x82 // page number in bits 5 to 3, page number inverted in bit 0 and following 2 bits #define HITAG2_HALT 0x00 // left 5 bits only + +// LTO-CM commands +#define LTO_REQ_STANDARD 0x45 +#define LTO_REQ_ALL 0x4A +#define LTO_READWORD 0x40 // read 2 bytes (word) +#define LTO_READBLOCK 0x30 +#define LTO_READBLOCK_CONT 0x80 +#define LTO_SELECT 0x93 +#define LTO_SELECT_1 0x97 +#define LTO_WRITEWORD 0xB0 // write 2 bytes (word) +#define LTO_WRITEBLOCK 0xA0 +#define LTO_HALT 0x50 +#define LTO_TEST_CMD_1 0x0E +#define LTO_TEST_CMD_2 0x6C + +// 0x0A = ACK +// 0x05 = NACK + #endif // PROTOCOLS_H