Use a new current target pointer to choose correctly the sending/receiving method (ie. TgSetData/TgGetData or TgResponseToInitiator/TgGetInitiatorCommand).

This commit is contained in:
Romuald Conty 2011-04-27 14:42:27 +00:00
parent 1107b226ac
commit 6fc4a5b70a
2 changed files with 35 additions and 6 deletions

View file

@ -150,6 +150,7 @@ struct pn53x_io {
struct pn53x_data {
pn53x_type type;
pn53x_power_mode power_mode;
nfc_target_t* current_target;
const struct pn53x_io * io;
/** 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;