mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
CHG: "hf mf hardnested" - less printing
CHG: some filehandles = NULL.
This commit is contained in:
parent
3c528f5fda
commit
2dcf60f3df
15 changed files with 112 additions and 61 deletions
|
@ -25,15 +25,13 @@ void dummy(char *fmt, ...){}
|
|||
#define prnt dummy
|
||||
#endif
|
||||
|
||||
uint8_t justNoise(uint8_t *BitStream, size_t size)
|
||||
{
|
||||
static const uint8_t THRESHOLD = 123;
|
||||
//test samples are not just noise
|
||||
uint8_t justNoise1 = 1;
|
||||
for(size_t idx=0; idx < size && justNoise1 ;idx++){
|
||||
justNoise1 = BitStream[idx] < THRESHOLD;
|
||||
}
|
||||
return justNoise1;
|
||||
//test samples are not just noise
|
||||
uint8_t justNoise(uint8_t *bits, size_t size) {
|
||||
#define THRESHOLD 123
|
||||
uint8_t val = 1;
|
||||
for(size_t idx=0; idx < size && val ;idx++)
|
||||
val = bits[idx] < THRESHOLD;
|
||||
return val;
|
||||
}
|
||||
|
||||
//by marshmellow
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include <stdbool.h> // for bool
|
||||
|
||||
//generic
|
||||
uint8_t justNoise(uint8_t *bits, size_t size);
|
||||
size_t addParity(uint8_t *BitSource, uint8_t *dest, uint8_t sourceLen, uint8_t pLen, uint8_t pType);
|
||||
int askdemod(uint8_t *BinStream, size_t *size, int *clk, int *invert, int maxErr, uint8_t amp, uint8_t askType);
|
||||
int BiphaseRawDecode(uint8_t * BitStream, size_t *size, int offset, int invert);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue