From 5538fbd20f81a947e5242f39f65dc9ee845d9654 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 20 Oct 2010 08:34:06 +0000 Subject: [PATCH] Add NBR_847 (used with ISO14443B) and update convert function. --- include/nfc/nfc-types.h | 1 + libnfc/chips/pn53x.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/include/nfc/nfc-types.h b/include/nfc/nfc-types.h index d4651ed..a8e9ad0 100644 --- a/include/nfc/nfc-types.h +++ b/include/nfc/nfc-types.h @@ -305,6 +305,7 @@ typedef enum { NBR_106, NBR_212, NBR_424, + NBR_847, } nfc_baud_rate_t; /** diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index 4871007..c32ff24 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -1521,6 +1521,9 @@ pn53x_nm_to_pm(const nfc_modulation_t nm) case NBR_424: return PM_ISO14443B_424; break; + case NBR_847: + return PM_ISO14443B_847; + break; case NBR_UNDEFINED: // XXX What to do ? break;