mirror of
https://github.com/Proxmark/proxmark3.git
synced 2024-11-23 14:00:18 -08:00
496bb4be33
* add loooong timeout for UPDATE command * add flags FLAG_ICLASS_READER_INIT and FLAG_ICLASS_READER_CLEARTRACE * don't overwrite trace buffer during 'hf iclass dump' * fix long waiting time when start_time==0 in TransmitTo15693Tag() * remove some additional debug prints * refactoring: move helper functions from protocols.c to cmdhficlass.c * add 'h' and '1' options to 'hf iclass reader' (from RRG repository) * use correct key when only CreditKey is given in 'hf iclass dump' * separate select_and_auth * DropField() on errors * dump last block in 'hf iclass dump' * display correct memory size (number of blocks) in 'hf iclass reader' and dump * more whitespace fixes
27 lines
510 B
C
27 lines
510 B
C
#include "protocols.h"
|
|
#include <stdint.h>
|
|
|
|
// ATA55xx shared presets & routines
|
|
uint32_t GetT55xxClockBit(uint32_t clock) {
|
|
switch (clock) {
|
|
case 128:
|
|
return T55x7_BITRATE_RF_128;
|
|
case 100:
|
|
return T55x7_BITRATE_RF_100;
|
|
case 64:
|
|
return T55x7_BITRATE_RF_64;
|
|
case 50:
|
|
return T55x7_BITRATE_RF_50;
|
|
case 40:
|
|
return T55x7_BITRATE_RF_40;
|
|
case 32:
|
|
return T55x7_BITRATE_RF_32;
|
|
case 16:
|
|
return T55x7_BITRATE_RF_16;
|
|
case 8:
|
|
return T55x7_BITRATE_RF_8;
|
|
default:
|
|
return 0;
|
|
}
|
|
}
|