diff options
author | Martijn Coenen <martijn.coenen@nxp.com> | 2011-01-12 20:44:37 +0100 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2011-01-18 11:14:26 -0800 |
commit | 72854a2c28b99f9ab6aa60c906d5b3c1a36b04d7 (patch) | |
tree | 2611ea663501b02ac6b28662b0dff692b9c99b84 /src/phLibNfc.h | |
parent | 434eb43979d170509b9b28c0598e5f44e31aa348 (diff) | |
download | external_libnfc-nxp-72854a2c28b99f9ab6aa60c906d5b3c1a36b04d7.zip external_libnfc-nxp-72854a2c28b99f9ab6aa60c906d5b3c1a36b04d7.tar.gz external_libnfc-nxp-72854a2c28b99f9ab6aa60c906d5b3c1a36b04d7.tar.bz2 |
Implement IsoDep timeout handling (libNFC).
Made the ISO XCHG timer (used for IsoDep transceive's) a configurable
setting. When this timer triggers in the hardware, the transaction will be
aborted and the connection to the tag is broken.
Also made the HCI timer configurable. This timer serves as a software watchdog
for any HCI transaction.
Change-Id: I927c7755378f793899c6d262a2f23ab5dca3817b
Diffstat (limited to 'src/phLibNfc.h')
-rw-r--r-- | src/phLibNfc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/phLibNfc.h b/src/phLibNfc.h index c09815a..bfd3eb7 100644 --- a/src/phLibNfc.h +++ b/src/phLibNfc.h @@ -845,6 +845,17 @@ NFCSTATUS phLibNfc_HW_Reset (); NFCSTATUS phLibNfc_Download_Mode (); +// timeout is 8 bits +// bits [0..3] => timeout value, (256*16/13.56*10^6) * 2^value +// [0] -> 0.0003s +// .. +// [14] -> 4.9s +// [15] -> not allowed +// bit [4] => timeout enable +// bit [5..7] => unused +NFCSTATUS phLibNfc_SetIsoXchgTimeout(uint8_t timeout); +NFCSTATUS phLibNfc_SetHciTimeout(uint32_t timeout_in_ms); + /** * \ingroup grp_lib_nfc * |