Merge r551-563 from trunk.
This commit is contained in:
commit
5b0589c381
4 changed files with 21 additions and 6 deletions
|
|
@ -50,6 +50,9 @@
|
|||
#define REG_CIU_BIT_FRAMING 0x633D
|
||||
#define SYMBOL_TX_LAST_BITS 0x07
|
||||
|
||||
#define SYMBOL_PARAM_fAutomaticRATS 0x10
|
||||
#define SYMBOL_PARAM_fAutomaticATR_RES 0x04
|
||||
|
||||
// Internal parameters flags
|
||||
#define PARAM_NONE 0x00
|
||||
#define PARAM_NAD_USED 0x01
|
||||
|
|
|
|||
11
libnfc/nfc.c
11
libnfc/nfc.c
|
|
@ -312,8 +312,15 @@ bool nfc_configure(nfc_device_t* pnd, const nfc_device_option_t ndo, const bool
|
|||
case NDO_ACCEPT_MULTIPLE_FRAMES:
|
||||
btValue = (bEnable) ? SYMBOL_RX_MULTIPLE : 0x00;
|
||||
if (!pn53x_set_reg(pnd,REG_CIU_RX_MODE,SYMBOL_RX_MULTIPLE,btValue)) return false;
|
||||
return true;
|
||||
|
||||
return true;
|
||||
break;
|
||||
|
||||
case NDO_AUTO_ISO14443_4:
|
||||
// TODO: PN53x parameters could not be read, so we have to buffered current value in order to prevent from configuration overwrite
|
||||
// ATM, buffered current value is not needed due to a single usage of these parameters
|
||||
btValue = (bEnable) ? (SYMBOL_PARAM_fAutomaticRATS | SYMBOL_PARAM_fAutomaticATR_RES): SYMBOL_PARAM_fAutomaticATR_RES;
|
||||
if(!pn53x_set_parameters(pnd,btValue)) return false;
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue