mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
MRTD add file lookup by tag and EF.COM format
This commit is contained in:
@@ -48,6 +48,7 @@ typedef struct {
|
||||
} MrtdData;
|
||||
|
||||
typedef struct {
|
||||
const char* name;
|
||||
const uint8_t short_id;
|
||||
const uint16_t file_id;
|
||||
const uint8_t tag;
|
||||
@@ -83,6 +84,13 @@ struct EFFormat {
|
||||
|
||||
extern struct EFFormat EF;
|
||||
|
||||
#define MAX_EFCOM_TAGS 18
|
||||
typedef struct {
|
||||
uint16_t lds_version; // xxyy => xx.yy (major.minor)
|
||||
uint32_t unicode_version; // aabbcc => aa.bb.cc (major.minor.release)
|
||||
uint8_t tag_list[MAX_EFCOM_TAGS];
|
||||
} EFComFormat;
|
||||
|
||||
//TODO: description
|
||||
MrtdApplication* mrtd_alloc_init(FuriHalNfcTxRxContext* tx_rx);
|
||||
bool mrtd_select_app(MrtdApplication* app, AIDValue aid);
|
||||
|
||||
Reference in New Issue
Block a user