mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
ADD: data detectclock
- added clock blocks in plot window. Its a draft. Not working for all clocks.
ADD: STT is now marked as a block in plot window, instead of Marshmellow42 's two lines.
This commit is contained in:
parent
99136c6eef
commit
a47ded5b54
6 changed files with 135 additions and 90 deletions
|
@ -1053,29 +1053,30 @@ int CmdDetectClockRate(const char *Cmd)
|
|||
if (strlen(Cmd) > 6 || strlen(Cmd) == 0 || cmdp == 'h' || cmdp == 'H')
|
||||
return usage_data_detectclock();
|
||||
|
||||
int ans = 0;
|
||||
int clock = 0;
|
||||
switch ( cmdp ) {
|
||||
case 'a' :
|
||||
case 'A' :
|
||||
ans = GetAskClock(Cmd+1, true, false);
|
||||
clock = GetAskClock(Cmd+1, true, false);
|
||||
break;
|
||||
case 'f' :
|
||||
case 'F' :
|
||||
ans = GetFskClock("", true, false);
|
||||
clock = GetFskClock("", true, false);
|
||||
break;
|
||||
case 'n' :
|
||||
case 'N' :
|
||||
ans = GetNrzClock("", true, false);
|
||||
clock = GetNrzClock("", true, false);
|
||||
break;
|
||||
case 'p' :
|
||||
case 'P' :
|
||||
ans = GetPskClock("", true, false);
|
||||
clock = GetPskClock("", true, false);
|
||||
break;
|
||||
default :
|
||||
PrintAndLog ("Please specify a valid modulation to detect the clock of - see option h for help");
|
||||
break;
|
||||
}
|
||||
return ans;
|
||||
RepaintGraphWindow();
|
||||
return clock;
|
||||
}
|
||||
|
||||
char *GetFSKType(uint8_t fchigh, uint8_t fclow, uint8_t invert)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue