mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
capabilities: more IsAvailable helpers
This commit is contained in:
parent
ca43afa19b
commit
10489db97d
2 changed files with 99 additions and 0 deletions
|
@ -27,12 +27,97 @@ bool IfPm3Present(void) {
|
|||
return session.pm3_present;
|
||||
}
|
||||
|
||||
bool IfPm3Flash(void) {
|
||||
if (!IfPm3Present())
|
||||
return false;
|
||||
// TODO
|
||||
// capabilities.hw_available_flash
|
||||
return pm3_capabilities.compiled_with_flash;
|
||||
}
|
||||
|
||||
bool IfPm3Smartcard(void) {
|
||||
if (!IfPm3Present())
|
||||
return false;
|
||||
// TODO
|
||||
// capabilities.hw_available_smartcard
|
||||
return pm3_capabilities.compiled_with_smartcard;
|
||||
}
|
||||
|
||||
bool IfPm3Fpc(void) {
|
||||
if (!IfPm3Present())
|
||||
return false;
|
||||
return pm3_capabilities.compiled_with_fpc;
|
||||
}
|
||||
|
||||
bool IfPm3FpcHost(void) {
|
||||
if (!IfPm3Present())
|
||||
return false;
|
||||
// TODO
|
||||
// capabilities.hw_available_fpc_host
|
||||
return pm3_capabilities.compiled_with_fpc_host;
|
||||
}
|
||||
|
||||
bool IfPm3Lf(void) {
|
||||
if (!IfPm3Present())
|
||||
return false;
|
||||
return pm3_capabilities.compiled_with_lf;
|
||||
}
|
||||
|
||||
bool IfPm3Hitag(void) {
|
||||
if (!IfPm3Present())
|
||||
return false;
|
||||
return pm3_capabilities.compiled_with_hitag;
|
||||
}
|
||||
|
||||
bool IfPm3Hfsniff(void) {
|
||||
if (!IfPm3Present())
|
||||
return false;
|
||||
return pm3_capabilities.compiled_with_hfsniff;
|
||||
}
|
||||
|
||||
bool IfPm3Iso14443a(void) {
|
||||
if (!IfPm3Present())
|
||||
return false;
|
||||
return pm3_capabilities.compiled_with_iso14443a;
|
||||
}
|
||||
|
||||
bool IfPm3Iso14443a(void) {
|
||||
if (!IfPm3Present())
|
||||
return false;
|
||||
return pm3_capabilities.compiled_with_iso14443b;
|
||||
}
|
||||
|
||||
bool IfPm3Iso15693(void) {
|
||||
if (!IfPm3Present())
|
||||
return false;
|
||||
return pm3_capabilities.compiled_with_iso15693;
|
||||
}
|
||||
|
||||
bool IfPm3Felica(void) {
|
||||
if (!IfPm3Present())
|
||||
return false;
|
||||
return pm3_capabilities.compiled_with_felica;
|
||||
}
|
||||
|
||||
bool IfPm3Legicrf(void) {
|
||||
if (!IfPm3Present())
|
||||
return false;
|
||||
return pm3_capabilities.compiled_with_legicrf;
|
||||
}
|
||||
|
||||
bool IfPm3Iclass(void) {
|
||||
if (!IfPm3Present())
|
||||
return false;
|
||||
return pm3_capabilities.compiled_with_iclass;
|
||||
}
|
||||
|
||||
bool IfPm3Lcd(void) {
|
||||
if (!IfPm3Present())
|
||||
return false;
|
||||
return pm3_capabilities.compiled_with_lcd;
|
||||
}
|
||||
|
||||
|
||||
void CmdsHelp(const command_t Commands[]) {
|
||||
if (Commands[0].Name == NULL) return;
|
||||
int i = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue