summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Martijn Coenen <maco@google.com> 2016-02-05 09:38:16 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-02-05 09:38:16 +0000
commit1f4f7190a8fe6bd87fd9dd198cb711cb1a540354 (patch)
treec450d40e9cee3020f22a3a8c14474e6a5616dea7
parentf3c432059c44e8e74b0385adde5f619e4d8eba0d (diff)
parent6711e0203305ff7de001cc5ce557f878bf95a938 (diff)
Merge "Improve NFC-F transceive() docs."
-rw-r--r--core/java/android/nfc/tech/NfcF.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/java/android/nfc/tech/NfcF.java b/core/java/android/nfc/tech/NfcF.java
index b3e3ab6251c8..44871212daef 100644
--- a/core/java/android/nfc/tech/NfcF.java
+++ b/core/java/android/nfc/tech/NfcF.java
@@ -98,8 +98,13 @@ public final class NfcF extends BasicTagTechnology {
/**
* Send raw NFC-F commands to the tag and receive the response.
*
- * <p>Applications must not append the SoD (length) or EoD (CRC) to the payload,
- * it will be automatically calculated.
+ * <p>Applications must not prefix the SoD (preamble and sync code)
+ * and/or append the EoD (CRC) to the payload, it will be automatically calculated.
+ *
+ * <p>A typical NFC-F frame for this method looks like:
+ * <pre>
+ * LENGTH (1 byte) --- CMD (1 byte) -- IDm (8 bytes) -- PARAMS (LENGTH - 10 bytes)
+ * </pre>
*
* <p>Use {@link #getMaxTransceiveLength} to retrieve the maximum amount of bytes
* that can be sent with {@link #transceive}.