summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Tomas <dtomas.nxp@gmail.com>2011-04-21 14:11:28 -0700
committerNick Pelly <npelly@google.com>2011-05-19 11:49:00 -0700
commitc1f33130d9d2100e6232f8f3c782949c75205be6 (patch)
treedf4ca2b3312e0f14b3e90eb0c06c3c4dd9a216c6 /src
parent651794422f331be5865ed8afcab6a56e3abe7521 (diff)
downloadexternal_libnfc-nxp-c1f33130d9d2100e6232f8f3c782949c75205be6.zip
external_libnfc-nxp-c1f33130d9d2100e6232f8f3c782949c75205be6.tar.gz
external_libnfc-nxp-c1f33130d9d2100e6232f8f3c782949c75205be6.tar.bz2
Patch to enable low level traces.
This patch permit to display the NFC frames exchanged through the I2C line. To enable that, you just need to enable LOW_LEVEL_TRACES macro. Change-Id: Ica2ff2e6d111b76c056161ec557346f23d21ada0
Diffstat (limited to 'src')
-rw-r--r--src/phOsalNfc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/phOsalNfc.h b/src/phOsalNfc.h
index ad55066..246c2e6 100644
--- a/src/phOsalNfc.h
+++ b/src/phOsalNfc.h
@@ -154,6 +154,19 @@ void phOsalNfc_DbgTrace(uint8_t data[], uint32_t size);
*/
void phOsalNfc_DbgString(const char *pString);
+/*!
+ * \ingroup grp_osal_nfc
+ * \brief Print data buffer
+ *
+ * Outputs given string to debug port.
+ *
+ * \param[in] pString pointer to string to be displayed.
+ * \param[in] length number of bytes to be displayed.
+ * \param[in] pBuffer pointer to data bytes to be displayed.
+ *
+ * \retval None
+ */
+void phOsalNfc_PrintData(const char *pString, uint32_t length, uint8_t *pBuffer);
/*!
* \ingroup grp_osal_nfc