mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
FIX: 'hf legic sim' - longer timeout for writes? (@drandreas)
see https://github.com/RfidResearchGroup/proxmark3/issues/83
This commit is contained in:
parent
4fe4d74bfe
commit
803aab7431
2 changed files with 32 additions and 32 deletions
|
@ -81,7 +81,7 @@ static inline uint8_t rx_byte_from_fpga() {
|
||||||
// To reduce CPU time the amplitude is approximated by using linear functions:
|
// To reduce CPU time the amplitude is approximated by using linear functions:
|
||||||
// am = MAX(ABS(i),ABS(q)) + 1/2*MIN(ABS(i),ABSq))
|
// am = MAX(ABS(i),ABS(q)) + 1/2*MIN(ABS(i),ABSq))
|
||||||
//
|
//
|
||||||
// Note: The SSC receiver is never synchronized the calculation my be performed
|
// Note: The SSC receiver is never synchronized the calculation may be performed
|
||||||
// on a i/q pair from two subsequent correlations, but does not matter.
|
// on a i/q pair from two subsequent correlations, but does not matter.
|
||||||
static inline int32_t sample_power() {
|
static inline int32_t sample_power() {
|
||||||
int32_t q = (int8_t)rx_byte_from_fpga(); q = ABS(q);
|
int32_t q = (int8_t)rx_byte_from_fpga(); q = ABS(q);
|
||||||
|
|
|
@ -46,7 +46,7 @@ static uint32_t last_frame_end; /* ts of last bit of previews rx or tx frame */
|
||||||
#define RWD_TIME_PAUSE 4 /* 18.9us */
|
#define RWD_TIME_PAUSE 4 /* 18.9us */
|
||||||
#define RWD_TIME_1 21 /* RWD_TIME_PAUSE 18.9us off + 80.2us on = 99.1us */
|
#define RWD_TIME_1 21 /* RWD_TIME_PAUSE 18.9us off + 80.2us on = 99.1us */
|
||||||
#define RWD_TIME_0 13 /* RWD_TIME_PAUSE 18.9us off + 42.4us on = 61.3us */
|
#define RWD_TIME_0 13 /* RWD_TIME_PAUSE 18.9us off + 42.4us on = 61.3us */
|
||||||
#define RWD_CMD_TIMEOUT 40 /* 40 * 99.1us (arbitrary value) */
|
#define RWD_CMD_TIMEOUT 80 /* 80 * 99.1us (arbitrary value) */
|
||||||
#define RWD_MIN_FRAME_LEN 6 /* Shortest frame is 6 bits */
|
#define RWD_MIN_FRAME_LEN 6 /* Shortest frame is 6 bits */
|
||||||
#define RWD_MAX_FRAME_LEN 23 /* Longest frame is 23 bits */
|
#define RWD_MAX_FRAME_LEN 23 /* Longest frame is 23 bits */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue