diff options
author | daniel_tomas <daniel.tomas@nxp.com> | 2011-01-06 18:47:23 -0800 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2011-01-12 16:27:28 -0800 |
commit | 434eb43979d170509b9b28c0598e5f44e31aa348 (patch) | |
tree | 511a191d4e583c5f4cc5c237034794c06745391a /src/phLibNfc_SE.c | |
parent | 78f4485d27a7630534b2b28f24ab9d0190a2e642 (diff) | |
download | external_libnfc-nxp-434eb43979d170509b9b28c0598e5f44e31aa348.zip external_libnfc-nxp-434eb43979d170509b9b28c0598e5f44e31aa348.tar.gz external_libnfc-nxp-434eb43979d170509b9b28c0598e5f44e31aa348.tar.bz2 |
Event field ON/OFF management added in the libnfc
Change-Id: Ieafb6ab9094d9dc4b7edfb1e3676fd9794d8af28
Diffstat (limited to 'src/phLibNfc_SE.c')
-rw-r--r-- | src/phLibNfc_SE.c | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/src/phLibNfc_SE.c b/src/phLibNfc_SE.c index 42334d8..958f0d1 100644 --- a/src/phLibNfc_SE.c +++ b/src/phLibNfc_SE.c @@ -213,8 +213,8 @@ STATIC void phLibNfc_SeNotification(void *context, &Se_Trans_Info, status); break; - } - case NFC_EVT_CONNECTIVITY: + } + case NFC_EVT_CONNECTIVITY: { (*pLibContext->sSeContext.sSeCallabackInfo.pSeListenerNtfCb)( pLibContext->sSeContext.sSeCallabackInfo.pSeListenerCtxt, @@ -223,17 +223,37 @@ STATIC void phLibNfc_SeNotification(void *context, &Se_Trans_Info, status); break; - } - case NFC_EVT_START_OF_TRANSACTION: // PLG ++ - - (*pLibContext->sSeContext.sSeCallabackInfo.pSeListenerNtfCb)( + } + case NFC_EVT_START_OF_TRANSACTION: + { + (*pLibContext->sSeContext.sSeCallabackInfo.pSeListenerNtfCb)( pLibContext->sSeContext.sSeCallabackInfo.pSeListenerCtxt, phLibNfc_eSE_EvtTypeTransaction, pSeInfo->hSecureElement, &Se_Trans_Info, status); - - break; // PLG -- + break; + } + case NFC_EVT_FIELD_ON: + { + (*pLibContext->sSeContext.sSeCallabackInfo.pSeListenerNtfCb)( + pLibContext->sSeContext.sSeCallabackInfo.pSeListenerCtxt, + phLibNfc_eSE_EvtFieldOn, + pSeInfo->hSecureElement, + &Se_Trans_Info, + status); + break; + } + case NFC_EVT_FIELD_OFF: + { + (*pLibContext->sSeContext.sSeCallabackInfo.pSeListenerNtfCb)( + pLibContext->sSeContext.sSeCallabackInfo.pSeListenerCtxt, + phLibNfc_eSE_EvtFieldOff, + pSeInfo->hSecureElement, + &Se_Trans_Info, + status); + break; + } default: { break; |