Added hf iclass sam --info

Added hf iclass sam --info command that skips any card communication command and just interacts with the SAM to return:

1- Sam Firmware Version
2- Sam Firmware ID
3- Sam Serial Number
This commit is contained in:
Antiklesys 2025-06-11 01:06:38 +08:00
commit 7fb5716ea3
5 changed files with 94 additions and 12 deletions

View file

@ -39,7 +39,8 @@ int sam_send_payload(
uint16_t *response_len
);
int sam_get_version(void);
int sam_get_version(bool info);
int sam_get_serial_number(void);
uint8_t *sam_find_asn1_node(const uint8_t *root, const uint8_t type);
void sam_append_asn1_node(const uint8_t *root, const uint8_t *node, uint8_t type, const uint8_t *const data, uint8_t len);