Better handling of SetParameters command, use a cache, prevent from double set, adjust comments, remove junk code.

This commit is contained in:
Romuald Conty 2010-10-06 15:12:33 +00:00
parent 623c8bbeef
commit d9505bbbcc
8 changed files with 65 additions and 38 deletions

View file

@ -69,8 +69,10 @@ typedef struct {
bool bPar;
/** Should the PN53x chip handle frames encapsulation and chaining */
bool bEasyFraming;
/** The last tx bits setting, we need to reset this if it does not apply anymore */
/** Register cache for REG_CIU_BIT_FRAMING, SYMBOL_TX_LAST_BITS: The last TX bits setting, we need to reset this if it does not apply anymore */
uint8_t ui8TxBits;
/** Register cache for SetParameters function. */
uint8_t ui8Parameters;
/** Last error reported by the PCD / encountered by the PCD driver
* MSB LSB
* | 00 | 00 |