offset calc refactoring

This commit is contained in:
merlokk
2019-07-04 17:38:34 +03:00
parent 26bc8a2889
commit 75b1d9cd01
2 changed files with 14 additions and 6 deletions

View File

@ -40,6 +40,8 @@ typedef struct
#define NFC_CMD_SBLOCK 0xc0
#define IS_SBLOCK(x) ( (((x) & 0xc0) == NFC_CMD_SBLOCK) && (((x) & 0x02) == 0x02) )
extern uint8_t p14443_block_offset(uint8_t pcb);
#define NFC_SBLOCK_DESELECT 0x30
#define NFC_SBLOCK_WTX 0x30