mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
FIX: just noice detection on device / client
This commit is contained in:
parent
4c72acaf63
commit
605d7a2343
1 changed files with 9 additions and 3 deletions
|
@ -32,9 +32,15 @@ extern signal_t* getSignalProperties(void);
|
||||||
|
|
||||||
extern uint32_t compute_mean_uint(uint8_t *in, size_t N);
|
extern uint32_t compute_mean_uint(uint8_t *in, size_t N);
|
||||||
extern int32_t compute_mean_int(int *in, size_t N);
|
extern int32_t compute_mean_int(int *in, size_t N);
|
||||||
|
bool isNoise_int(int *bits, uint32_t size);
|
||||||
|
bool isNoise(uint8_t *bits, uint32_t size);
|
||||||
|
|
||||||
extern bool justNoise_int(int *bits, uint32_t size);
|
// buffer is unsigned on DEVIE
|
||||||
extern bool justNoise(uint8_t *bits, uint32_t size);
|
#ifdef ON_DEVICE
|
||||||
|
#define justNoise(a, b) isNoise((a), (b))
|
||||||
|
#else
|
||||||
|
#define justNoise(a, b) isNoise_int((a), (b))
|
||||||
|
#endif
|
||||||
|
|
||||||
void getNextLow(uint8_t *samples, size_t size, int low, size_t *i);
|
void getNextLow(uint8_t *samples, size_t size, int low, size_t *i);
|
||||||
void getNextHigh(uint8_t *samples, size_t size, int high, size_t *i);
|
void getNextHigh(uint8_t *samples, size_t size, int high, size_t *i);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue