diff options
author | Jeff Hamilton <jham@android.com> | 2010-10-27 21:29:08 -0500 |
---|---|---|
committer | Jeff Hamilton <jham@android.com> | 2010-10-28 02:02:26 -0500 |
commit | 3e98767aaf73b4779a2bb39601806045b2ba1739 (patch) | |
tree | 6906ecae34f195da704264a2fc25dfd4ab9eb1d4 /src/phLibNfc.c | |
parent | 8763a1998eee9b43169bf0824a77b00b3b88a938 (diff) | |
download | external_libnfc-nxp-3e98767aaf73b4779a2bb39601806045b2ba1739.zip external_libnfc-nxp-3e98767aaf73b4779a2bb39601806045b2ba1739.tar.gz external_libnfc-nxp-3e98767aaf73b4779a2bb39601806045b2ba1739.tar.bz2 |
Patch from NXP. Libnfc - Download,Reset mode management and driver workaround with delay
Change-Id: I736e5f50db749c9570b24194fe3963efbacc5c52
Diffstat (limited to 'src/phLibNfc.c')
-rw-r--r-- | src/phLibNfc.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/phLibNfc.c b/src/phLibNfc.c index 368cf8b..ae794c2 100644 --- a/src/phLibNfc.c +++ b/src/phLibNfc.c @@ -81,7 +81,6 @@ STATIC void phLibNfc_DefaultHandler( *************************** Function Definitions ****************************** */ - NFCSTATUS phLibNfc_Mgt_ConfigureDriver (pphLibNfc_sConfig_t psConfig, void ** ppDriverHandle) { @@ -103,13 +102,23 @@ NFCSTATUS phLibNfc_Mgt_UnConfigureDriver (void * pDriverHandle) return phDal4Nfc_ConfigRelease(pDriverHandle); } +NFCSTATUS phLibNfc_HW_Reset (long level) +{ + return phDal4Nfc_Reset(level); +} + +NFCSTATUS phLibNfc_Download_Mode (long level) +{ + return phDal4Nfc_Download(level); +} + /** * Initialize the phLibNfc interface. */ NFCSTATUS phLibNfc_Mgt_Initialize(void *pDriverHandle, - pphLibNfc_RspCb_t pInitCb, - void *pContext) + pphLibNfc_RspCb_t pInitCb, + void *pContext) { NFCSTATUS Status = NFCSTATUS_SUCCESS; if((NULL == pDriverHandle)||(NULL == pInitCb)) |