style
This commit is contained in:
1 parent
2627f3b3b9
commit
e1ae1cdd26
4 files changed
+44
-8
No files matched your search
+16
-4
@@ -138,6 +138,7 @@ static int CmdNFCType1Help(const char *Cmd);
|
||||
static command_t CommandNFCType1Table[] = {
|
||||
|
||||
{"--------", CmdNFCType1Help, AlwaysAvailable, "-------------- " _CYAN_("NFC Forum Tag Type 1") " ---------------"},
|
||||
// {"format", CmdNFCType1Format, IfPm3Iso14443a, "format ISO-14443-a tag as NFC Tag"},
|
||||
{"read", CmdNFCType1Read, IfPm3Iso14443a, "read NFC Forum Tag Type 1"},
|
||||
// {"write", CmdNFCType1Write, IfPm3Iso14443a, "write NFC Forum Tag Type 1"},
|
||||
{"--------", CmdNFCType1Help, AlwaysAvailable, "--------------------- " _CYAN_("General") " ---------------------"},
|
||||
@@ -165,6 +166,7 @@ static int CmdNFCType2Help(const char *Cmd);
|
||||
static command_t CommandNFCType2Table[] = {
|
||||
|
||||
{"--------", CmdNFCType2Help, AlwaysAvailable, "-------------- " _CYAN_("NFC Forum Tag Type 2") " ---------------"},
|
||||
// {"format", CmdNFCType2Format, IfPm3Iso14443a, "format ISO-14443-a tag as NFC Tag"},
|
||||
{"read", CmdNFCType2Read, IfPm3Iso14443a, "read NFC Forum Tag Type 2"},
|
||||
// {"write", CmdNFCType2Write, IfPm3Iso14443a, "write NFC Forum Tag Type 2"},
|
||||
{"--------", CmdNFCType2Help, AlwaysAvailable, "--------------------- " _CYAN_("General") " ---------------------"},
|
||||
@@ -193,8 +195,9 @@ static int CmdNFCType3Help(const char *Cmd);
|
||||
static command_t CommandNFCType3Table[] = {
|
||||
|
||||
{"--------", CmdNFCType3Help, AlwaysAvailable, "-------------- " _CYAN_("NFC Forum Tag Type 3") " ---------------"},
|
||||
// {"format", CmdNFCType3Format, IfPm3Felica, "format FeliCa tag as NFC Tag"},
|
||||
{"read", CmdNFCType3Read, IfPm3Felica, "read NFC Forum Tag Type 3"},
|
||||
{"write", CmdNFCType3Write, IfPm3Felica, "write NFC Forum Tag Type 3"},
|
||||
// {"write", CmdNFCType3Write, IfPm3Felica, "write NFC Forum Tag Type 3"},
|
||||
{"--------", CmdNFCType3Help, AlwaysAvailable, "--------------------- " _CYAN_("General") " ---------------------"},
|
||||
{"help", CmdNFCType3Help, AlwaysAvailable, "This help"},
|
||||
{NULL, NULL, NULL, NULL}
|
||||
@@ -225,6 +228,7 @@ static int CmdNFCType4AHelp(const char *Cmd);
|
||||
static command_t CommandNFCType4ATable[] = {
|
||||
|
||||
{"--------", CmdNFCType4AHelp, AlwaysAvailable, "--------- " _CYAN_("NFC Forum Tag Type 4 ISO14443A") " ----------"},
|
||||
// {"format", CmdNFCType4AFormat, IfPm3Iso14443a, "format ISO-14443-a tag as NFC Tag"},
|
||||
{"read", CmdNFCType4ARead, IfPm3Iso14443a, "read NFC Forum Tag Type 4 A"},
|
||||
// {"write", CmdNFCType4AWrite, IfPm3Iso14443a, "write NFC Forum Tag Type 4 A"},
|
||||
// {"mfdesread", CmdNFCMFDESRead, IfPm3Iso14443a, "read NDEF from MIFARE DESfire"}, // hf mfdes ndefread
|
||||
@@ -256,6 +260,7 @@ static int CmdNFCType4BHelp(const char *Cmd);
|
||||
static command_t CommandNFCType4BTable[] = {
|
||||
|
||||
{"--------", CmdNFCType4BHelp, AlwaysAvailable, "--------- " _CYAN_("NFC Forum Tag Type 4 ISO14443B") " -------------"},
|
||||
// {"format", CmdNFCType4BFormat, IfPm3Iso14443b, "format ISO-14443-b tag as NFC Tag"},
|
||||
{"read", CmdNFCType4BRead, IfPm3Iso14443b, "read NFC Forum Tag Type 4 B"},
|
||||
// {"write", CmdNFCType4BWrite, IfPm3Iso14443b, "write NFC Forum Tag Type 4 B"},
|
||||
{"--------", CmdNFCType4BHelp, AlwaysAvailable, "--------------------- " _CYAN_("General") " ---------------------"},
|
||||
@@ -284,8 +289,9 @@ static int CmdNFCType5Help(const char *Cmd);
|
||||
static command_t CommandNFCType5Table[] = {
|
||||
|
||||
{"--------", CmdNFCType5Help, AlwaysAvailable, "-------------- " _CYAN_("NFC Forum Tag Type 5") " ---------------"},
|
||||
// {"format", CmdNFCType5Format, IfPm3Iso15693, "format ISO-15693 tag as NFC Tag"},
|
||||
{"read", CmdNFCType5Read, IfPm3Iso15693, "read NFC Forum Tag Type 5"},
|
||||
{"write", CmdNFCType5Write, IfPm3Iso15693, "write NFC Forum Tag Type 5"},
|
||||
// {"write", CmdNFCType5Write, IfPm3Iso15693, "write NFC Forum Tag Type 5"},
|
||||
{"--------", CmdNFCType5Help, AlwaysAvailable, "--------------------- " _CYAN_("General") " ---------------------"},
|
||||
{"help", CmdNFCType5Help, AlwaysAvailable, "This help"},
|
||||
{NULL, NULL, NULL, NULL}
|
||||
@@ -311,6 +317,11 @@ static int CmdNFCMFCFormat(const char *Cmd) {
|
||||
return CmdHFMFNDEFFormat(Cmd);
|
||||
}
|
||||
|
||||
static int CmdNFCMFCWrite(const char *Cmd) {
|
||||
return CmdHFMFNDEFWrite(Cmd);
|
||||
}
|
||||
|
||||
|
||||
static int CmdNFCMFPRead(const char *Cmd) {
|
||||
return CmdHFMFPNDEFRead(Cmd);
|
||||
}
|
||||
@@ -320,9 +331,9 @@ static int CmdNFCMFHelp(const char *Cmd);
|
||||
static command_t CommandMFTable[] = {
|
||||
|
||||
{"--------", CmdNFCMFHelp, AlwaysAvailable, "--------- " _CYAN_("NFC Type MIFARE Classic/Plus Tag") " --------"},
|
||||
{"cread", CmdNFCMFCRead, IfPm3Iso14443a, "read NFC Type MIFARE Classic Tag"},
|
||||
// {"cwrite", CmdNFCMFCWrite, IfPm3Iso14443a, "write NFC Type MIFARE Classic Tag"},
|
||||
{"cformat", CmdNFCMFCFormat, IfPm3Iso14443a, "format MIFARE Classic Tag as NFC Tag"},
|
||||
{"cread", CmdNFCMFCRead, IfPm3Iso14443a, "read NFC Type MIFARE Classic Tag"},
|
||||
{"cwrite", CmdNFCMFCWrite, IfPm3Iso14443a, "write NFC Type MIFARE Classic Tag"},
|
||||
{"pread", CmdNFCMFPRead, IfPm3Iso14443a, "read NFC Type MIFARE Plus Tag"},
|
||||
{"--------", CmdNFCMFHelp, AlwaysAvailable, "--------------------- " _CYAN_("General") " ---------------------"},
|
||||
{"help", CmdNFCMFHelp, AlwaysAvailable, "This help"},
|
||||
@@ -391,6 +402,7 @@ static command_t CommandTable[] = {
|
||||
{"--------", CmdHelp, AlwaysAvailable, "--------------------- " _CYAN_("General") " ---------------------"},
|
||||
{"help", CmdHelp, AlwaysAvailable, "This help"},
|
||||
{"decode", CmdNfcDecode, AlwaysAvailable, "Decode NDEF records"},
|
||||
// {"encode", CmdNfcEncode, AlwaysAvailable, "Encode NDEF records"},
|
||||
{NULL, NULL, NULL, NULL}
|
||||
};
|
||||
|
||||
|
||||
@@ -718,8 +718,9 @@ const static vocabulory_t vocabulory[] = {
|
||||
{ 1, "nfc type4a help" },
|
||||
{ 0, "nfc type4b read" },
|
||||
{ 1, "nfc type4b help" },
|
||||
{ 0, "nfc mf cread" },
|
||||
{ 0, "nfc mf cformat" },
|
||||
{ 0, "nfc mf cread" },
|
||||
{ 0, "nfc mf cwrite" },
|
||||
{ 0, "nfc mf pread" },
|
||||
{ 1, "nfc mf help" },
|
||||
{ 0, "nfc barcode read" },
|
||||
|
||||
Reference in new issue
Block a user