sniffer: display F and D values frim PPS

Change-Id: I3641dcb6c24695a6d3dd3a1ee4333f56a07c99f0
This commit is contained in:
Kévin Redon
2018-07-03 15:57:03 +02:00
committed by King Kévin
parent 6e3f1121e6
commit 7406337a7f
3 changed files with 9 additions and 3 deletions

View File

@@ -2,5 +2,11 @@
#include <stdint.h>
/* Table 7 of ISO 7816-3:2006 */
extern const uint16_t fi_table[];
/* Table 8 from ISO 7816-3:2006 */
extern const uint8_t di_table[];
/* compute the F/D ratio based on Fi and Di values */
int compute_fidi_ratio(uint8_t fi, uint8_t di);