mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-24 19:53:08 +00:00
4ad5245969
* App lfrfid: update emulator to process external data. * App lfrfid: cleanup emulator * App lfrfid: cli interface * Lib: arguments parser lib Co-authored-by: あく <alleteam@gmail.com>
33 lines
No EOL
666 B
C++
33 lines
No EOL
666 B
C++
#include "key-info.h"
|
|
|
|
const char* lfrfid_key_get_type_string(LfrfidKeyType type) {
|
|
switch(type) {
|
|
case LfrfidKeyType::KeyEM4100:
|
|
return "EM4100";
|
|
break;
|
|
case LfrfidKeyType::KeyH10301:
|
|
return "H10301";
|
|
break;
|
|
case LfrfidKeyType::KeyI40134:
|
|
return "I40134";
|
|
break;
|
|
}
|
|
|
|
return "Unknown";
|
|
}
|
|
|
|
uint8_t lfrfid_key_get_type_data_count(LfrfidKeyType type) {
|
|
switch(type) {
|
|
case LfrfidKeyType::KeyEM4100:
|
|
return 5;
|
|
break;
|
|
case LfrfidKeyType::KeyH10301:
|
|
return 3;
|
|
break;
|
|
case LfrfidKeyType::KeyI40134:
|
|
return 3;
|
|
break;
|
|
}
|
|
|
|
return 0;
|
|
} |